clang-tools 20.0.0git
Public Member Functions | Public Attributes | List of all members
clang::tidy::readability::FindUsageOfThis Class Reference
Inheritance diagram for clang::tidy::readability::FindUsageOfThis:
Inheritance graph
[legend]

Public Member Functions

 FindUsageOfThis (ASTContext &Ctxt)
 
template<class T >
const T * getParent (const Expr *E)
 
const Expr * getParentExprIgnoreParens (const Expr *E)
 
bool VisitUnresolvedMemberExpr (const UnresolvedMemberExpr *)
 
bool VisitCXXConstCastExpr (const CXXConstCastExpr *)
 
bool visitUser (const ImplicitCastExpr *Cast)
 
bool visitUser (const MemberExpr *Member, bool OnConstObject)
 
bool VisitCXXThisExpr (const CXXThisExpr *E)
 

Public Attributes

UsageKind Usage = Unused
 

Detailed Description

Definition at line 52 of file MakeMemberFunctionConstCheck.cpp.

Constructor & Destructor Documentation

◆ FindUsageOfThis()

clang::tidy::readability::FindUsageOfThis::FindUsageOfThis ( ASTContext &  Ctxt)
inline

Definition at line 56 of file MakeMemberFunctionConstCheck.cpp.

Member Function Documentation

◆ getParent()

template<class T >
const T * clang::tidy::readability::FindUsageOfThis::getParent ( const Expr *  E)
inline

Definition at line 59 of file MakeMemberFunctionConstCheck.cpp.

References E.

◆ getParentExprIgnoreParens()

const Expr * clang::tidy::readability::FindUsageOfThis::getParentExprIgnoreParens ( const Expr *  E)
inline

Definition at line 67 of file MakeMemberFunctionConstCheck.cpp.

References E, and Parent.

Referenced by VisitCXXThisExpr(), and visitUser().

◆ VisitCXXConstCastExpr()

bool clang::tidy::readability::FindUsageOfThis::VisitCXXConstCastExpr ( const CXXConstCastExpr *  )
inline

Definition at line 81 of file MakeMemberFunctionConstCheck.cpp.

References clang::tidy::readability::NonConst, and Usage.

◆ VisitCXXThisExpr()

bool clang::tidy::readability::FindUsageOfThis::VisitCXXThisExpr ( const CXXThisExpr *  E)
inline

◆ VisitUnresolvedMemberExpr()

bool clang::tidy::readability::FindUsageOfThis::VisitUnresolvedMemberExpr ( const UnresolvedMemberExpr *  )
inline

Definition at line 74 of file MakeMemberFunctionConstCheck.cpp.

References clang::tidy::readability::NonConst, and Usage.

◆ visitUser() [1/2]

bool clang::tidy::readability::FindUsageOfThis::visitUser ( const ImplicitCastExpr *  Cast)
inline

Definition at line 99 of file MakeMemberFunctionConstCheck.cpp.

References Parent, and visitUser().

Referenced by VisitCXXThisExpr(), and visitUser().

◆ visitUser() [2/2]

bool clang::tidy::readability::FindUsageOfThis::visitUser ( const MemberExpr *  Member,
bool  OnConstObject 
)
inline

Definition at line 130 of file MakeMemberFunctionConstCheck.cpp.

References getParentExprIgnoreParens(), M, Parent, and visitUser().

Member Data Documentation

◆ Usage

UsageKind clang::tidy::readability::FindUsageOfThis::Usage = Unused

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