class USRSymbolRenamer

Declaration

class USRSymbolRenamer : public ASTConsumer { /* full declaration omitted */ };

Description

ASTConsumer - This is an abstract interface that should be implemented by clients that read ASTs. This abstraction layer allows the client to be independent of the AST producer (e.g. parser vs AST dump file reader, etc).

Declared at: clang/lib/Tooling/Refactoring/Rename/RenamingAction.cpp:244

Inherits from: ASTConsumer

Member Variables

private const std::vector<std::string>& NewNames
private const std::vector<std::vector<std::string>>& USRList
private std::map<std::string, tooling::Replacements>& FileToReplaces

Method Overview

  • public void HandleTranslationUnit(clang::ASTContext & Context)
  • public USRSymbolRenamer(const std::vector<std::string> & NewNames, const std::vector<std::vector<std::string>> & USRList, std::map<std::string, tooling::Replacements> & FileToReplaces)

Inherited from ASTConsumer:

Methods

void HandleTranslationUnit(
    clang::ASTContext& Context)

Description

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

Declared at: clang/lib/Tooling/Refactoring/Rename/RenamingAction.cpp:253

Parameters

clang::ASTContext& Context

USRSymbolRenamer(
    const std::vector<std::string>& NewNames,
    const std::vector<std::vector<std::string>>&
        USRList,
    std::map<std::string, tooling::Replacements>&
        FileToReplaces)

Declared at: clang/lib/Tooling/Refactoring/Rename/RenamingAction.cpp:246

Parameters

const std::vector<std::string>& NewNames
const std::vector<std::vector<std::string>>& USRList
std::map<std::string, tooling::Replacements>& FileToReplaces