[Macros] Use name lookup for lazy declaration macro expansion (#63411)

- Use the name lookup table instead of adding members from a macro expansion to the parent decl context.
- Require declaration macros to specify introduced names and used the declared names to guide macro expansions lazily.
This commit is contained in:
Richard Wei
2023-02-07 11:24:42 +08:00
committed by GitHub
parent 5d684fb679
commit 01e4c8df26
19 changed files with 215 additions and 67 deletions

View File

@@ -5453,7 +5453,8 @@ llvm::Error DeclDeserializer::deserializeDeclCommon() {
}
Attr = MacroRoleAttr::create(
ctx, SourceLoc(), SourceRange(),
static_cast<MacroSyntax>(rawMacroSyntax), role, names, isImplicit);
static_cast<MacroSyntax>(rawMacroSyntax), SourceLoc(), role, names,
SourceLoc(), isImplicit);
break;
}