ΒΆstd::vector<tooling::AtomicChange>
createRenameAtomicChanges(
    llvm::ArrayRef<std::string> USRs,
    llvm::StringRef NewName,
    clang::Decl* TranslationUnitDecl)

Description

Create atomic changes for renaming all symbol references which are identified by the USRs set to a given new name.

Declared at: clang/include/clang/Tooling/Refactoring/Rename/USRLocFinder.h:38

Parameters

llvm::ArrayRef<std::string> USRs
The set containing USRs of a particular old symbol.
llvm::StringRef NewName
The new name to replace old symbol name.
clang::Decl* TranslationUnitDecl
The translation unit declaration.

Returns

Atomic changes for renaming.