[AST] Use CustomAttr's DeclContext for ResolveMacroRequest

Remove the DeclContext parameter from ResolveMacroRequest, we can now
retrieve the DeclContext either from the CustomAttr or macro expansion
expr/decl directly.
This commit is contained in:
Hamish Knight
2025-10-16 11:21:54 +01:00
parent 73710e3eef
commit 364eba482d
23 changed files with 127 additions and 145 deletions

View File

@@ -3304,7 +3304,7 @@ class Serializer::DeclSerializer : public DeclVisitor<DeclSerializer> {
auto theAttr = cast<CustomAttr>(DA);
// Macro attributes are not serialized.
if (D->getResolvedMacro(const_cast<CustomAttr *>(theAttr)))
if (theAttr->getResolvedMacro())
return;
auto attrType =