clang  7.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 460 of file Consumed.cpp.

Constructor & Destructor Documentation

◆ ConsumedStmtVisitor()

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

Definition at line 518 of file Consumed.cpp.

Member Function Documentation

◆ checkCallability()

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

◆ getInfo()

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

Definition at line 522 of file Consumed.cpp.

◆ handleCall()

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

Definition at line 614 of file Consumed.cpp.

◆ reset()

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

◆ VisitBinaryOperator()

void ConsumedStmtVisitor::VisitBinaryOperator ( const BinaryOperator BinOp)

◆ VisitCallExpr()

void ConsumedStmtVisitor::VisitCallExpr ( const CallExpr Call)

◆ VisitCastExpr()

void ConsumedStmtVisitor::VisitCastExpr ( const CastExpr Cast)

Definition at line 759 of file Consumed.cpp.

References clang::CastExpr::getSubExpr().

◆ VisitCXXBindTemporaryExpr()

void ConsumedStmtVisitor::VisitCXXBindTemporaryExpr ( const CXXBindTemporaryExpr Temp)

Definition at line 763 of file Consumed.cpp.

References clang::CXXBindTemporaryExpr::getSubExpr().

◆ VisitCXXConstructExpr()

void ConsumedStmtVisitor::VisitCXXConstructExpr ( const CXXConstructExpr Call)

◆ VisitCXXMemberCallExpr()

void ConsumedStmtVisitor::VisitCXXMemberCallExpr ( const CXXMemberCallExpr Call)

◆ VisitCXXOperatorCallExpr()

void ConsumedStmtVisitor::VisitCXXOperatorCallExpr ( const CXXOperatorCallExpr Call)

◆ VisitDeclRefExpr()

void ConsumedStmtVisitor::VisitDeclRefExpr ( const DeclRefExpr DeclRef)

Definition at line 836 of file Consumed.cpp.

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

◆ VisitDeclStmt()

void ConsumedStmtVisitor::VisitDeclStmt ( const DeclStmt DelcS)

◆ VisitMaterializeTemporaryExpr()

void ConsumedStmtVisitor::VisitMaterializeTemporaryExpr ( const MaterializeTemporaryExpr Temp)

Definition at line 852 of file Consumed.cpp.

References clang::MaterializeTemporaryExpr::GetTemporaryExpr().

◆ VisitMemberExpr()

void ConsumedStmtVisitor::VisitMemberExpr ( const MemberExpr MExpr)

Definition at line 857 of file Consumed.cpp.

References clang::MemberExpr::getBase().

◆ VisitParmVarDecl()

void ConsumedStmtVisitor::VisitParmVarDecl ( const ParmVarDecl Param)

◆ VisitReturnStmt()

void ConsumedStmtVisitor::VisitReturnStmt ( const ReturnStmt Ret)

◆ VisitUnaryOperator()

void ConsumedStmtVisitor::VisitUnaryOperator ( const UnaryOperator UOp)

◆ VisitVarDecl()

void ConsumedStmtVisitor::VisitVarDecl ( const VarDecl Var)

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