clang 8.0.0

Classes | Namespaces | Functions
RenamingAction.cpp File Reference

Provides an action to rename every symbol at a point. More...

`#include "clang/Tooling/Refactoring/Rename/RenamingAction.h"`
`#include "clang/AST/ASTConsumer.h"`
`#include "clang/AST/ASTContext.h"`
`#include "clang/Basic/FileManager.h"`
`#include "clang/Frontend/CompilerInstance.h"`
`#include "clang/Frontend/FrontendAction.h"`
`#include "clang/Lex/Lexer.h"`
`#include "clang/Lex/Preprocessor.h"`
`#include "clang/Tooling/CommonOptionsParser.h"`
`#include "clang/Tooling/Refactoring.h"`
`#include "clang/Tooling/Refactoring/RefactoringAction.h"`
`#include "clang/Tooling/Refactoring/RefactoringDiagnostic.h"`
`#include "clang/Tooling/Refactoring/RefactoringOptions.h"`
`#include "clang/Tooling/Refactoring/Rename/SymbolName.h"`
`#include "clang/Tooling/Refactoring/Rename/USRFinder.h"`
`#include "clang/Tooling/Refactoring/Rename/USRFindingAction.h"`
`#include "clang/Tooling/Refactoring/Rename/USRLocFinder.h"`
`#include "clang/Tooling/Tooling.h"`
`#include "llvm/ADT/STLExtras.h"`
`#include "llvm/Support/Errc.h"`
`#include "llvm/Support/Error.h"`
`#include <string>`
`#include <vector>`
Include dependency graph for RenamingAction.cpp:

Go to the source code of this file.

## Classes
class | clang::tooling::RenamingASTConsumer
class | clang::tooling::USRSymbolRenamer

## Namespaces
| clang
| Dataflow Directional Tag Classes.
| clang::tooling

## Functions
llvm::Expected< std::vector< AtomicChange > > | clang::tooling::createRenameReplacements (const SymbolOccurrences &Occurrences, const SourceManager &SM, const SymbolName &NewName)
| Returns source replacements that correspond to the rename of the given symbol occurrences. More...
static void | clang::tooling::convertChangesToFileReplacements (ArrayRef< AtomicChange > AtomicChanges, std::map< std::string, tooling::Replacements > *FileToReplaces)
| Takes each atomic change and inserts its replacements into the set of replacements that belong to the appropriate file. More...

## Detailed Description

Provides an action to rename every symbol at a point.

Definition in file RenamingAction.cpp.