mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Macros] Private discriminators for outermost-private MacroExpansionDecl (#64813)
Add a private discriminator to the mangling of an outermost-private `MacroExpansionDecl` so that declaration macros in different files won't have colliding macro expansion buffer names. rdar://107462515
This commit is contained in:
@@ -363,7 +363,7 @@ public:
|
||||
SmallVectorImpl<ValueDecl*> &results) const override;
|
||||
|
||||
virtual StringRef
|
||||
getFilenameForPrivateDecl(const ValueDecl *decl) const override;
|
||||
getFilenameForPrivateDecl(const Decl *decl) const override;
|
||||
|
||||
virtual TypeDecl *lookupLocalType(StringRef MangledName) const override;
|
||||
|
||||
@@ -456,7 +456,7 @@ public:
|
||||
|
||||
virtual void loadDependenciesForTestable(SourceLoc diagLoc) const override;
|
||||
|
||||
Identifier getDiscriminatorForPrivateValue(const ValueDecl *D) const override;
|
||||
Identifier getDiscriminatorForPrivateDecl(const Decl *D) const override;
|
||||
|
||||
virtual StringRef getFilename() const override;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user