clang-tools  14.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
Collaboration diagram for clang::tidy::readability::FindUsageOfThis:
Collaboration graph

Public Member Functions

 FindUsageOfThis (ASTContext &Ctxt)
template<class T >
const T * getParent (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 54 of file MakeMemberFunctionConstCheck.cpp.

Constructor & Destructor Documentation

◆ FindUsageOfThis()

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

Definition at line 58 of file MakeMemberFunctionConstCheck.cpp.

Member Function Documentation

◆ getParent()

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

Definition at line 61 of file MakeMemberFunctionConstCheck.cpp.

◆ VisitCXXConstCastExpr()

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

Definition at line 76 of file MakeMemberFunctionConstCheck.cpp.

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

◆ VisitCXXThisExpr()

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

◆ VisitUnresolvedMemberExpr()

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

Definition at line 69 of file MakeMemberFunctionConstCheck.cpp.

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

◆ visitUser() [1/2]

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

Definition at line 94 of file MakeMemberFunctionConstCheck.cpp.

References Parent.

◆ visitUser() [2/2]

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

Definition at line 125 of file MakeMemberFunctionConstCheck.cpp.

References M, and Parent.

Member Data Documentation

◆ Usage

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

Definition at line 59 of file MakeMemberFunctionConstCheck.cpp.

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