[cfe-commits] r51470 - /cfe/trunk/include/clang/Analysis/PathSensitive/BugReporter.h
Ted Kremenek
kremenek at apple.com
Thu May 22 19:53:24 PDT 2008
Author: kremenek
Date: Thu May 22 21:53:24 2008
New Revision: 51470
URL: http://llvm.org/viewvc/llvm-project?rev=51470&view=rev
Log:
Unbreak build. Forget to check in this header file change with a previous commit.
Modified:
cfe/trunk/include/clang/Analysis/PathSensitive/BugReporter.h
Modified: cfe/trunk/include/clang/Analysis/PathSensitive/BugReporter.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Analysis/PathSensitive/BugReporter.h?rev=51470&r1=51469&r2=51470&view=diff
==============================================================================
--- cfe/trunk/include/clang/Analysis/PathSensitive/BugReporter.h (original)
+++ cfe/trunk/include/clang/Analysis/PathSensitive/BugReporter.h Thu May 22 21:53:24 2008
@@ -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 @@
PathDiagnosticClient* PD;
ASTContext& Ctx;
GRExprEngine& Eng;
+ llvm::SmallSet<SymbolID, 10> NotableSymbols;
public:
BugReporter(Diagnostic& diag, PathDiagnosticClient* pd,
@@ -150,11 +152,16 @@
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
More information about the cfe-commits
mailing list