diff options
Diffstat (limited to 'include/clang/AST/Decl.h')
-rw-r--r-- | include/clang/AST/Decl.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/clang/AST/Decl.h b/include/clang/AST/Decl.h index c10080366c..010563fdd9 100644 --- a/include/clang/AST/Decl.h +++ b/include/clang/AST/Decl.h @@ -169,13 +169,13 @@ public: /// specializations are printed with their template arguments. /// /// TODO: use an API that doesn't require so many temporary strings - virtual void getNameForDiagnostic(std::string &S, + virtual void getNameForDiagnostic(raw_ostream &OS, const PrintingPolicy &Policy, bool Qualified) const { if (Qualified) - S += getQualifiedNameAsString(Policy); + OS << getQualifiedNameAsString(Policy); else - S += getNameAsString(); + printName(OS); } /// declarationReplaces - Determine whether this declaration, if @@ -1606,7 +1606,7 @@ public: return DeclarationNameInfo(getDeclName(), getLocation(), DNLoc); } - virtual void getNameForDiagnostic(std::string &S, + virtual void getNameForDiagnostic(raw_ostream &OS, const PrintingPolicy &Policy, bool Qualified) const; |