diff options
author | Leonard Chan <leonardchan@google.com> | 2019-05-03 03:28:06 +0000 |
---|---|---|
committer | Leonard Chan <leonardchan@google.com> | 2019-05-03 03:28:06 +0000 |
commit | a121961bcb19ce431c7e2be54afedf67c3407d8c (patch) | |
tree | c3e31443f6490fa2a2f53e2fe06daa38d97c8696 /lib/AST/ASTDiagnostic.cpp | |
parent | ecefe8a46344839f5272956a045e6f500f0a927e (diff) | |
download | clang-a121961bcb19ce431c7e2be54afedf67c3407d8c.tar.gz |
Revert "[Attribute/Diagnostics] Print macro if definition is an attribute declaration"
This reverts commit fc40cbd9d8c63e65eed3590ba925321afe782e1d.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@359859 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/ASTDiagnostic.cpp')
-rw-r--r-- | lib/AST/ASTDiagnostic.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/AST/ASTDiagnostic.cpp b/lib/AST/ASTDiagnostic.cpp index 15df865852..61900aa4ac 100644 --- a/lib/AST/ASTDiagnostic.cpp +++ b/lib/AST/ASTDiagnostic.cpp @@ -41,11 +41,6 @@ static QualType Desugar(ASTContext &Context, QualType QT, bool &ShouldAKA) { QT = PT->desugar(); continue; } - // ... or a macro defined type ... - if (const MacroQualifiedType *MDT = dyn_cast<MacroQualifiedType>(Ty)) { - QT = MDT->desugar(); - continue; - } // ...or a substituted template type parameter ... if (const SubstTemplateTypeParmType *ST = dyn_cast<SubstTemplateTypeParmType>(Ty)) { |