clang-tools 17.0.0git
Public Member Functions | Friends | List of all members
clang::tidy::modernize::StmtAncestorASTVisitor Class Reference

Class used build the reverse AST properties needed to detect name conflicts and free variables. More...

#include <LoopConvertUtils.h>

Inheritance diagram for clang::tidy::modernize::StmtAncestorASTVisitor:
Inheritance graph
[legend]
Collaboration diagram for clang::tidy::modernize::StmtAncestorASTVisitor:
Collaboration graph
[legend]

Public Member Functions

 StmtAncestorASTVisitor ()
 
void gatherAncestors (ASTContext &Ctx)
 Run the analysis on the AST.
 
const StmtParentMapgetStmtToParentStmtMap ()
 Accessor for StmtAncestors.
 
const DeclParentMapgetDeclToParentStmtMap ()
 Accessor for DeclParents.
 

Friends

class clang::RecursiveASTVisitor< StmtAncestorASTVisitor >
 

Detailed Description

Class used build the reverse AST properties needed to detect name conflicts and free variables.

Definition at line 56 of file LoopConvertUtils.h.

Constructor & Destructor Documentation

◆ StmtAncestorASTVisitor()

clang::tidy::modernize::StmtAncestorASTVisitor::StmtAncestorASTVisitor ( )
inline

Definition at line 59 of file LoopConvertUtils.h.

Member Function Documentation

◆ gatherAncestors()

void clang::tidy::modernize::StmtAncestorASTVisitor::gatherAncestors ( ASTContext &  Ctx)
inline

Run the analysis on the AST.

In case we're running this analysis multiple times, don't repeat the work.

Definition at line 64 of file LoopConvertUtils.h.

◆ getDeclToParentStmtMap()

const DeclParentMap & clang::tidy::modernize::StmtAncestorASTVisitor::getDeclToParentStmtMap ( )
inline

Accessor for DeclParents.

Definition at line 73 of file LoopConvertUtils.h.

◆ getStmtToParentStmtMap()

const StmtParentMap & clang::tidy::modernize::StmtAncestorASTVisitor::getStmtToParentStmtMap ( )
inline

Accessor for StmtAncestors.

Definition at line 70 of file LoopConvertUtils.h.

Friends And Related Function Documentation

◆ clang::RecursiveASTVisitor< StmtAncestorASTVisitor >

friend class clang::RecursiveASTVisitor< StmtAncestorASTVisitor >
friend

Definition at line 73 of file LoopConvertUtils.h.


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