clang
3.9.0
|
#include <BugReporterVisitor.h>
Public Member Functions | |
FindLastStoreBRVisitor (KnownSVal V, const MemRegion *R, bool InEnableNullFPSuppression) | |
void | Profile (llvm::FoldingSetNodeID &ID) const override |
PathDiagnosticPiece * | VisitNode (const ExplodedNode *N, const ExplodedNode *PrevN, BugReporterContext &BRC, BugReport &BR) override |
Return a diagnostic piece which should be associated with the given node. More... | |
![]() | |
BugReporterVisitor ()=default | |
BugReporterVisitor (const BugReporterVisitor &)=default | |
BugReporterVisitor (BugReporterVisitor &&) | |
virtual | ~BugReporterVisitor () |
virtual std::unique_ptr < PathDiagnosticPiece > | getEndPath (BugReporterContext &BRC, const ExplodedNode *N, BugReport &BR) |
Provide custom definition for the final diagnostic piece on the path - the piece, which is displayed before the path is expanded. More... | |
Static Public Member Functions | |
static void | registerStatementVarDecls (BugReport &BR, const Stmt *S, bool EnableNullFPSuppression) |
Creates a visitor for every VarDecl inside a Stmt and registers it with the BugReport. More... | |
![]() | |
static std::unique_ptr < PathDiagnosticPiece > | getDefaultEndPath (BugReporterContext &BRC, const ExplodedNode *N, BugReport &BR) |
Generates the default final diagnostic piece. More... | |
Definition at line 99 of file BugReporterVisitor.h.
|
inline |
Definition at line 115 of file BugReporterVisitor.h.
|
overridevirtual |
Implements clang::ento::BugReporterVisitor.
Definition at line 413 of file BugReporterVisitors.cpp.
|
static |
Creates a visitor for every VarDecl inside a Stmt and registers it with the BugReport.
Definition at line 1161 of file BugReporterVisitors.cpp.
References clang::ento::BugReport::addVisitor(), clang::ento::SVal::castAs(), clang::ento::SVal::getAs(), clang::ento::BugReport::getErrorNode(), clang::ento::ExplodedNode::getLocationContext(), clang::ento::ProgramStateManager::getRegionManager(), clang::ento::ExplodedNode::getState(), clang::ento::MemRegionManager::getVarRegion(), and clang::CodeGen::state.
|
overridevirtual |
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 450 of file BugReporterVisitors.cpp.
References clang::ento::BugReport::addVisitor(), clang::ento::PathDiagnosticLocation::asLocation(), clang::ento::MemRegion::canPrintPretty(), clang::ento::PathDiagnosticLocation::create(), clang::ento::SVal::getAs(), clang::ProgramPoint::getAs(), clang::ento::SVal::getAsRegion(), clang::CallEventManager::getCaller(), clang::ParmVarDecl::getFunctionScopeIndex(), clang::VarDecl::getInit(), clang::ento::ExplodedNode::getLocation(), clang::ento::ExplodedNode::getLocationAs(), clang::ProgramPoint::getLocationContext(), clang::DeclStmt::getSingleDecl(), clang::ento::BugReporterContext::getSourceManager(), clang::ento::ExplodedNode::getState(), clang::ento::BugReporterContext::getStateManager(), clang::ValueDecl::getType(), clang::Expr::IgnoreParenCasts(), clang::ento::MemRegion::isBoundable(), isInitializationOfVar(), clang::Type::isObjCObjectPointerType(), clang::ento::SVal::isUndef(), clang::SourceLocation::isValid(), clang::ento::PathDiagnosticLocation::isValid(), P, clang::ento::MemRegion::printPretty(), S, and clang::ento::bugreporter::trackNullOrUndefValue().