From: Ted Kremenek Date: Mon, 10 Sep 2012 06:19:53 +0000 (+0000) Subject: Have PathDiagnosticPiece::getString() return a StringRef instead X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fcde83c75ef72da920cfc02e24edeaf36f79f47f;p=clang Have PathDiagnosticPiece::getString() return a StringRef instead of a std::string. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163488 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h b/include/clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h index dc275f08cc..9d3b85e10d 100644 --- a/include/clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h +++ b/include/clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h @@ -335,7 +335,7 @@ protected: public: virtual ~PathDiagnosticPiece(); - const std::string& getString() const { return str; } + llvm::StringRef getString() const { return str; } /// getDisplayHint - Return a hint indicating where the diagnostic should /// be displayed by the PathDiagnosticConsumer.