clang  6.0.0svn
Public Member Functions | List of all members
clang::consumed::ConsumedStmtVisitor Class Reference
Inheritance diagram for clang::consumed::ConsumedStmtVisitor:
Inheritance graph
[legend]
Collaboration diagram for clang::consumed::ConsumedStmtVisitor:
Collaboration graph
[legend]

Public Member Functions

void checkCallability (const PropagationInfo &PInfo, const FunctionDecl *FunDecl, SourceLocation BlameLoc)
 
bool handleCall (const CallExpr *Call, const Expr *ObjArg, const FunctionDecl *FunD)
 
void VisitBinaryOperator (const BinaryOperator *BinOp)
 
void VisitCallExpr (const CallExpr *Call)
 
void VisitCastExpr (const CastExpr *Cast)
 
void VisitCXXBindTemporaryExpr (const CXXBindTemporaryExpr *Temp)
 
void VisitCXXConstructExpr (const CXXConstructExpr *Call)
 
void VisitCXXMemberCallExpr (const CXXMemberCallExpr *Call)
 
void VisitCXXOperatorCallExpr (const CXXOperatorCallExpr *Call)
 
void VisitDeclRefExpr (const DeclRefExpr *DeclRef)
 
void VisitDeclStmt (const DeclStmt *DelcS)
 
void VisitMaterializeTemporaryExpr (const MaterializeTemporaryExpr *Temp)
 
void VisitMemberExpr (const MemberExpr *MExpr)
 
void VisitParmVarDecl (const ParmVarDecl *Param)
 
void VisitReturnStmt (const ReturnStmt *Ret)
 
void VisitUnaryOperator (const UnaryOperator *UOp)
 
void VisitVarDecl (const VarDecl *Var)
 
 ConsumedStmtVisitor (AnalysisDeclContext &AC, ConsumedAnalyzer &Analyzer, ConsumedStateMap *StateMap)
 
PropagationInfo getInfo (const Expr *StmtNode) const
 
void reset (ConsumedStateMap *NewStateMap)
 
- Public Member Functions inherited from clang::StmtVisitorBase< make_const_ptr, ConsumedStmtVisitor, void, ParamTys... >
void Visit (PTR(Stmt) S, ParamTys... P)
 
 BINOP_FALLBACK (PtrMemD) BINOP_FALLBACK(PtrMemI) BINOP_FALLBACK(Mul) BINOP_FALLBACK(Div) BINOP_FALLBACK(Rem) BINOP_FALLBACK(Add) BINOP_FALLBACK(Sub) BINOP_FALLBACK(Shl) BINOP_FALLBACK(LT) BINOP_FALLBACK(GT) BINOP_FALLBACK(LE) BINOP_FALLBACK(GE) BINOP_FALLBACK(EQ) BINOP_FALLBACK(NE) BINOP_FALLBACK(And) BINOP_FALLBACK(Xor) BINOP_FALLBACK(Or) BINOP_FALLBACK(LAnd) BINOP_FALLBACK(LOr) CAO_FALLBACK(MulAssign) CAO_FALLBACK(DivAssign) CAO_FALLBACK(RemAssign) CAO_FALLBACK(AddAssign) CAO_FALLBACK(SubAssign) CAO_FALLBACK(ShlAssign) CAO_FALLBACK(ShrAssign) CAO_FALLBACK(AndAssign) CAO_FALLBACK(OrAssign) UNARYOP_FALLBACK(PostInc) UNARYOP_FALLBACK(PostDec) UNARYOP_FALLBACK(PreInc) UNARYOP_FALLBACK(PreDec) UNARYOP_FALLBACK(AddrOf) UNARYOP_FALLBACK(Deref) UNARYOP_FALLBACK(Plus) UNARYOP_FALLBACK(Minus) UNARYOP_FALLBACK(Not) UNARYOP_FALLBACK(LNot) UNARYOP_FALLBACK(Real) UNARYOP_FALLBACK(Imag) UNARYOP_FALLBACK(Extension) UNARYOP_FALLBACK(Coawait) void VisitStmt(PTR(Stmt) Node
 

Additional Inherited Members

- Public Attributes inherited from clang::StmtVisitorBase< make_const_ptr, ConsumedStmtVisitor, void, ParamTys... >
ParamTys P
 

Detailed Description

Definition at line 453 of file Consumed.cpp.

Constructor & Destructor Documentation

◆ ConsumedStmtVisitor()

clang::consumed::ConsumedStmtVisitor::ConsumedStmtVisitor ( AnalysisDeclContext AC,
ConsumedAnalyzer Analyzer,
ConsumedStateMap StateMap 
)
inline

Definition at line 510 of file Consumed.cpp.

Member Function Documentation

◆ checkCallability()

void clang::consumed::ConsumedStmtVisitor::checkCallability ( const PropagationInfo PInfo,
const FunctionDecl FunDecl,
SourceLocation  BlameLoc 
)

◆ getInfo()

PropagationInfo clang::consumed::ConsumedStmtVisitor::getInfo ( const Expr StmtNode) const
inline

Definition at line 514 of file Consumed.cpp.

◆ handleCall()

bool clang::consumed::ConsumedStmtVisitor::handleCall ( const CallExpr Call,
const Expr ObjArg,
const FunctionDecl FunD 
)

◆ reset()

void clang::consumed::ConsumedStmtVisitor::reset ( ConsumedStateMap NewStateMap)
inline

◆ VisitBinaryOperator()

void clang::consumed::ConsumedStmtVisitor::VisitBinaryOperator ( const BinaryOperator BinOp)

◆ VisitCallExpr()

void clang::consumed::ConsumedStmtVisitor::VisitCallExpr ( const CallExpr Call)

◆ VisitCastExpr()

void clang::consumed::ConsumedStmtVisitor::VisitCastExpr ( const CastExpr Cast)

Definition at line 761 of file Consumed.cpp.

References clang::CastExpr::getSubExpr().

◆ VisitCXXBindTemporaryExpr()

void clang::consumed::ConsumedStmtVisitor::VisitCXXBindTemporaryExpr ( const CXXBindTemporaryExpr Temp)

Definition at line 765 of file Consumed.cpp.

References clang::CXXBindTemporaryExpr::getSubExpr().

◆ VisitCXXConstructExpr()

void clang::consumed::ConsumedStmtVisitor::VisitCXXConstructExpr ( const CXXConstructExpr Call)

◆ VisitCXXMemberCallExpr()

void clang::consumed::ConsumedStmtVisitor::VisitCXXMemberCallExpr ( const CXXMemberCallExpr Call)

◆ VisitCXXOperatorCallExpr()

void clang::consumed::ConsumedStmtVisitor::VisitCXXOperatorCallExpr ( const CXXOperatorCallExpr Call)

◆ VisitDeclRefExpr()

void clang::consumed::ConsumedStmtVisitor::VisitDeclRefExpr ( const DeclRefExpr DeclRef)

Definition at line 842 of file Consumed.cpp.

References clang::consumed::CS_None, and clang::DeclRefExpr::getDecl().

◆ VisitDeclStmt()

void clang::consumed::ConsumedStmtVisitor::VisitDeclStmt ( const DeclStmt DelcS)

◆ VisitMaterializeTemporaryExpr()

void clang::consumed::ConsumedStmtVisitor::VisitMaterializeTemporaryExpr ( const MaterializeTemporaryExpr Temp)

Definition at line 858 of file Consumed.cpp.

References clang::MaterializeTemporaryExpr::GetTemporaryExpr().

◆ VisitMemberExpr()

void clang::consumed::ConsumedStmtVisitor::VisitMemberExpr ( const MemberExpr MExpr)

Definition at line 864 of file Consumed.cpp.

References clang::MemberExpr::getBase().

◆ VisitParmVarDecl()

void clang::consumed::ConsumedStmtVisitor::VisitParmVarDecl ( const ParmVarDecl Param)

◆ VisitReturnStmt()

void clang::consumed::ConsumedStmtVisitor::VisitReturnStmt ( const ReturnStmt Ret)

◆ VisitUnaryOperator()

void clang::consumed::ConsumedStmtVisitor::VisitUnaryOperator ( const UnaryOperator UOp)

◆ VisitVarDecl()

void clang::consumed::ConsumedStmtVisitor::VisitVarDecl ( const VarDecl Var)

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