[clang][Tooling] Move STL recognizer to its own library

As pointed out in https://reviews.llvm.org/D119130#3829816, this
introduces a clang AST dependency to the clangToolingInclusions, which is used
by clang-format.

Since rest of the inclusion tooling doesn't depend on clang ast, moving this
into a separate library.

Differential Revision: https://reviews.llvm.org/D135245
This commit is contained in:
Kadir Cetinkaya 2022-10-05 09:52:20 +02:00
parent 6053b37e45
commit d1f13c54f1
No known key found for this signature in database
GPG Key ID: E39E36B8D2057ED6
5 changed files with 10 additions and 2 deletions

View File

@ -160,6 +160,7 @@ clang_target_link_libraries(clangDaemon
clangTooling
clangToolingCore
clangToolingInclusions
clangToolingInclusionsStdlib
clangToolingSyntax
)

View File

@ -3,12 +3,12 @@ set(LLVM_LINK_COMPONENTS support)
add_clang_library(clangToolingInclusions
HeaderIncludes.cpp
IncludeStyle.cpp
StandardLibrary.cpp
LINK_LIBS
clangAST
clangBasic
clangLex
clangRewrite
clangToolingCore
)
add_subdirectory(Stdlib)

View File

@ -0,0 +1,6 @@
add_clang_library(clangToolingInclusionsStdlib
StandardLibrary.cpp
LINK_LIBS
clangAST
)

View File

@ -81,6 +81,7 @@ clang_target_link_libraries(ToolingTests
clangTooling
clangToolingCore
clangToolingInclusions
clangToolingInclusionsStdlib
clangToolingRefactoring
clangTransformer
)