swift
98c2a837 - [Macros] Always visit macro-produced decls as auxiliary decls

Commit
2 years ago
[Macros] Always visit macro-produced decls as auxiliary decls Always use `Decl::visitAuxiliaryDecls` to visit decls produced by macros, including peer macros and declaration macros. Use name-driven expansion for peer macros. Remove `MacroExpansionDecl::getRewritten()`. Also make `ExpandMacroExpansionDeclRequest` cache the buffer ID (similar to other macros) instead of an array of decls.
Author
Committer
Parents
  • include/swift/AST
    • File
      ASTWalker.h
    • File
      Decl.h
    • File
      TypeCheckRequests.h
    • File
      TypeMemberVisitor.h
  • lib
    • AST
      • File
        ASTVerifier.cpp
      • File
        ASTWalker.cpp
      • File
        Decl.cpp
      • File
        NameLookup.cpp
    • IRGen
      • File
        GenDecl.cpp
    • SILGen
      • File
        SILGen.cpp
    • Sema
      • File
        MiscDiagnostics.cpp
      • File
        TypeCheckDecl.cpp
      • File
        TypeCheckDeclPrimary.cpp
      • File
        TypeCheckMacros.cpp
      • File
        TypeCheckMacros.h
  • test/Macros
    • File
      macro_expand_peers.swift