Skip to content

Commit 50840d0

Browse files
committed
Merge branch 'cppcheck_scripts' of github.com:cginternals/cmake-init into cppcheck_scripts
2 parents 4df6aee + bddea5a commit 50840d0

File tree

2 files changed

+0
-21
lines changed

2 files changed

+0
-21
lines changed

cmake/Custom.cmake

-15
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,6 @@ function(set_policy POL VAL)
99
endfunction(set_policy)
1010

1111

12-
# Converts a list of include paths to their -I ... command line list
13-
#
14-
# Example:
15-
# convert_includes(RESULT "include1;include2;include3")
16-
# Result:
17-
# -I include1 -I include2 -I include3
18-
function(convert_includes var)
19-
set(listVar "")
20-
foreach(include ${ARGN})
21-
list(APPEND listVar "-I${include}")
22-
endforeach()
23-
set(${var} "${listVar}" PARENT_SCOPE)
24-
endfunction()
25-
26-
2712
# Define function "source_group_by_path with three mandatory arguments (PARENT_PATH, REGEX, GROUP, ...)
2813
# to group source files in folders (e.g. for MSVC solutions).
2914
#

cmake/HealthCheck.cmake

-6
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ include(${CMAKE_CURRENT_LIST_DIR}/ClangTidy.cmake)
44

55
set(OPTION_CPPCHECK_ENABLED Off)
66
set(OPTION_CLANG_TIDY_ENABLED Off)
7-
set(OPTION_UNCRUSTIFY_ENABLED Off)
87

98
# Function to register a target for enabled health checks
109
function(perform_health_checks target)
@@ -24,11 +23,6 @@ function(perform_health_checks target)
2423
add_dependencies(check-${target} clang-tidy-${target})
2524
endif()
2625

27-
if (OPTION_UNCRUSTIFY_ENABLED)
28-
perform_uncrustify(uncrustify-${target} ${target} ${ARGN})
29-
add_dependencies(check-${target} uncrustify-${target})
30-
endif()
31-
3226
add_dependencies(check-all check-${target})
3327
endfunction()
3428

0 commit comments

Comments
 (0)