]> granicus.if.org Git - clang/commitdiff
Convert some methods in PathDiagnostic to return StringRefs instead of std::string&.
authorTed Kremenek <kremenek@apple.com>
Thu, 3 Dec 2009 19:34:02 +0000 (19:34 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 3 Dec 2009 19:34:02 +0000 (19:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90477 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Analysis/PathDiagnostic.h

index cad702cbdb2e2b53aaab7e950b58cb225cfde330..23910063a599c840faf133ee12d43df8247c7200 100644 (file)
@@ -391,9 +391,9 @@ public:
 
   ~PathDiagnostic();
 
-  const std::string& getDescription() const { return Desc; }
-  const std::string& getBugType() const { return BugType; }
-  const std::string& getCategory() const { return Category; }
+  llvm::StringRef getDescription() const { return Desc; }
+  llvm::StringRef getBugType() const { return BugType; }
+  llvm::StringRef getCategory() const { return Category; }
 
   typedef std::deque<std::string>::const_iterator meta_iterator;
   meta_iterator meta_begin() const { return OtherDesc.begin(); }