clang 20.0.0git
|
Public Member Functions | |
RefLeakReportVisitor (SymbolRef Sym, const MemRegion *LastBinding) | |
PathDiagnosticPieceRef | getEndPath (BugReporterContext &BRC, const ExplodedNode *N, PathSensitiveBugReport &BR) override |
Provide custom definition for the final diagnostic piece on the path - the piece, which is displayed before the path is expanded. | |
Public Member Functions inherited from clang::ento::retaincountchecker::RefCountReportVisitor | |
RefCountReportVisitor (SymbolRef sym) | |
void | Profile (llvm::FoldingSetNodeID &ID) const override |
PathDiagnosticPieceRef | VisitNode (const ExplodedNode *N, BugReporterContext &BRC, PathSensitiveBugReport &BR) override |
Return a diagnostic piece which should be associated with the given node. | |
PathDiagnosticPieceRef | getEndPath (BugReporterContext &BRC, const ExplodedNode *N, PathSensitiveBugReport &BR) override |
Provide custom definition for the final diagnostic piece on the path - the piece, which is displayed before the path is expanded. | |
Public Member Functions inherited from clang::ento::BugReporterVisitor | |
BugReporterVisitor ()=default | |
BugReporterVisitor (const BugReporterVisitor &)=default | |
BugReporterVisitor (BugReporterVisitor &&) | |
BugReporterVisitor & | operator= (const BugReporterVisitor &)=delete |
BugReporterVisitor & | operator= (BugReporterVisitor &&)=delete |
virtual | ~BugReporterVisitor () |
virtual PathDiagnosticPieceRef | VisitNode (const ExplodedNode *Succ, BugReporterContext &BRC, PathSensitiveBugReport &BR)=0 |
Return a diagnostic piece which should be associated with the given node. | |
virtual void | finalizeVisitor (BugReporterContext &BRC, const ExplodedNode *EndPathNode, PathSensitiveBugReport &BR) |
Last function called on the visitor, no further calls to VisitNode would follow. | |
virtual PathDiagnosticPieceRef | getEndPath (BugReporterContext &BRC, const ExplodedNode *N, PathSensitiveBugReport &BR) |
Provide custom definition for the final diagnostic piece on the path - the piece, which is displayed before the path is expanded. | |
virtual void | Profile (llvm::FoldingSetNodeID &ID) const =0 |
Additional Inherited Members | |
Static Public Member Functions inherited from clang::ento::BugReporterVisitor | |
static PathDiagnosticPieceRef | getDefaultEndPath (const BugReporterContext &BRC, const ExplodedNode *N, const PathSensitiveBugReport &BR) |
Generates the default final diagnostic piece. | |
Protected Attributes inherited from clang::ento::retaincountchecker::RefCountReportVisitor | |
SymbolRef | Sym |
Definition at line 334 of file RetainCountDiagnostics.cpp.
|
inline |
Definition at line 336 of file RetainCountDiagnostics.cpp.
|
overridevirtual |
Provide custom definition for the final diagnostic piece on the path - the piece, which is displayed before the path is expanded.
NOTE that this function can be implemented on at most one used visitor, and otherwise it crahes at runtime.
Reimplemented from clang::ento::retaincountchecker::RefCountReportVisitor.
Definition at line 761 of file RetainCountDiagnostics.cpp.
References clang::ento::CF, D, describeRegion(), clang::ento::retaincountchecker::RefVal::ErrorLeakReturned, clang::ento::BugReporterContext::getASTContext(), clang::ento::ExplodedNode::getCodeDecl(), clang::ento::retaincountchecker::RefVal::getCount(), clang::ento::retaincountchecker::RefVal::getKind(), clang::ASTContext::getLangOpts(), clang::NamedDecl::getNameAsString(), clang::ento::retaincountchecker::RefVal::getObjKind(), getPrettyTypeName(), clang::ento::retaincountchecker::getRefBinding(), clang::ento::ExplodedNode::getState(), clang::ento::SymExpr::getType(), clang::Decl::hasAttr(), clang::ento::PathSensitiveBugReport::markInteresting(), clang::ento::ObjC, clang::ento::OS, and clang::ento::retaincountchecker::RefCountReportVisitor::Sym.