clang-tools 22.0.0git
clang::tidy::modernize::ComponentFinderASTVisitor Class Reference

Class used to find the variables and member expressions on which an arbitrary expression depends. More...

#include <LoopConvertUtils.h>

Inheritance diagram for clang::tidy::modernize::ComponentFinderASTVisitor:
[legend]

Public Member Functions

 ComponentFinderASTVisitor ()=default
void findExprComponents (const clang::Expr *SourceExpr)
 Find the components of an expression and place them in a ComponentVector.
const ComponentVectorgetComponents ()
 Accessor for Components.

Friends

class clang::RecursiveASTVisitor< ComponentFinderASTVisitor >

Detailed Description

Class used to find the variables and member expressions on which an arbitrary expression depends.

Definition at line 88 of file LoopConvertUtils.h.

Constructor & Destructor Documentation

◆ ComponentFinderASTVisitor()

clang::tidy::modernize::ComponentFinderASTVisitor::ComponentFinderASTVisitor ( )
default

Member Function Documentation

◆ findExprComponents()

void clang::tidy::modernize::ComponentFinderASTVisitor::findExprComponents ( const clang::Expr * SourceExpr)
inline

Find the components of an expression and place them in a ComponentVector.

Definition at line 94 of file LoopConvertUtils.h.

Referenced by clang::tidy::modernize::LoopConvertCheck::check().

◆ getComponents()

const ComponentVector & clang::tidy::modernize::ComponentFinderASTVisitor::getComponents ( )
inline

Accessor for Components.

Definition at line 99 of file LoopConvertUtils.h.

Referenced by clang::tidy::modernize::LoopConvertCheck::check().

◆ clang::RecursiveASTVisitor< ComponentFinderASTVisitor >

friend class clang::RecursiveASTVisitor< ComponentFinderASTVisitor >
friend

Definition at line 99 of file LoopConvertUtils.h.


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