diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-12-03 19:34:02 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-12-03 19:34:02 +0000 |
commit | 4313a9c56a509025e960afc1d1d832dbc98bd192 (patch) | |
tree | 4cfcb1a7a05cbd92b0a533842097a56c1ecde555 | |
parent | eb57c59b66436dac0b0b5dc1fa696c86b5622588 (diff) | |
download | bcm5719-llvm-4313a9c56a509025e960afc1d1d832dbc98bd192.tar.gz bcm5719-llvm-4313a9c56a509025e960afc1d1d832dbc98bd192.zip |
Convert some methods in PathDiagnostic to return StringRefs instead of std::string&.
llvm-svn: 90477
-rw-r--r-- | clang/include/clang/Analysis/PathDiagnostic.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/include/clang/Analysis/PathDiagnostic.h b/clang/include/clang/Analysis/PathDiagnostic.h index cad702cbdb2..23910063a59 100644 --- a/clang/include/clang/Analysis/PathDiagnostic.h +++ b/clang/include/clang/Analysis/PathDiagnostic.h @@ -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(); } |