When 'bool' is not a built-in type but is defined as a macro, print

'bool' rather than '_Bool' within types, to make things a bit more
readable. Fixes <rdar://problem/10063263>.

llvm-svn: 140650
This commit is contained in:
Douglas Gregor
2011-09-27 22:38:19 +00:00
parent ac8dbf0fc7
commit c0b07286cf
20 changed files with 91 additions and 83 deletions

View File

@@ -205,7 +205,7 @@ bool Sema::CheckEquivalentExceptionSpec(FunctionDecl *Old, FunctionDecl *New) {
else
OS << ", ";
OS << E->getAsString(Context.PrintingPolicy);
OS << E->getAsString(Context.getPrintingPolicy());
}
OS << ")";
break;
@@ -218,7 +218,7 @@ bool Sema::CheckEquivalentExceptionSpec(FunctionDecl *Old, FunctionDecl *New) {
case EST_ComputedNoexcept:
OS << "noexcept(";
OldProto->getNoexceptExpr()->printPretty(OS, Context, 0,
Context.PrintingPolicy);
Context.getPrintingPolicy());
OS << ")";
break;