diff options
author | Ted Kremenek <kremenek@apple.com> | 2012-09-10 06:19:53 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2012-09-10 06:19:53 +0000 |
commit | fcde83c75ef72da920cfc02e24edeaf36f79f47f (patch) | |
tree | def0e15a8a2129f5e8d7d0e8cd593df62ae5ffbb /include/clang | |
parent | 7c06f036a3092a7e019979e1ca836a1fbe14edc7 (diff) |
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
Diffstat (limited to 'include/clang')
-rw-r--r-- | include/clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h | 2 |
1 files changed, 1 insertions, 1 deletions
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. |