clang 22.0.0git
clang::ento::NoStoreFuncVisitor Class Referencefinal

Put a diagnostic on return statement of all inlined functions for which the region of interest RegionOfInterest was passed into, but not written inside, and it has caused an undefined read or a null pointer dereference outside. More...

#include "clang/StaticAnalyzer/Core/BugReporter/BugReporterVisitors.h"

Inheritance diagram for clang::ento::NoStoreFuncVisitor:
[legend]

Public Member Functions

 NoStoreFuncVisitor (const SubRegion *R, bugreporter::TrackingKind TKind=bugreporter::TrackingKind::Thorough)
void Profile (llvm::FoldingSetNodeID &ID) const override
Public Member Functions inherited from clang::ento::NoStateChangeFuncVisitor
 NoStateChangeFuncVisitor (bugreporter::TrackingKind TKind)
PathDiagnosticPieceRef VisitNode (const ExplodedNode *N, BugReporterContext &BR, PathSensitiveBugReport &R) final
 Return a diagnostic piece which should be associated with the given node.
Public Member Functions inherited from clang::ento::BugReporterVisitor
 BugReporterVisitor ()=default
 BugReporterVisitor (const BugReporterVisitor &)=default
 BugReporterVisitor (BugReporterVisitor &&)
BugReporterVisitoroperator= (const BugReporterVisitor &)=delete
BugReporterVisitoroperator= (BugReporterVisitor &&)=delete
virtual ~BugReporterVisitor ()
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.

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 Member Functions inherited from clang::ento::NoStateChangeFuncVisitor
virtual bool wasModifiedInFunction (const ExplodedNode *CallEnterN, const ExplodedNode *CallExitEndN)
Protected Attributes inherited from clang::ento::NoStateChangeFuncVisitor
bugreporter::TrackingKind TKind

Detailed Description

Put a diagnostic on return statement of all inlined functions for which the region of interest RegionOfInterest was passed into, but not written inside, and it has caused an undefined read or a null pointer dereference outside.

Definition at line 725 of file BugReporterVisitors.h.

Constructor & Destructor Documentation

◆ NoStoreFuncVisitor()

Member Function Documentation

◆ Profile()

void clang::ento::NoStoreFuncVisitor::Profile ( llvm::FoldingSetNodeID & ID) const
inlineoverridevirtual

Implements clang::ento::BugReporterVisitor.

Definition at line 747 of file BugReporterVisitors.h.


The documentation for this class was generated from the following files: