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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user