[PATCH] D89708: Move clang/Tooling/Core/Lookup.h to clang/Tooling/Refactoring/Lookup.h
thakis added a comment. Nice! Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D89708/new/ https://reviews.llvm.org/D89708 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
[PATCH] D89708: Move clang/Tooling/Core/Lookup.h to clang/Tooling/Refactoring/Lookup.h
This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rGa2214757e2ca: Move clang/Tooling/Core/Lookup.h to clang/Tooling/Refactoring/Lookup.h (authored by arichardson). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D89708/new/ https://reviews.llvm.org/D89708 Files: clang/include/clang/Tooling/Core/Lookup.h clang/include/clang/Tooling/Refactoring/Lookup.h clang/lib/Format/FormatInternal.h clang/lib/Tooling/Core/CMakeLists.txt clang/lib/Tooling/Core/Lookup.cpp clang/lib/Tooling/Refactoring/CMakeLists.txt clang/lib/Tooling/Refactoring/Lookup.cpp clang/lib/Tooling/Refactoring/Rename/USRLocFinder.cpp clang/unittests/Tooling/LookupTest.cpp Index: clang/unittests/Tooling/LookupTest.cpp === --- clang/unittests/Tooling/LookupTest.cpp +++ clang/unittests/Tooling/LookupTest.cpp @@ -6,8 +6,8 @@ // //===--===// +#include "clang/Tooling/Refactoring/Lookup.h" #include "TestVisitor.h" -#include "clang/Tooling/Core/Lookup.h" using namespace clang; namespace { Index: clang/lib/Tooling/Refactoring/Rename/USRLocFinder.cpp === --- clang/lib/Tooling/Refactoring/Rename/USRLocFinder.cpp +++ clang/lib/Tooling/Refactoring/Rename/USRLocFinder.cpp @@ -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" Index: clang/lib/Tooling/Refactoring/Lookup.cpp === --- clang/lib/Tooling/Refactoring/Lookup.cpp +++ clang/lib/Tooling/Refactoring/Lookup.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" Index: clang/lib/Tooling/Refactoring/CMakeLists.txt === --- clang/lib/Tooling/Refactoring/CMakeLists.txt +++ clang/lib/Tooling/Refactoring/CMakeLists.txt @@ -6,6 +6,7 @@ AtomicChange.cpp Extract/Extract.cpp Extract/SourceExtraction.cpp + Lookup.cpp RefactoringActions.cpp Rename/RenamingAction.cpp Rename/SymbolOccurrences.cpp Index: clang/lib/Tooling/Core/CMakeLists.txt === --- clang/lib/Tooling/Core/CMakeLists.txt +++ clang/lib/Tooling/Core/CMakeLists.txt @@ -2,11 +2,9 @@ add_clang_library(clangToolingCore Diagnostic.cpp - Lookup.cpp Replacement.cpp LINK_LIBS - clangAST clangBasic clangLex clangRewrite Index: clang/lib/Format/FormatInternal.h === --- clang/lib/Format/FormatInternal.h +++ clang/lib/Format/FormatInternal.h @@ -16,7 +16,6 @@ #define LLVM_CLANG_LIB_FORMAT_FORMATINTERNAL_H #include "BreakableToken.h" -#include "clang/Tooling/Core/Lookup.h" #include namespace clang { Index: clang/include/clang/Tooling/Refactoring/Lookup.h === --- clang/include/clang/Tooling/Refactoring/Lookup.h +++ clang/include/clang/Tooling/Refactoring/Lookup.h @@ -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 @@ } // end namespace tooling } // end namespace clang -#endif // LLVM_CLANG_TOOLING_CORE_LOOKUP_H +#endif // LLVM_CLANG_TOOLING_REFACTOR_LOOKUP_H ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
[PATCH] D89708: Move clang/Tooling/Core/Lookup.h to clang/Tooling/Refactoring/Lookup.h
bkramer accepted this revision. bkramer added a comment. This revision is now accepted and ready to land. thanks Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D89708/new/ https://reviews.llvm.org/D89708 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
[PATCH] D89708: Move clang/Tooling/Core/Lookup.h to clang/Tooling/Refactoring/Lookup.h
arichardson created this revision. arichardson added a reviewer: bkramer. Herald added subscribers: cfe-commits, mgorny. Herald added a project: clang. arichardson requested review of this revision. 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. Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D89708 Files: clang/include/clang/Tooling/Core/Lookup.h clang/include/clang/Tooling/Refactoring/Lookup.h clang/lib/Format/FormatInternal.h clang/lib/Tooling/Core/CMakeLists.txt clang/lib/Tooling/Core/Lookup.cpp clang/lib/Tooling/Refactoring/CMakeLists.txt clang/lib/Tooling/Refactoring/Lookup.cpp clang/lib/Tooling/Refactoring/Rename/USRLocFinder.cpp clang/unittests/Tooling/LookupTest.cpp Index: clang/unittests/Tooling/LookupTest.cpp === --- clang/unittests/Tooling/LookupTest.cpp +++ clang/unittests/Tooling/LookupTest.cpp @@ -6,8 +6,8 @@ // //===--===// +#include "clang/Tooling/Refactoring/Lookup.h" #include "TestVisitor.h" -#include "clang/Tooling/Core/Lookup.h" using namespace clang; namespace { Index: clang/lib/Tooling/Refactoring/Rename/USRLocFinder.cpp === --- clang/lib/Tooling/Refactoring/Rename/USRLocFinder.cpp +++ clang/lib/Tooling/Refactoring/Rename/USRLocFinder.cpp @@ -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" Index: clang/lib/Tooling/Refactoring/Lookup.cpp === --- clang/lib/Tooling/Refactoring/Lookup.cpp +++ clang/lib/Tooling/Refactoring/Lookup.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" Index: clang/lib/Tooling/Refactoring/CMakeLists.txt === --- clang/lib/Tooling/Refactoring/CMakeLists.txt +++ clang/lib/Tooling/Refactoring/CMakeLists.txt @@ -6,6 +6,7 @@ AtomicChange.cpp Extract/Extract.cpp Extract/SourceExtraction.cpp + Lookup.cpp RefactoringActions.cpp Rename/RenamingAction.cpp Rename/SymbolOccurrences.cpp Index: clang/lib/Tooling/Core/CMakeLists.txt === --- clang/lib/Tooling/Core/CMakeLists.txt +++ clang/lib/Tooling/Core/CMakeLists.txt @@ -2,11 +2,9 @@ add_clang_library(clangToolingCore Diagnostic.cpp - Lookup.cpp Replacement.cpp LINK_LIBS - clangAST clangBasic clangLex clangRewrite Index: clang/lib/Format/FormatInternal.h === --- clang/lib/Format/FormatInternal.h +++ clang/lib/Format/FormatInternal.h @@ -16,7 +16,6 @@ #define LLVM_CLANG_LIB_FORMAT_FORMATINTERNAL_H #include "BreakableToken.h" -#include "clang/Tooling/Core/Lookup.h" #include namespace clang { Index: clang/include/clang/Tooling/Refactoring/Lookup.h === --- clang/include/clang/Tooling/Refactoring/Lookup.h +++ clang/include/clang/Tooling/Refactoring/Lookup.h @@ -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 @@ } // end namespace tooling } // end namespace clang -#endif // LLVM_CLANG_TOOLING_CORE_LOOKUP_H +#endif // LLVM_CLANG_TOOLING_REFACTOR_LOOKUP_H ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits