clang 20.0.0git
Public Types | Public Member Functions | Protected Attributes | List of all members
clang::UsedDeclVisitor< Derived > Class Template Reference

#include "/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/Sema/UsedDeclVisitor.h"

Inheritance diagram for clang::UsedDeclVisitor< Derived >:
Inheritance graph
[legend]

Public Types

typedef EvaluatedExprVisitor< Derived > Inherited
 

Public Member Functions

 UsedDeclVisitor (Sema &S)
 
Derived & asImpl ()
 
void VisitDeclRefExpr (DeclRefExpr *E)
 
void VisitMemberExpr (MemberExpr *E)
 
void VisitCapturedStmt (CapturedStmt *Node)
 
void VisitCXXBindTemporaryExpr (CXXBindTemporaryExpr *E)
 
void VisitCXXNewExpr (CXXNewExpr *E)
 
void VisitCXXDeleteExpr (CXXDeleteExpr *E)
 
void VisitCXXConstructExpr (CXXConstructExpr *E)
 
void VisitCXXDefaultArgExpr (CXXDefaultArgExpr *E)
 
void VisitCXXDefaultInitExpr (CXXDefaultInitExpr *E)
 
void VisitInitListExpr (InitListExpr *ILE)
 
void visitUsedDecl (SourceLocation Loc, Decl *D)
 
- Public Member Functions inherited from clang::EvaluatedExprVisitor< Derived >
 EvaluatedExprVisitor (const ASTContext &Context)
 
- Public Member Functions inherited from clang::EvaluatedExprVisitorBase< Ptr, ImplClass >
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

SemaS
 
- Protected Attributes inherited from clang::EvaluatedExprVisitorBase< Ptr, ImplClass >
const ASTContextContext
 

Additional Inherited Members

- Public Attributes inherited from clang::StmtVisitorBase< Ptr, ImplClass, void >
ParamTys P
 

Detailed Description

template<class Derived>
class clang::UsedDeclVisitor< Derived >

Definition at line 21 of file UsedDeclVisitor.h.

Member Typedef Documentation

◆ Inherited

template<class Derived >
typedef EvaluatedExprVisitor<Derived> clang::UsedDeclVisitor< Derived >::Inherited

Definition at line 26 of file UsedDeclVisitor.h.

Constructor & Destructor Documentation

◆ UsedDeclVisitor()

template<class Derived >
clang::UsedDeclVisitor< Derived >::UsedDeclVisitor ( Sema S)
inline

Definition at line 28 of file UsedDeclVisitor.h.

Member Function Documentation

◆ asImpl()

template<class Derived >
Derived & clang::UsedDeclVisitor< Derived >::asImpl ( )
inline

◆ VisitCapturedStmt()

template<class Derived >
void clang::UsedDeclVisitor< Derived >::VisitCapturedStmt ( CapturedStmt Node)
inline

Definition at line 47 of file UsedDeclVisitor.h.

References clang::UsedDeclVisitor< Derived >::asImpl(), and Node.

◆ VisitCXXBindTemporaryExpr()

template<class Derived >
void clang::UsedDeclVisitor< Derived >::VisitCXXBindTemporaryExpr ( CXXBindTemporaryExpr E)
inline

Definition at line 52 of file UsedDeclVisitor.h.

References clang::UsedDeclVisitor< Derived >::asImpl(), and E.

◆ VisitCXXConstructExpr()

template<class Derived >
void clang::UsedDeclVisitor< Derived >::VisitCXXConstructExpr ( CXXConstructExpr E)
inline

Definition at line 83 of file UsedDeclVisitor.h.

References clang::UsedDeclVisitor< Derived >::asImpl(), D, E, and clang::Init.

◆ VisitCXXDefaultArgExpr()

template<class Derived >
void clang::UsedDeclVisitor< Derived >::VisitCXXDefaultArgExpr ( CXXDefaultArgExpr E)
inline

Definition at line 93 of file UsedDeclVisitor.h.

References clang::UsedDeclVisitor< Derived >::asImpl(), and E.

◆ VisitCXXDefaultInitExpr()

template<class Derived >
void clang::UsedDeclVisitor< Derived >::VisitCXXDefaultInitExpr ( CXXDefaultInitExpr E)
inline

Definition at line 98 of file UsedDeclVisitor.h.

References clang::UsedDeclVisitor< Derived >::asImpl(), and E.

◆ VisitCXXDeleteExpr()

template<class Derived >
void clang::UsedDeclVisitor< Derived >::VisitCXXDeleteExpr ( CXXDeleteExpr E)
inline

◆ VisitCXXNewExpr()

template<class Derived >
void clang::UsedDeclVisitor< Derived >::VisitCXXNewExpr ( CXXNewExpr E)
inline

Definition at line 59 of file UsedDeclVisitor.h.

References clang::UsedDeclVisitor< Derived >::asImpl(), and E.

◆ VisitDeclRefExpr()

template<class Derived >
void clang::UsedDeclVisitor< Derived >::VisitDeclRefExpr ( DeclRefExpr E)
inline

Definition at line 32 of file UsedDeclVisitor.h.

References clang::UsedDeclVisitor< Derived >::asImpl(), D, and E.

◆ VisitInitListExpr()

template<class Derived >
void clang::UsedDeclVisitor< Derived >::VisitInitListExpr ( InitListExpr ILE)
inline

◆ VisitMemberExpr()

template<class Derived >
void clang::UsedDeclVisitor< Derived >::VisitMemberExpr ( MemberExpr E)
inline

Definition at line 39 of file UsedDeclVisitor.h.

References clang::UsedDeclVisitor< Derived >::asImpl(), D, and E.

◆ visitUsedDecl()

template<class Derived >
void clang::UsedDeclVisitor< Derived >::visitUsedDecl ( SourceLocation  Loc,
Decl D 
)
inline

Member Data Documentation

◆ S

template<class Derived >
Sema& clang::UsedDeclVisitor< Derived >::S
protected

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