diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-02-04 12:30:37 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-02-04 12:30:37 +0000 |
commit | 3f85fb2277c2cb27770a04d41c7240f8e85b9e95 (patch) | |
tree | 9dbdd078dae4ec35fae8c559e3daa39da947af8f | |
parent | f4c51d9d7613004222c3cc1a6944249a508a6399 (diff) | |
download | bcm5719-llvm-3f85fb2277c2cb27770a04d41c7240f8e85b9e95.tar.gz bcm5719-llvm-3f85fb2277c2cb27770a04d41c7240f8e85b9e95.zip |
StaticAnalyzer: Remove FixIts from PathDiagnosticPieces.
They were unused and pulled in Diagnostic.h for no reason.
llvm-svn: 149779
-rw-r--r-- | clang/include/clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/clang/include/clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h b/clang/include/clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h index 427c47aa849..30b133200ff 100644 --- a/clang/include/clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h +++ b/clang/include/clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h @@ -14,7 +14,7 @@ #ifndef LLVM_CLANG_PATH_DIAGNOSTIC_H #define LLVM_CLANG_PATH_DIAGNOSTIC_H -#include "clang/Basic/Diagnostic.h" +#include "clang/Basic/SourceLocation.h" #include "llvm/ADT/FoldingSet.h" #include "llvm/ADT/PointerUnion.h" #include <deque> @@ -266,7 +266,6 @@ public: private: const std::string str; - std::vector<FixItHint> FixItHints; const Kind kind; const DisplayHint Hint; std::vector<SourceRange> ranges; @@ -307,10 +306,6 @@ public: ranges.push_back(SourceRange(B,E)); } - void addFixItHint(const FixItHint& Hint) { - FixItHints.push_back(Hint); - } - typedef const SourceRange* range_iterator; range_iterator ranges_begin() const { @@ -321,17 +316,6 @@ public: return ranges_begin() + ranges.size(); } - typedef const FixItHint *fixit_iterator; - - fixit_iterator fixit_begin() const { - return FixItHints.empty()? 0 : &FixItHints[0]; - } - - fixit_iterator fixit_end() const { - return FixItHints.empty()? 0 - : &FixItHints[0] + FixItHints.size(); - } - static inline bool classof(const PathDiagnosticPiece *P) { return true; } |