File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 95
95
# will explicitly disable these targets from the command line at configure time
96
96
#
97
97
98
+ set (CMAKE_EXPORT_COMPILE_COMMANDS ON CACHE BOOL "Export compile commands" FORCE )
99
+
98
100
# Helper function to actually create the targets, not to be used outside this file
99
101
function (create_clang_tidy_targets )
100
102
set (argOption "" )
@@ -222,10 +224,6 @@ function(swift_setup_clang_tidy)
222
224
early_exit (STATUS "${PROJECT_NAME} clang-tidy support is DISABLED" )
223
225
endif ()
224
226
225
- # This is required so that clang-tidy can work out what compiler options to use
226
- # for each file
227
- set (CMAKE_EXPORT_COMPILE_COMMANDS ON CACHE BOOL "Export compile commands" FORCE )
228
-
229
227
# Use a custom script if explicitly passed
230
228
if (x_SCRIPT )
231
229
if (EXISTS ${x_SCRIPT} )
Original file line number Diff line number Diff line change 52
52
include (ListTargets )
53
53
54
54
set (_sonarcloud_newline "\\\n " )
55
+ set (CMAKE_EXPORT_COMPILE_COMMANDS ON CACHE BOOL "Export compile commands" FORCE )
55
56
56
57
function (_transform_sonarcloud_source_files output_variable target )
57
58
#
You can’t perform that action at this time.
0 commit comments