clang  16.0.0git
Public Member Functions | List of all members
clang::tooling::RenamingASTConsumer Class Reference
Inheritance diagram for clang::tooling::RenamingASTConsumer:
Inheritance graph
Collaboration diagram for clang::tooling::RenamingASTConsumer:
Collaboration graph

Public Member Functions

 RenamingASTConsumer (const std::vector< std::string > &NewNames, const std::vector< std::string > &PrevNames, const std::vector< std::vector< std::string >> &USRList, std::map< std::string, tooling::Replacements > &FileToReplaces, bool PrintLocations)
void HandleTranslationUnit (ASTContext &Context) override
 HandleTranslationUnit - This method is called when the ASTs for entire translation unit have been parsed. More...
void HandleOneRename (ASTContext &Context, const std::string &NewName, const std::string &PrevName, const std::vector< std::string > &USRs)
- Public Member Functions inherited from clang::ASTConsumer
 ASTConsumer ()
virtual ~ASTConsumer ()
virtual void Initialize (ASTContext &Context)
 Initialize - This is called to initialize the consumer, providing the ASTContext. More...
virtual bool HandleTopLevelDecl (DeclGroupRef D)
 HandleTopLevelDecl - Handle the specified top-level declaration. More...
virtual void HandleInlineFunctionDefinition (FunctionDecl *D)
 This callback is invoked each time an inline (method or friend) function definition in a class is completed. More...
virtual void HandleInterestingDecl (DeclGroupRef D)
 HandleInterestingDecl - Handle the specified interesting declaration. More...
virtual void HandleTagDeclDefinition (TagDecl *D)
 HandleTagDeclDefinition - This callback is invoked each time a TagDecl (e.g. More...
virtual void HandleTagDeclRequiredDefinition (const TagDecl *D)
 This callback is invoked the first time each TagDecl is required to be complete. More...
virtual void HandleCXXImplicitFunctionInstantiation (FunctionDecl *D)
 Invoked when a function is implicitly instantiated. More...
virtual void HandleTopLevelDeclInObjCContainer (DeclGroupRef D)
 Handle the specified top-level declaration that occurred inside and ObjC container. More...
virtual void HandleImplicitImportDecl (ImportDecl *D)
 Handle an ImportDecl that was implicitly created due to an inclusion directive. More...
virtual void CompleteTentativeDefinition (VarDecl *D)
 CompleteTentativeDefinition - Callback invoked at the end of a translation unit to notify the consumer that the given tentative definition should be completed. More...
virtual void CompleteExternalDeclaration (VarDecl *D)
 CompleteExternalDeclaration - Callback invoked at the end of a translation unit to notify the consumer that the given external declaration should be completed. More...
virtual void AssignInheritanceModel (CXXRecordDecl *RD)
 Callback invoked when an MSInheritanceAttr has been attached to a CXXRecordDecl. More...
virtual void HandleCXXStaticMemberVarInstantiation (VarDecl *D)
 HandleCXXStaticMemberVarInstantiation - Tell the consumer that this. More...
virtual void HandleVTable (CXXRecordDecl *RD)
 Callback involved at the end of a translation unit to notify the consumer that a vtable for the given C++ class is required. More...
virtual ASTMutationListenerGetASTMutationListener ()
 If the consumer is interested in entities getting modified after their initial creation, it should return a pointer to an ASTMutationListener here. More...
virtual ASTDeserializationListenerGetASTDeserializationListener ()
 If the consumer is interested in entities being deserialized from AST files, it should return a pointer to a ASTDeserializationListener here. More...
virtual void PrintStats ()
 PrintStats - If desired, print any statistics. More...
virtual bool shouldSkipFunctionBody (Decl *D)
 This callback is called for each function if the Parser was initialized with SkipFunctionBodies set to true. More...

Detailed Description

Definition at line 160 of file RenamingAction.cpp.

Constructor & Destructor Documentation

◆ RenamingASTConsumer()

clang::tooling::RenamingASTConsumer::RenamingASTConsumer ( const std::vector< std::string > &  NewNames,
const std::vector< std::string > &  PrevNames,
const std::vector< std::vector< std::string >> &  USRList,
std::map< std::string, tooling::Replacements > &  FileToReplaces,
bool  PrintLocations 

Definition at line 162 of file RenamingAction.cpp.

Member Function Documentation

◆ HandleOneRename()

void clang::tooling::RenamingASTConsumer::HandleOneRename ( ASTContext Context,
const std::string NewName,
const std::string PrevName,
const std::vector< std::string > &  USRs 

Definition at line 181 of file RenamingAction.cpp.

◆ HandleTranslationUnit()

void clang::tooling::RenamingASTConsumer::HandleTranslationUnit ( ASTContext Ctx)

HandleTranslationUnit - This method is called when the ASTs for entire translation unit have been parsed.

Reimplemented from clang::ASTConsumer.

Definition at line 171 of file RenamingAction.cpp.

References clang::tooling::AtomicChange::getReplacements(), string(), and clang::threadSafety::sx::toString().

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