clang-tools
3.9.0
|
Mehtods for finding all instances of a USR. More...
#include "USRLocFinder.h"
#include "USRFinder.h"
#include "clang/AST/ASTContext.h"
#include "clang/AST/RecursiveASTVisitor.h"
#include "clang/Basic/SourceLocation.h"
#include "clang/Index/USRGeneration.h"
#include "clang/Lex/Lexer.h"
#include "llvm/ADT/SmallVector.h"
Go to the source code of this file.
Namespaces | |
clang | |
-rename | |
clang::rename | |
Functions | |
std::vector< SourceLocation > | clang::rename::getLocationsOfUSR (StringRef USR, StringRef PrevName, Decl *Decl) |
Mehtods for finding all instances of a USR.
Our strategy is very simple; we just compare the USR at every relevant AST node with the one provided.
Definition in file USRLocFinder.cpp.
std::vector<clang::SourceLocation> LocationsFound |
Definition at line 207 of file USRLocFinder.cpp.
const std::string PrevName |
Definition at line 206 of file USRLocFinder.cpp.
Referenced by clang::rename::RenamingASTConsumer::HandleTranslationUnit(), main(), and clang::rename::RenamingAction::newASTConsumer().
const std::string USR |
Definition at line 204 of file USRLocFinder.cpp.
Referenced by clang::rename::RenamingASTConsumer::HandleTranslationUnit().