declaration in -ast-print mode.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72615
91177308-0d34-0410-b5e6-
96231b3b80d8
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