|
clang
5.0.0
|
Suppress reports that might lead to known false positives. More...
#include "clang/StaticAnalyzer/Core/BugReporter/BugReporterVisitor.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... | |
Public Member Functions inherited from clang::ento::BugReporterVisitor | |
| BugReporterVisitor ()=default | |
| BugReporterVisitor (const BugReporterVisitor &)=default | |
| BugReporterVisitor (BugReporterVisitor &&) | |
| virtual | ~BugReporterVisitor () |
Static Public Member Functions | |
| static void * | getTag () |
Static Public Member Functions inherited from clang::ento::BugReporterVisitor | |
| 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 BugReporterVisitor.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 1657 of file BugReporterVisitors.cpp.
References clang::ento::PathDiagnosticLocation::asLocation(), clang::ento::ExprEngine::getAnalysisManager(), clang::ento::BugReporterContext::getBugReporter(), clang::LocationContext::getDecl(), clang::ento::GRBugReporter::getEngine(), clang::SourceManager::getFilename(), clang::ento::BugReport::getLocation(), clang::ento::ExplodedNode::getLocationContext(), clang::NamedDecl::getName(), clang::LocationContext::getParent(), clang::DeclContext::getParent(), clang::CXXMethodDecl::getParent(), clang::ento::BugReporterContext::getSourceManager(), clang::FullSourceLoc::getSpellingLoc(), getTag(), clang::AnalysisDeclContext::isInStdNamespace(), clang::SourceLocation::isMacroID(), clang::ento::BugReport::markInvalid(), clang::ento::AnalysisManager::options, clang::AnalyzerOptions::shouldSuppressFromCXXStandardLibrary(), and SM.
|
inlinestatic |
Definition at line 252 of file BugReporterVisitor.h.
Referenced by getEndPath(), and Profile().
|
inlineoverridevirtual |
Implements clang::ento::BugReporterVisitor.
Definition at line 257 of file BugReporterVisitor.h.
References getTag().
|
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 BugReporterVisitor.h.
1.8.6