File tree Expand file tree Collapse file tree 10 files changed +4
-156
lines changed Expand file tree Collapse file tree 10 files changed +4
-156
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ string(REPLACE ${CMAKE_CFG_INTDIR} ${LLVM_BUILD_MODE} CLANG_TOOLS_DIR ${LLVM_RUN
17
17
18
18
llvm_canonicalize_cmake_booleans (
19
19
CLANG_TIDY_ENABLE_STATIC_ANALYZER
20
- LIBCLANG_INCLUDE_CLANG_TOOLS_EXTRA
21
20
)
22
21
23
22
configure_lit_site_cfg (
@@ -68,10 +67,6 @@ set(CLANG_TOOLS_TEST_DEPS
68
67
# Clang-tidy tests need clang for building modules.
69
68
clang
70
69
)
71
- if (LIBCLANG_INCLUDE_CLANG_TOOLS_EXTRA )
72
- # For the clang-tidy libclang integration test.
73
- set (CLANG_TOOLS_TEST_DEPS ${CLANG_TOOLS_TEST_DEPS} "c-index-test" )
74
- endif ()
75
70
76
71
# Add lit test dependencies.
77
72
set (LLVM_UTILS_DEPS
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ config.clang_libs_dir = "@SHLIBDIR@"
11
11
config.python_executable = "@Python3_EXECUTABLE@"
12
12
config.target_triple = "@TARGET_TRIPLE@"
13
13
config.clang_tidy_staticanalyzer = @CLANG_TIDY_ENABLE_STATIC_ANALYZER@
14
- config.libclang_include_clang_tools_extra = @LIBCLANG_INCLUDE_CLANG_TOOLS_EXTRA@
15
14
16
15
# Support substitution of the tools and libs dirs with user parameters. This is
17
16
# used when we can't determine the tool dir at configuration time.
Original file line number Diff line number Diff line change @@ -151,6 +151,10 @@ Build System Changes
151
151
These are major changes to the build system that have happened since the 12.0.0
152
152
release of Clang. Users of the build system should adjust accordingly.
153
153
154
+ - The option ``LIBCLANG_INCLUDE_CLANG_TOOLS_EXTRA `` no longer exists. There were
155
+ two releases with that flag forced off, and no uses were added that forced it
156
+ on. The recommended replacement is clangd.
157
+
154
158
- ...
155
159
156
160
AST Matchers
Original file line number Diff line number Diff line change @@ -9161,16 +9161,3 @@ cxindex::Logger::~Logger() {
9161
9161
OS << " --------------------------------------------------\n " ;
9162
9162
}
9163
9163
}
9164
-
9165
- #ifdef CLANG_TOOL_EXTRA_BUILD
9166
- // This anchor is used to force the linker to link the clang-tidy plugin.
9167
- extern volatile int ClangTidyPluginAnchorSource;
9168
- static int LLVM_ATTRIBUTE_UNUSED ClangTidyPluginAnchorDestination =
9169
- ClangTidyPluginAnchorSource;
9170
-
9171
- // This anchor is used to force the linker to link the clang-include-fixer
9172
- // plugin.
9173
- extern volatile int ClangIncludeFixerPluginAnchorSource;
9174
- static int LLVM_ATTRIBUTE_UNUSED ClangIncludeFixerPluginAnchorDestination =
9175
- ClangIncludeFixerPluginAnchorSource;
9176
- #endif
Original file line number Diff line number Diff line change @@ -52,22 +52,6 @@ if (CLANG_ENABLE_ARCMT)
52
52
list (APPEND LIBS clangARCMigrate )
53
53
endif ()
54
54
55
- option (LIBCLANG_INCLUDE_CLANG_TOOLS_EXTRA
56
- "Include code from clang-tools-extra in libclang." OFF )
57
-
58
- if (LIBCLANG_INCLUDE_CLANG_TOOLS_EXTRA )
59
- if (TARGET clangTidyPlugin )
60
- add_definitions (-DCLANG_TOOL_EXTRA_BUILD )
61
- list (APPEND LIBS clangTidyPlugin )
62
- list (APPEND LIBS clangIncludeFixerPlugin )
63
- if (LLVM_ENABLE_MODULES )
64
- list (APPEND LLVM_COMPILE_FLAGS "-fmodules-ignore-macro=CLANG_TOOL_EXTRA_BUILD" )
65
- endif ()
66
- else ()
67
- message (FATAL_ERROR "LIBCLANG_INCLUDE_CLANG_TOOLS_EXTRA needs clang-tools-extra in LLVM_ENABLE_PROJECTS" )
68
- endif ()
69
- endif ()
70
-
71
55
if (HAVE_LIBDL )
72
56
list (APPEND LIBS ${CMAKE_DL_LIBS} )
73
57
elseif (CLANG_BUILT_STANDALONE )
Original file line number Diff line number Diff line change 1
1
import (" //clang-tools-extra/clang-tidy/enable.gni" )
2
2
import (" //clang/lib/StaticAnalyzer/Frontend/enable.gni" )
3
- import (" //clang/tools/libclang/include_clang_tools_extra.gni" )
4
3
import (" //llvm/triples.gni" )
5
4
import (" //llvm/utils/gn/build/write_cmake_config.gni" )
6
5
import (" clang_tools_extra_lit_site_cfg_files.gni" )
@@ -44,12 +43,6 @@ write_lit_config("lit_site_cfg") {
44
43
} else {
45
44
extra_values += [ " CLANG_TIDY_ENABLE_STATIC_ANALYZER=0" ]
46
45
}
47
-
48
- if (libclang_include_clang_tools_extra ) {
49
- extra_values += [ " LIBCLANG_INCLUDE_CLANG_TOOLS_EXTRA=1" ]
50
- } else {
51
- extra_values += [ " LIBCLANG_INCLUDE_CLANG_TOOLS_EXTRA=0" ]
52
- }
53
46
}
54
47
55
48
write_lit_config (" lit_unit_site_cfg" ) {
Original file line number Diff line number Diff line change 1
1
import (" //clang/lib/ARCMigrate/enable.gni" )
2
- import (" //clang/tools/libclang/include_clang_tools_extra.gni" )
3
2
import (" //llvm/version.gni" )
4
3
5
4
# This build file is just enough to get check-clang to pass, it's missing
@@ -40,16 +39,6 @@ target(libclang_target_type, "libclang") {
40
39
41
40
defines = []
42
41
43
- # FIXME: Once the GN build has a way to select which bits to build,
44
- # only include this dependency if clang-tools-extra is part of the build.
45
- if (libclang_include_clang_tools_extra ) {
46
- defines += [ " CLANG_TOOL_EXTRA_BUILD" ]
47
- deps += [
48
- " //clang-tools-extra/clang-include-fixer/plugin" ,
49
- " //clang-tools-extra/clang-tidy/plugin" ,
50
- ]
51
- }
52
-
53
42
if (host_os == " win" ) {
54
43
defines += [ " _CINDEX_LIB_" ]
55
44
}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments