clang 20.0.0git
|
Given a potentially-evaluated expression, this visitor visits all of its potentially-evaluated subexpressions, recursively. More...
#include "clang/AST/EvaluatedExprVisitor.h"
Public Member Functions | |
bool | shouldVisitDiscardedStmt () const |
EvaluatedExprVisitorBase (const ASTContext &Context) | |
void | VisitDeclRefExpr (PTR(DeclRefExpr) E) |
void | VisitOffsetOfExpr (PTR(OffsetOfExpr) E) |
void | VisitUnaryExprOrTypeTraitExpr (PTR(UnaryExprOrTypeTraitExpr) E) |
void | VisitExpressionTraitExpr (PTR(ExpressionTraitExpr) E) |
void | VisitBlockExpr (PTR(BlockExpr) E) |
void | VisitCXXUuidofExpr (PTR(CXXUuidofExpr) E) |
void | VisitCXXNoexceptExpr (PTR(CXXNoexceptExpr) E) |
void | VisitMemberExpr (PTR(MemberExpr) E) |
void | VisitChooseExpr (PTR(ChooseExpr) E) |
void | VisitGenericSelectionExpr (PTR(GenericSelectionExpr) E) |
void | VisitDesignatedInitExpr (PTR(DesignatedInitExpr) E) |
void | VisitCXXTypeidExpr (PTR(CXXTypeidExpr) E) |
void | VisitCallExpr (PTR(CallExpr) CE) |
void | VisitLambdaExpr (PTR(LambdaExpr) LE) |
void | VisitStmt (PTR(Stmt) S) |
The basis case walks all of the children of the statement or expression, assuming they are all potentially evaluated. | |
void | VisitIfStmt (PTR(IfStmt) If) |
ImplClass & | getDerived () |
Public Member Functions inherited from clang::StmtVisitorBase< Ptr, ImplClass, void > | |
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 | |
Protected Attributes | |
const ASTContext & | Context |
Additional Inherited Members | |
Public Attributes inherited from clang::StmtVisitorBase< Ptr, ImplClass, void > | |
ParamTys | P |
Given a potentially-evaluated expression, this visitor visits all of its potentially-evaluated subexpressions, recursively.
Definition at line 30 of file EvaluatedExprVisitor.h.
|
inlineexplicit |
Definition at line 40 of file EvaluatedExprVisitor.h.
|
inline |
Definition at line 121 of file EvaluatedExprVisitor.h.
Referenced by clang::EvaluatedExprVisitorBase< Ptr, ImplClass >::VisitCallExpr(), and clang::EvaluatedExprVisitorBase< Ptr, ImplClass >::VisitIfStmt().
|
inline |
Definition at line 37 of file EvaluatedExprVisitor.h.
Referenced by clang::EvaluatedExprVisitorBase< Ptr, ImplClass >::VisitIfStmt().
|
inline |
Definition at line 48 of file EvaluatedExprVisitor.h.
|
inline |
Definition at line 87 of file EvaluatedExprVisitor.h.
References clang::EvaluatedExprVisitorBase< Ptr, ImplClass >::Context, clang::EvaluatedExprVisitorBase< Ptr, ImplClass >::getDerived(), and clang::CallExpr::isUnevaluatedBuiltinCall().
|
inline |
Definition at line 57 of file EvaluatedExprVisitor.h.
References E, clang::ChooseExpr::getChosenSubExpr(), and clang::StmtVisitorBase< Ptr, ImplClass, void >::Visit().
|
inline |
Definition at line 50 of file EvaluatedExprVisitor.h.
|
inline |
Definition at line 82 of file EvaluatedExprVisitor.h.
References E, clang::CXXTypeidExpr::getExprOperand(), and clang::StmtVisitorBase< Ptr, ImplClass, void >::Visit().
|
inline |
Definition at line 49 of file EvaluatedExprVisitor.h.
|
inline |
Definition at line 44 of file EvaluatedExprVisitor.h.
|
inline |
Definition at line 76 of file EvaluatedExprVisitor.h.
References clang::DesignatedInitExpr::getInit(), and clang::StmtVisitorBase< Ptr, ImplClass, void >::Visit().
|
inline |
Definition at line 47 of file EvaluatedExprVisitor.h.
|
inline |
Definition at line 65 of file EvaluatedExprVisitor.h.
References E, clang::GenericSelectionExpr::getResultExpr(), and clang::StmtVisitorBase< Ptr, ImplClass, void >::Visit().
|
inline |
Definition at line 109 of file EvaluatedExprVisitor.h.
References clang::EvaluatedExprVisitorBase< Ptr, ImplClass >::Context, clang::EvaluatedExprVisitorBase< Ptr, ImplClass >::getDerived(), clang::If, clang::EvaluatedExprVisitorBase< Ptr, ImplClass >::shouldVisitDiscardedStmt(), and clang::StmtVisitorBase< Ptr, ImplClass, void >::Visit().
|
inline |
Definition at line 92 of file EvaluatedExprVisitor.h.
References E, and clang::StmtVisitorBase< Ptr, ImplClass, void >::Visit().
|
inline |
Definition at line 52 of file EvaluatedExprVisitor.h.
References clang::MemberExpr::getBase(), and clang::StmtVisitorBase< Ptr, ImplClass, void >::Visit().
|
inline |
Definition at line 45 of file EvaluatedExprVisitor.h.
|
inline |
The basis case walks all of the children of the statement or expression, assuming they are all potentially evaluated.
Definition at line 103 of file EvaluatedExprVisitor.h.
References clang::StmtVisitorBase< Ptr, ImplClass, void >::Visit().
|
inline |
Definition at line 46 of file EvaluatedExprVisitor.h.
|
protected |
Definition at line 32 of file EvaluatedExprVisitor.h.
Referenced by clang::EvaluatedExprVisitorBase< Ptr, ImplClass >::VisitCallExpr(), and clang::EvaluatedExprVisitorBase< Ptr, ImplClass >::VisitIfStmt().