summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnna Zaks <ganna@apple.com>2011-08-17 23:36:16 +0000
committerAnna Zaks <ganna@apple.com>2011-08-17 23:36:16 +0000
commitdb2acbc5ddf269076489f6c985c78346cf76d2be (patch)
tree791b2d1e63a02fe3cebfda2e00af7195efb50017
parent50aafeaa2c6843e2fe77a5238dbe51f897168f40 (diff)
downloadbcm5719-llvm-db2acbc5ddf269076489f6c985c78346cf76d2be.tar.gz
bcm5719-llvm-db2acbc5ddf269076489f6c985c78346cf76d2be.zip
Add more comments for BugReport.
llvm-svn: 137901
-rw-r--r--clang/include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h b/clang/include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h
index d2f92b230cc..4e8a750e0e1 100644
--- a/clang/include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h
+++ b/clang/include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h
@@ -58,6 +58,8 @@ public:
virtual void Profile(llvm::FoldingSetNodeID &ID) const = 0;
};
+/// This class provides an interface through which checkers can create
+/// individual bug reports.
class BugReport : public BugReporterVisitor {
public:
class NodeResolver {
@@ -85,6 +87,8 @@ protected:
Creators creators;
/// Profile to identify equivalent bug reports for error report coalescing.
+ /// Reports are uniqued to ensure that we do not emit multiple diagnostics
+ /// for each bug.
virtual void Profile(llvm::FoldingSetNodeID& hash) const;
const Stmt *getStmt() const;
OpenPOWER on IntegriCloud