clang-tools  14.0.0git
Classes | Public Member Functions | List of all members
clang::tidy::misc::UnusedParametersCheck::IndexerVisitor Class Reference
Inheritance diagram for clang::tidy::misc::UnusedParametersCheck::IndexerVisitor:
Inheritance graph
Collaboration diagram for clang::tidy::misc::UnusedParametersCheck::IndexerVisitor:
Collaboration graph

Public Member Functions

 IndexerVisitor (ASTContext &Ctx)
const std::unordered_set< const CallExpr * > & getFnCalls (const FunctionDecl *Fn)
const std::unordered_set< const DeclRefExpr * > & getOtherRefs (const FunctionDecl *Fn)
bool shouldTraversePostOrder () const
bool WalkUpFromDeclRefExpr (DeclRefExpr *DeclRef)
bool WalkUpFromCallExpr (CallExpr *Call)

Detailed Description

Definition at line 75 of file UnusedParametersCheck.cpp.

Constructor & Destructor Documentation

◆ IndexerVisitor()

clang::tidy::misc::UnusedParametersCheck::IndexerVisitor::IndexerVisitor ( ASTContext &  Ctx)

Definition at line 78 of file UnusedParametersCheck.cpp.

References Ctx.

Member Function Documentation

◆ getFnCalls()

const std::unordered_set<const CallExpr *>& clang::tidy::misc::UnusedParametersCheck::IndexerVisitor::getFnCalls ( const FunctionDecl *  Fn)

Definition at line 81 of file UnusedParametersCheck.cpp.

References Index.

◆ getOtherRefs()

const std::unordered_set<const DeclRefExpr *>& clang::tidy::misc::UnusedParametersCheck::IndexerVisitor::getOtherRefs ( const FunctionDecl *  Fn)

Definition at line 86 of file UnusedParametersCheck.cpp.

References Index.

◆ shouldTraversePostOrder()

bool clang::tidy::misc::UnusedParametersCheck::IndexerVisitor::shouldTraversePostOrder ( ) const

Definition at line 90 of file UnusedParametersCheck.cpp.

◆ WalkUpFromCallExpr()

bool clang::tidy::misc::UnusedParametersCheck::IndexerVisitor::WalkUpFromCallExpr ( CallExpr *  Call)

Definition at line 100 of file UnusedParametersCheck.cpp.

References Index.

◆ WalkUpFromDeclRefExpr()

bool clang::tidy::misc::UnusedParametersCheck::IndexerVisitor::WalkUpFromDeclRefExpr ( DeclRefExpr *  DeclRef)

Definition at line 92 of file UnusedParametersCheck.cpp.

References DeclRef, and Index.

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