diff --git a/clang-tools-extra/clangd/CMakeLists.txt b/clang-tools-extra/clangd/CMakeLists.txt --- a/clang-tools-extra/clangd/CMakeLists.txt +++ b/clang-tools-extra/clangd/CMakeLists.txt @@ -160,6 +160,7 @@ clangTooling clangToolingCore clangToolingInclusions + clangToolingInclusionsStdlib clangToolingSyntax ) diff --git a/clang/lib/Tooling/Inclusions/CMakeLists.txt b/clang/lib/Tooling/Inclusions/CMakeLists.txt --- a/clang/lib/Tooling/Inclusions/CMakeLists.txt +++ b/clang/lib/Tooling/Inclusions/CMakeLists.txt @@ -3,12 +3,12 @@ add_clang_library(clangToolingInclusions HeaderIncludes.cpp IncludeStyle.cpp - StandardLibrary.cpp LINK_LIBS - clangAST clangBasic clangLex clangRewrite clangToolingCore ) + + add_subdirectory(Stdlib) diff --git a/clang/lib/Tooling/Inclusions/Stdlib/CMakeLists.txt b/clang/lib/Tooling/Inclusions/Stdlib/CMakeLists.txt new file mode 100644 --- /dev/null +++ b/clang/lib/Tooling/Inclusions/Stdlib/CMakeLists.txt @@ -0,0 +1,6 @@ +add_clang_library(clangToolingInclusionsStdlib + StandardLibrary.cpp + + LINK_LIBS + clangAST + ) diff --git a/clang/lib/Tooling/Inclusions/StandardLibrary.cpp b/clang/lib/Tooling/Inclusions/Stdlib/StandardLibrary.cpp rename from clang/lib/Tooling/Inclusions/StandardLibrary.cpp rename to clang/lib/Tooling/Inclusions/Stdlib/StandardLibrary.cpp diff --git a/clang/unittests/Tooling/CMakeLists.txt b/clang/unittests/Tooling/CMakeLists.txt --- a/clang/unittests/Tooling/CMakeLists.txt +++ b/clang/unittests/Tooling/CMakeLists.txt @@ -81,6 +81,7 @@ clangTooling clangToolingCore clangToolingInclusions + clangToolingInclusionsStdlib clangToolingRefactoring clangTransformer )