clang
6.0.0
|
Suppress reports that might lead to known false positives. More...
#include "clang/StaticAnalyzer/Core/BugReporter/BugReporterVisitors.h"
Public Member Functions | |
void | Profile (llvm::FoldingSetNodeID &ID) const override |
std::shared_ptr< PathDiagnosticPiece > | VisitNode (const ExplodedNode *N, const ExplodedNode *Prev, BugReporterContext &BRC, BugReport &BR) override |
Return a diagnostic piece which should be associated with the given node. More... | |
std::unique_ptr< PathDiagnosticPiece > | getEndPath (BugReporterContext &BRC, const ExplodedNode *N, BugReport &BR) override |
Provide custom definition for the final diagnostic piece on the path - the piece, which is displayed before the path is expanded. More... | |
![]() | |
BugReporterVisitor ()=default | |
BugReporterVisitor (const BugReporterVisitor &)=default | |
BugReporterVisitor (BugReporterVisitor &&) | |
virtual | ~BugReporterVisitor () |
Static Public Member Functions | |
static void * | getTag () |
![]() | |
static std::unique_ptr< PathDiagnosticPiece > | getDefaultEndPath (BugReporterContext &BRC, const ExplodedNode *N, BugReport &BR) |
Generates the default final diagnostic piece. More... | |
Suppress reports that might lead to known false positives.
Currently this suppresses reports based on locations of bugs.
Definition at line 249 of file BugReporterVisitors.h.
|
overridevirtual |
Provide custom definition for the final diagnostic piece on the path - the piece, which is displayed before the path is expanded.
If returns NULL the default implementation will be used. Also note that at most one visitor of a BugReport should generate a non-NULL end of path diagnostic piece.
Reimplemented from clang::ento::BugReporterVisitor.
Definition at line 1688 of file BugReporterVisitors.cpp.
References clang::ento::BugReporterContext::getBugReporter(), and clang::ento::GRBugReporter::getEngine().
|
inlinestatic |
Definition at line 252 of file BugReporterVisitors.h.
|
inlineoverridevirtual |
Implements clang::ento::BugReporterVisitor.
Definition at line 257 of file BugReporterVisitors.h.
|
inlineoverridevirtual |
Return a diagnostic piece which should be associated with the given node.
The last parameter can be used to register a new visitor with the given BugReport while processing a node.
Implements clang::ento::BugReporterVisitor.
Definition at line 261 of file BugReporterVisitors.h.
References clang::ento::BugReporterVisitor::getEndPath().