clang  14.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]
Collaboration diagram for clang::UsedDeclVisitor< Derived >:
Collaboration 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 visitUsedDecl (SourceLocation Loc, Decl *D)
 
- Public Member Functions inherited from clang::EvaluatedExprVisitor< Derived >
 EvaluatedExprVisitor (const ASTContext &Context)
 
- Public Member Functions inherited from clang::EvaluatedExprVisitorBase< std::add_pointer, Derived >
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. More...
 
void VisitIfStmt (PTR(IfStmt) If)
 
Derived & getDerived ()
 
- Public Member Functions inherited from clang::StmtVisitorBase< std::add_pointer, Derived, 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< std::add_pointer, Derived >
const ASTContextContext
 

Additional Inherited Members

- Public Attributes inherited from clang::StmtVisitorBase< std::add_pointer, Derived, 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

◆ VisitCXXConstructExpr()

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

◆ VisitCXXDefaultArgExpr()

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

◆ VisitCXXDeleteExpr()

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

◆ VisitCXXNewExpr()

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

◆ VisitDeclRefExpr()

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

◆ VisitMemberExpr()

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

◆ 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: