clang-tools
4.0.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/LLVM.h"
#include "clang/Basic/SourceLocation.h"
#include "clang/Basic/SourceManager.h"
#include "clang/Lex/Lexer.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Casting.h"
#include <cstddef>
#include <set>
#include <string>
#include <vector>
Go to the source code of this file.
Namespaces | |
clang | |
-rename | |
clang::rename | |
Functions | |
std::vector< SourceLocation > | clang::rename::getLocationsOfUSRs (const std::vector< std::string > &USRs, 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.
const ASTContext& Context |
Definition at line 148 of file USRLocFinder.cpp.
std::vector<clang::SourceLocation> LocationsFound |
Definition at line 147 of file USRLocFinder.cpp.
const std::string PrevName |
Definition at line 146 of file USRLocFinder.cpp.
Referenced by main().
const std::set<std::string> USRSet |
Definition at line 145 of file USRLocFinder.cpp.