diff options
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/AST/DeclPrinter.cpp | 5 | 
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/AST/DeclPrinter.cpp b/clang/lib/AST/DeclPrinter.cpp index bfd3dca3e6d..01cbee4d637 100644 --- a/clang/lib/AST/DeclPrinter.cpp +++ b/clang/lib/AST/DeclPrinter.cpp @@ -178,6 +178,11 @@ void DeclPrinter::VisitDeclContext(DeclContext *DC, bool Indent) {      if (!Policy.Dump) {        // Skip over implicit declarations in pretty-printing mode.        if (D->isImplicit()) continue; +      // FIXME: Ugly hack so we don't pretty-print the builtin declaration +      // of __builtin_va_list.  There should be some other way to check that. +      if (isa<NamedDecl>(*D) && cast<NamedDecl>(*D)->getNameAsString() == +          "__builtin_va_list") +        continue;      }      // The next bits of code handles stuff like "struct {int x;} a,b"; we're  | 

