Skip to content

Commit

Permalink
[clang][Tooling] Move STL recognizer to its own library
Browse files Browse the repository at this point in the history
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
  • Loading branch information
kadircet committed Oct 6, 2022
1 parent 6053b37 commit d1f13c5
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions clang-tools-extra/clangd/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ clang_target_link_libraries(clangDaemon
clangTooling
clangToolingCore
clangToolingInclusions
clangToolingInclusionsStdlib
clangToolingSyntax
)

Expand Down
4 changes: 2 additions & 2 deletions clang/lib/Tooling/Inclusions/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
6 changes: 6 additions & 0 deletions clang/lib/Tooling/Inclusions/Stdlib/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
add_clang_library(clangToolingInclusionsStdlib
StandardLibrary.cpp

LINK_LIBS
clangAST
)
1 change: 1 addition & 0 deletions clang/unittests/Tooling/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ clang_target_link_libraries(ToolingTests
clangTooling
clangToolingCore
clangToolingInclusions
clangToolingInclusionsStdlib
clangToolingRefactoring
clangTransformer
)
Expand Down

0 comments on commit d1f13c5

Please sign in to comment.