Move clang/Tooling/Core/Lookup.h to clang/Tooling/Refactoring/Lookup.h
This allows removing the clangAST dependency from libclangToolingCore and therefore allows clang-format to be built without depending on clangAST. Before 1166 files had to be compiled for clang-format, now only 796. Reviewed By: bkramer Differential Revision: https://reviews.llvm.org/D89708
This commit is contained in:
parent
f2cca0b291
commit
a2214757e2
|
@ -10,8 +10,8 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef LLVM_CLANG_TOOLING_CORE_LOOKUP_H
|
||||
#define LLVM_CLANG_TOOLING_CORE_LOOKUP_H
|
||||
#ifndef LLVM_CLANG_TOOLING_REFACTOR_LOOKUP_H
|
||||
#define LLVM_CLANG_TOOLING_REFACTOR_LOOKUP_H
|
||||
|
||||
#include "clang/Basic/LLVM.h"
|
||||
#include "clang/Basic/SourceLocation.h"
|
||||
|
@ -47,4 +47,4 @@ std::string replaceNestedName(const NestedNameSpecifier *Use,
|
|||
} // end namespace tooling
|
||||
} // end namespace clang
|
||||
|
||||
#endif // LLVM_CLANG_TOOLING_CORE_LOOKUP_H
|
||||
#endif // LLVM_CLANG_TOOLING_REFACTOR_LOOKUP_H
|
|
@ -16,7 +16,6 @@
|
|||
#define LLVM_CLANG_LIB_FORMAT_FORMATINTERNAL_H
|
||||
|
||||
#include "BreakableToken.h"
|
||||
#include "clang/Tooling/Core/Lookup.h"
|
||||
#include <utility>
|
||||
|
||||
namespace clang {
|
||||
|
|
|
@ -2,11 +2,9 @@ set(LLVM_LINK_COMPONENTS support)
|
|||
|
||||
add_clang_library(clangToolingCore
|
||||
Diagnostic.cpp
|
||||
Lookup.cpp
|
||||
Replacement.cpp
|
||||
|
||||
LINK_LIBS
|
||||
clangAST
|
||||
clangBasic
|
||||
clangLex
|
||||
clangRewrite
|
||||
|
|
|
@ -6,6 +6,7 @@ add_clang_library(clangToolingRefactoring
|
|||
AtomicChange.cpp
|
||||
Extract/Extract.cpp
|
||||
Extract/SourceExtraction.cpp
|
||||
Lookup.cpp
|
||||
RefactoringActions.cpp
|
||||
Rename/RenamingAction.cpp
|
||||
Rename/SymbolOccurrences.cpp
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "clang/Tooling/Core/Lookup.h"
|
||||
#include "clang/Tooling/Refactoring/Lookup.h"
|
||||
#include "clang/AST/ASTContext.h"
|
||||
#include "clang/AST/Decl.h"
|
||||
#include "clang/AST/DeclCXX.h"
|
|
@ -21,7 +21,7 @@
|
|||
#include "clang/Basic/SourceLocation.h"
|
||||
#include "clang/Basic/SourceManager.h"
|
||||
#include "clang/Lex/Lexer.h"
|
||||
#include "clang/Tooling/Core/Lookup.h"
|
||||
#include "clang/Tooling/Refactoring/Lookup.h"
|
||||
#include "clang/Tooling/Refactoring/RecursiveSymbolVisitor.h"
|
||||
#include "clang/Tooling/Refactoring/Rename/SymbolName.h"
|
||||
#include "clang/Tooling/Refactoring/Rename/USRFinder.h"
|
||||
|
|
|
@ -6,8 +6,8 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "clang/Tooling/Refactoring/Lookup.h"
|
||||
#include "TestVisitor.h"
|
||||
#include "clang/Tooling/Core/Lookup.h"
|
||||
using namespace clang;
|
||||
|
||||
namespace {
|
||||
|
|
Loading…
Reference in a new issue