]> granicus.if.org Git - clang/commitdiff
Have PathDiagnosticPiece::getString() return a StringRef instead
authorTed Kremenek <kremenek@apple.com>
Mon, 10 Sep 2012 06:19:53 +0000 (06:19 +0000)
committerTed Kremenek <kremenek@apple.com>
Mon, 10 Sep 2012 06:19:53 +0000 (06:19 +0000)
of a std::string.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163488 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h

index dc275f08cc80fa0914307e25e506cfd8da6e8b84..9d3b85e10d00044443ceea2e7d8921d10a1c7054 100644 (file)
@@ -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.