clang API Documentation

Public Member Functions
clang::ento::UndefOrNullArgVisitor Class Reference

When a region containing undefined value or '0' value is passed as an argument in a call, marks the call as interesting. More...

#include <BugReporterVisitor.h>

Inheritance diagram for clang::ento::UndefOrNullArgVisitor:
Inheritance graph
[legend]
Collaboration diagram for clang::ento::UndefOrNullArgVisitor:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 UndefOrNullArgVisitor (const MemRegion *InR)
void Profile (llvm::FoldingSetNodeID &ID) const override
PathDiagnosticPieceVisitNode (const ExplodedNode *N, const ExplodedNode *PrevN, BugReporterContext &BRC, BugReport &BR) override
 Return a diagnostic piece which should be associated with the given node.

Detailed Description

When a region containing undefined value or '0' value is passed as an argument in a call, marks the call as interesting.

As a result, BugReporter will not prune the path through the function even if the region's contents are not modified/accessed by the call.

Definition at line 279 of file BugReporterVisitor.h.


Constructor & Destructor Documentation

Definition at line 286 of file BugReporterVisitor.h.


Member Function Documentation

void clang::ento::UndefOrNullArgVisitor::Profile ( llvm::FoldingSetNodeID &  ID) const [inline, override, virtual]

Implements clang::ento::BugReporterVisitor.

Definition at line 288 of file BugReporterVisitor.h.

PathDiagnosticPiece * UndefOrNullArgVisitor::VisitNode ( const ExplodedNode Succ,
const ExplodedNode Pred,
BugReporterContext BRC,
BugReport BR 
) [override, virtual]

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