clang  3.7.0
Public Member Functions | List of all members
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:
[legend]
Collaboration diagram for clang::ento::UndefOrNullArgVisitor:
[legend]

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. More...
 
- Public Member Functions inherited from clang::ento::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...
 

Additional Inherited Members

- 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...
 

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

clang::ento::UndefOrNullArgVisitor::UndefOrNullArgVisitor ( const MemRegion InR)
inline

Definition at line 286 of file BugReporterVisitor.h.

Member Function Documentation

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

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 
)
overridevirtual

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