[cfe-commits] r75549 - /cfe/trunk/lib/AST/DeclPrinter.cpp
Fariborz Jahanian
fjahanian at apple.com
Mon Jul 13 16:31:23 PDT 2009
Author: fjahanian
Date: Mon Jul 13 18:31:10 2009
New Revision: 75549
URL: http://llvm.org/viewvc/llvm-project?rev=75549&view=rev
Log:
Fixes a minor bug in pretty printing of ctor defs.
Modified:
cfe/trunk/lib/AST/DeclPrinter.cpp
Modified: cfe/trunk/lib/AST/DeclPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/DeclPrinter.cpp?rev=75549&r1=75548&r2=75549&view=diff
==============================================================================
--- cfe/trunk/lib/AST/DeclPrinter.cpp (original)
+++ cfe/trunk/lib/AST/DeclPrinter.cpp Mon Jul 13 18:31:10 2009
@@ -356,8 +356,6 @@
BMInitializer->getBaseClass()->getAsRecordType();
const CXXRecordDecl *BaseDecl = cast<CXXRecordDecl>(RT->getDecl());
Out << BaseDecl->getNameAsString();
- if (!hasArguments)
- Out << "()";
}
if (hasArguments) {
Out << "(";
@@ -370,7 +368,8 @@
Exp->printPretty(Out, Context, 0, Policy, Indentation);
}
Out << ")";
- }
+ } else
+ Out << "()";
}
}
}
More information about the cfe-commits
mailing list