clang API Documentation

Public Member Functions | Static Public Member Functions
clang::ento::FindLastStoreBRVisitor Class Reference

#include <BugReporterVisitor.h>

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

List of all members.

Public Member Functions

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

Static Public Member Functions

static BugReporterVisitorcreateVisitorObject (const ExplodedNode *N, const MemRegion *R)
 Convenience method to create a visitor given only the MemRegion. Returns NULL if the visitor cannot be created. For example, when the corresponding value is unknown.
static void registerStatementVarDecls (BugReport &BR, const Stmt *S)

Detailed Description

Definition at line 97 of file BugReporterVisitor.h.


Constructor & Destructor Documentation

clang::ento::FindLastStoreBRVisitor::FindLastStoreBRVisitor ( SVal  v,
const MemRegion r 
) [inline]

Member Function Documentation

BugReporterVisitor * FindLastStoreBRVisitor::createVisitorObject ( const ExplodedNode N,
const MemRegion R 
) [static]

Convenience method to create a visitor given only the MemRegion. Returns NULL if the visitor cannot be created. For example, when the corresponding value is unknown.

Definition at line 362 of file BugReporterVisitors.cpp.

References FindLastStoreBRVisitor(), clang::ento::ExplodedNode::getState(), and clang::ento::SVal::isUnknown().

void clang::ento::FindLastStoreBRVisitor::Profile ( llvm::FoldingSetNodeID &  ID) const [virtual]
void FindLastStoreBRVisitor::registerStatementVarDecls ( BugReport BR,
const Stmt S 
) [static]
PathDiagnosticPiece* clang::ento::FindLastStoreBRVisitor::VisitNode ( const ExplodedNode N,
const ExplodedNode PrevN,
BugReporterContext BRC,
BugReport BR 
) [virtual]

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.


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