clang-tools  15.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
Collaboration diagram for clang::tidy::modernize::StmtAncestorASTVisitor:
Collaboration graph

Public Member Functions

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


class clang::RecursiveASTVisitor< StmtAncestorASTVisitor >

Detailed Description

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

Definition at line 58 of file LoopConvertUtils.h.

Constructor & Destructor Documentation

◆ StmtAncestorASTVisitor()

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

Definition at line 61 of file LoopConvertUtils.h.

Member Function Documentation

◆ gatherAncestors()

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

Run the analysis on the AST.

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

Definition at line 66 of file LoopConvertUtils.h.

References Ctx.

◆ getDeclToParentStmtMap()

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

Accessor for DeclParents.

Definition at line 75 of file LoopConvertUtils.h.

◆ getStmtToParentStmtMap()

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

Accessor for StmtAncestors.

Definition at line 72 of file LoopConvertUtils.h.

Friends And Related Function Documentation

◆ clang::RecursiveASTVisitor< StmtAncestorASTVisitor >

friend class clang::RecursiveASTVisitor< StmtAncestorASTVisitor >

Definition at line 77 of file LoopConvertUtils.h.

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