aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Analysis/PathSensitive/BugReporter.h
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-07-03 04:29:21 +0000
committerTed Kremenek <kremenek@apple.com>2008-07-03 04:29:21 +0000
commitdb09a4dee28a4515438af60f2d2b4a83e4965c31 (patch)
tree548432954c9240c789b3809f0321c9ed571c4e59 /include/clang/Analysis/PathSensitive/BugReporter.h
parentc44eec6dd29ee9415cbd38a35deff4c8b67abb6a (diff)
Added static analysis check to see if a subclass of NSObject implements -dealloc, and whether or not that implementation calls [super dealloc].
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53075 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Analysis/PathSensitive/BugReporter.h')
-rw-r--r--include/clang/Analysis/PathSensitive/BugReporter.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/clang/Analysis/PathSensitive/BugReporter.h b/include/clang/Analysis/PathSensitive/BugReporter.h
index 7674b04ff3..f608da0c2e 100644
--- a/include/clang/Analysis/PathSensitive/BugReporter.h
+++ b/include/clang/Analysis/PathSensitive/BugReporter.h
@@ -24,7 +24,6 @@
#include <vector>
#include <list>
-
namespace clang {
class PathDiagnostic;
@@ -286,6 +285,15 @@ public:
iterator end() { return Reports.end(); }
};
+class SimpleBugType : public BugTypeCacheLocation {
+ const char* name;
+public:
+ SimpleBugType(const char* n) : name(n) {}
+
+ virtual const char* getName() const { return name; }
+ virtual const char* getDescription() const { return name; }
+};
+
} // end clang namespace
#endif