Files
Hamish Knight 59a5c48161 [AST] Handle extension macros in getTopLevelDeclsWithAuxiliaryDecls
Rather than placing extension macros in a synthesized file unit,
track them separately `getTopLevelDeclsWithAuxiliaryDecls`. This
ensures that they are placed in the same `IRGenModule` as the nominal
being extended. This requires fixing up some places that weren't
previously using `getTopLevelDeclsWithAuxiliaryDecls`. This also
required introducing `shouldWalkTopLevelAuxiliaryDecls` to ASTWalker,
which is an unfortunate hack due to the fact that many ASTWalkers
currently have misconfigured macro-walking preferences.

rdar://185645710
2026-09-12 14:50:41 +01:00
..
2025-09-02 16:56:07 -07:00