clang-tools  3.9.0
Namespaces | Functions
clang Namespace Reference

-rename More...

Namespaces

 ast_matchers
 
 format
 
 query
 
 rename
 
 replace
 
 tidy
 
 tooling
 

Functions

static Token getTokenAtLoc (SourceLocation Loc, const MatchFinder::MatchResult &MatchResult, IdentifierTable &IdentTable)
 

Detailed Description

-rename

Minimal clang-rename integration with Vim.

Before installing make sure one of the following is satisfied:

* clang-rename is in your PATH
* `g:clang_rename_path` in ~/.vimrc points to valid clang-rename executable
* `binary` in clang-rename.py points to valid to clang-rename executable

To install, simply put this into your ~/.vimrc

  map ,cr :pyf <path-to>/clang-rename.py<cr>

IMPORTANT NOTE: Before running the tool, make sure you saved the file.

All you have to do now is to place a cursor on a variable/function/class which
you would like to rename and press ',cr'. You will be prompted for a new name if
the cursor points to a valid symbol.

Function Documentation

static Token clang::getTokenAtLoc ( SourceLocation  Loc,
const MatchFinder::MatchResult &  MatchResult,
IdentifierTable &  IdentTable 
)
static