aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Analysis/PathSensitive/BugReporter.h
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-07-22 00:46:16 +0000
committerTed Kremenek <kremenek@apple.com>2008-07-22 00:46:16 +0000
commit584def7364f51e35bfcaf5c3c64673096533adda (patch)
treeb10e4e6c8d4690ceefc2e1e34d5ff3a039301e45 /include/clang/Analysis/PathSensitive/BugReporter.h
parent1caae959017b355e9bb61250d5a0d04edbf468b0 (diff)
Added path-sensitive checking for null pointer values passed to function arguments marked nonnull.
This implements <rdar://problem/6069935> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53891 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Analysis/PathSensitive/BugReporter.h')
-rw-r--r--include/clang/Analysis/PathSensitive/BugReporter.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/clang/Analysis/PathSensitive/BugReporter.h b/include/clang/Analysis/PathSensitive/BugReporter.h
index 4374c1e40a..803a70397d 100644
--- a/include/clang/Analysis/PathSensitive/BugReporter.h
+++ b/include/clang/Analysis/PathSensitive/BugReporter.h
@@ -300,12 +300,14 @@ public:
};
class SimpleBugType : public BugTypeCacheLocation {
- const char* name;
+ const char* name;
+ const char* desc;
public:
- SimpleBugType(const char* n) : name(n) {}
+ SimpleBugType(const char* n) : name(n), desc(n) {}
+ SimpleBugType(const char* n, const char* d) : name(n), desc(d) {}
virtual const char* getName() const { return name; }
- virtual const char* getDescription() const { return name; }
+ virtual const char* getDescription() const { return desc; }
};
} // end clang namespace