]> granicus.if.org Git - clang/commitdiff
Unbreak build. Forget to check in this header file change with a previous commit.
authorTed Kremenek <kremenek@apple.com>
Fri, 23 May 2008 02:53:24 +0000 (02:53 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 23 May 2008 02:53:24 +0000 (02:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51470 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Analysis/PathSensitive/BugReporter.h

index bcb1a24b74beb123cfe5a37fb062600d40a038af..c9cabf207352b14c0961e14746eb43c1fae53451 100644 (file)
@@ -19,6 +19,7 @@
 #include "clang/Analysis/PathSensitive/ValueState.h"
 #include "clang/Analysis/PathSensitive/ExplodedGraph.h"
 #include "llvm/ADT/SmallPtrSet.h"
+#include "llvm/ADT/SmallSet.h"
 #include <vector>
 
 namespace clang {
@@ -130,6 +131,7 @@ class BugReporter {
   PathDiagnosticClient* PD;
   ASTContext& Ctx;
   GRExprEngine& Eng;
+  llvm::SmallSet<SymbolID, 10> NotableSymbols;
   
 public:
   BugReporter(Diagnostic& diag, PathDiagnosticClient* pd,
@@ -150,11 +152,16 @@ public:
 
   GRExprEngine& getEngine() { return Eng; }
   
+  ValueStateManager& getStateManager();
+  
   CFG& getCFG() { return getGraph().getCFG(); }
   
   void EmitWarning(BugReport& R);
   
   void GeneratePathDiagnostic(PathDiagnostic& PD, BugReport& R);
+  
+  void addNotableSymbol(SymbolID Sym) { NotableSymbols.insert(Sym); }
+  bool isNotable(SymbolID Sym) const { return (bool) NotableSymbols.count(Sym);}
 };
   
 } // end clang namespace