#include "clang/Tooling/Refactoring/Rename/USRFindingAction.h"
#include "clang/AST/AST.h"
#include "clang/AST/ASTConsumer.h"
#include "clang/AST/ASTContext.h"
#include "clang/AST/Decl.h"
#include "clang/AST/RecursiveASTVisitor.h"
#include "clang/Basic/FileManager.h"
#include "clang/Frontend/CompilerInstance.h"
#include "clang/Frontend/FrontendAction.h"
#include "clang/Lex/Lexer.h"
#include "clang/Lex/Preprocessor.h"
#include "clang/Tooling/CommonOptionsParser.h"
#include "clang/Tooling/Refactoring.h"
#include "clang/Tooling/Refactoring/Rename/USRFinder.h"
#include "clang/Tooling/Tooling.h"
#include <algorithm>
#include <set>
#include <string>
#include <vector>
usingnamespacellvm;
namespace clang {
namespace tooling {
const NamedDecl *getCanonicalSymbolDeclaration(const NamedDecl *FoundDecl) { … }
namespace {
class AdditionalUSRFinder : public RecursiveASTVisitor<AdditionalUSRFinder> { … };
}
std::vector<std::string> getUSRsForDeclaration(const NamedDecl *ND,
ASTContext &Context) { … }
class NamedDeclFindingConsumer : public ASTConsumer { … };
std::unique_ptr<ASTConsumer> USRFindingAction::newASTConsumer() { … }
}
}