aboutsummaryrefslogtreecommitdiff
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
commite7c4c4ccc6a51c82332382267b84e9d72f229b5e (patch)
treefc66b5e39f3796ec20c7ba6d499b64ab3350e873
parentb7530a4ca9a7ef62350682bbb374a06de6fdaa9f (diff)
Add more comments for BugReport.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137901 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h b/include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h
index d2f92b230c..4e8a750e0e 100644
--- a/include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h
+++ b/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;