aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Analysis/PathSensitive/BugReporter.h
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-07-22 17:55:28 +0000
committerTed Kremenek <kremenek@apple.com>2009-07-22 17:55:28 +0000
commit5350066e7b19d17a5b137caa6c039ab9626dbfa5 (patch)
tree5d86677556e1f9418ccaadddf6634947cd586c99 /include/clang/Analysis/PathSensitive/BugReporter.h
parent71c6e714778740d98cd01252101d0aaf1efa1553 (diff)
Move bug reporter "visitors" to their own file and make them part of the public
BugReporter API. No real functionality change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76760 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Analysis/PathSensitive/BugReporter.h')
-rw-r--r--include/clang/Analysis/PathSensitive/BugReporter.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/clang/Analysis/PathSensitive/BugReporter.h b/include/clang/Analysis/PathSensitive/BugReporter.h
index 90fd9d8ebf..c90e5597b6 100644
--- a/include/clang/Analysis/PathSensitive/BugReporter.h
+++ b/include/clang/Analysis/PathSensitive/BugReporter.h
@@ -460,6 +460,24 @@ public:
str_iterator str_begin() const { return Strs.begin(); }
str_iterator str_end() const { return Strs.end(); }
};
+
+//===----------------------------------------------------------------------===//
+//===----------------------------------------------------------------------===//
+
+namespace bugreporter {
+
+const Stmt *GetDerefExpr(const ExplodedNode<GRState> *N);
+const Stmt *GetReceiverExpr(const ExplodedNode<GRState> *N);
+const Stmt *GetDenomExpr(const ExplodedNode<GRState> *N);
+const Stmt *GetCalleeExpr(const ExplodedNode<GRState> *N);
+const Stmt *GetRetValExpr(const ExplodedNode<GRState> *N);
+
+void registerTrackNullOrUndefValue(BugReporterContext& BRC, const Stmt *S,
+ const ExplodedNode<GRState>* N);
+
+} // end namespace clang::bugreporter
+
+//===----------------------------------------------------------------------===//
} // end clang namespace