clang-tools  3.9.0
Classes | Functions
clang::rename Namespace Reference

Classes

class  RenamingASTConsumer
 
class  RenamingAction
 
struct  NamedDeclFindingConsumer
 
struct  USRFindingAction
 

Functions

const NamedDecl * getNamedDeclAt (const ASTContext &Context, const SourceLocation Point)
 
const NamedDecl * getNamedDeclFor (const ASTContext &Context, const std::string &Name)
 
std::string getUSRForDecl (const Decl *Decl)
 
static std::vector< std::string > getAllConstructorUSRs (const CXXRecordDecl *Decl)
 
std::vector< SourceLocation > getLocationsOfUSR (StringRef USR, StringRef PrevName, Decl *Decl)
 
std::vector< SourceLocation > getLocationsOfUSR (llvm::StringRef USR, llvm::StringRef PrevName, Decl *Decl)
 

Function Documentation

static std::vector<std::string> clang::rename::getAllConstructorUSRs ( const CXXRecordDecl *  Decl)
static
std::vector<SourceLocation> clang::rename::getLocationsOfUSR ( llvm::StringRef  USR,
llvm::StringRef  PrevName,
Decl *  Decl 
)
std::vector<SourceLocation> clang::rename::getLocationsOfUSR ( StringRef  USR,
StringRef  PrevName,
Decl *  Decl 
)
const NamedDecl * clang::rename::getNamedDeclAt ( const ASTContext &  Context,
const SourceLocation  Point 
)

Definition at line 144 of file USRFinder.cpp.

References Result, and SourceMgr.

Referenced by clang::rename::NamedDeclFindingConsumer::HandleTranslationUnit().

const NamedDecl * clang::rename::getNamedDeclFor ( const ASTContext &  Context,
const std::string &  Name 
)

Definition at line 168 of file USRFinder.cpp.

References Result, and SourceMgr.

Referenced by clang::rename::NamedDeclFindingConsumer::HandleTranslationUnit().

std::string clang::rename::getUSRForDecl ( const Decl *  Decl)