clang-tools  8.0.0svn
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 (const clang::TranslationUnitDecl *T)
 Run the analysis on the TranslationUnitDecl. 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 54 of file LoopConvertUtils.h.

Constructor & Destructor Documentation

◆ StmtAncestorASTVisitor()

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

Definition at line 57 of file LoopConvertUtils.h.

Member Function Documentation

◆ gatherAncestors()

void clang::tidy::modernize::StmtAncestorASTVisitor::gatherAncestors ( const clang::TranslationUnitDecl *  T)

Run the analysis on the TranslationUnitDecl.

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

Definition at line 62 of file LoopConvertUtils.h.

◆ getDeclToParentStmtMap()

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

Accessor for DeclParents.

Definition at line 71 of file LoopConvertUtils.h.

◆ getStmtToParentStmtMap()

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

Accessor for StmtAncestors.

Definition at line 68 of file LoopConvertUtils.h.

Friends And Related Function Documentation

◆ clang::RecursiveASTVisitor< StmtAncestorASTVisitor >

friend class clang::RecursiveASTVisitor< StmtAncestorASTVisitor >

Definition at line 73 of file LoopConvertUtils.h.

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