Revert "[Macros] Enable composition of member attribute macros and accessor macros."

It causes crashes in some Sema/SwiftUI tests in some configurations.

rdar://104297642

This reverts commit b8d65e1ed9.
This commit is contained in:
Erik Eckstein
2023-01-17 13:30:27 +01:00
parent e405b50b89
commit bfa14e64dd
6 changed files with 3 additions and 126 deletions

View File

@@ -887,15 +887,6 @@ ASTNode SourceFile::getMacroExpansion() const {
return ASTNode::getFromOpaqueValue(genInfo.astNode);
}
CustomAttr *SourceFile::getAttachedMacroAttribute() const {
if (Kind != SourceFileKind::MacroExpansion)
return nullptr;
auto genInfo =
*getASTContext().SourceMgr.getGeneratedSourceInfo(*getBufferID());
return genInfo.attachedMacroCustomAttr;
}
SourceFile *SourceFile::getEnclosingSourceFile() const {
auto macroExpansion = getMacroExpansion();
if (!macroExpansion)