diff options
Diffstat (limited to 'clang/lib/AST/DeclarationName.cpp')
-rw-r--r-- | clang/lib/AST/DeclarationName.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/AST/DeclarationName.cpp b/clang/lib/AST/DeclarationName.cpp index e5019ab8d9f..f9041c043c9 100644 --- a/clang/lib/AST/DeclarationName.cpp +++ b/clang/lib/AST/DeclarationName.cpp @@ -191,6 +191,7 @@ raw_ostream &operator<<(raw_ostream &OS, DeclarationName N) { return OS << *Rec->getDecl(); LangOptions LO; LO.CPlusPlus = true; + LO.Bool = true; return OS << Type.getAsString(PrintingPolicy(LO)); } case DeclarationName::CXXUsingDirective: @@ -546,6 +547,7 @@ void DeclarationNameInfo::printName(raw_ostream &OS) const { OS << "operator "; LangOptions LO; LO.CPlusPlus = true; + LO.Bool = true; OS << TInfo->getType().getAsString(PrintingPolicy(LO)); } else OS << Name; |