diff options
-rw-r--r-- | include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h | 4 |
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; |