aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.clang-tidy15
-rw-r--r--test/direct_bt/CMakeLists.txt3
-rw-r--r--test/ieee11073/CMakeLists.txt3
-rw-r--r--trial/direct_bt/CMakeLists.txt3
4 files changed, 17 insertions, 7 deletions
diff --git a/.clang-tidy b/.clang-tidy
index f10d3e57..0993702c 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -1,16 +1,17 @@
Checks: 'clang-diagnostic-*, clang-analyzer-*,
modernize-*, bugprone-*, performance-*,
- misc-include-cleaner,
+ -bugprone-reserved-identifier, -bugprone-easily-swappable-parameters, -bugprone-assignment-in-if-condition,
+ -bugprone-misplaced-widening-cast, -bugprone-branch-clone,
+ -modernize-macro-to-enum, -modernize-concat-nested-namespaces,
+ -bugprone-macro-parentheses, -bugprone-exception-escape,
-clang-diagnostic-unknown-warning-option,
-clang-analyzer-security.insecureAPI.bzero,
+ -clang-analyzer-optin.core.EnumCastOutOfRange,
-modernize-use-auto, -modernize-use-nodiscard, -modernize-use-using, -modernize-use-trailing-return-type,
-modernize-avoid-c-arrays, -modernize-use-default-member-init, -modernize-return-braced-init-list,
-modernize-avoid-bind, -modernize-use-transparent-functors,
- -modernize-macro-to-enum, -modernize-concat-nested-namespaces,
- -bugprone-macro-parentheses,
- -bugprone-exception-escape,
- -bugprone-reserved-identifier, -bugprone-easily-swappable-parameters, -bugprone-assignment-in-if-condition,
- -bugprone-misplaced-widening-cast, -bugprone-branch-clone'
+ -modernize-use-constraints,
+ -performance-avoid-endl, -performance-enum-size'
CheckOptions:
- key: modernize-use-default-member-init.UseAssignment
@@ -18,7 +19,7 @@ CheckOptions:
WarningsAsErrors: '*'
HeaderFilterRegex: '(api/.*|trial/direct_bt/.*|jaulib/include/jau/[a-zA-Z0-0]*|jaulib/include/jau/jni/[a-zA-Z0-0]*)\.hpp'
-AnalyzeTemporaryDtors: false
+# AnalyzeTemporaryDtors: false
FormatStyle: none
InheritParentConfig: false
User: sven
diff --git a/test/direct_bt/CMakeLists.txt b/test/direct_bt/CMakeLists.txt
index b827b6f1..669ec9b9 100644
--- a/test/direct_bt/CMakeLists.txt
+++ b/test/direct_bt/CMakeLists.txt
@@ -14,5 +14,8 @@ foreach( name ${TARGETS_IDIOMATIC_EXAMPLES} )
target_link_libraries(${name} direct_bt catch2)
add_dependencies(${name} direct_bt catch2)
add_test (NAME ${name} COMMAND ${name})
+ if(DEFINED CMAKE_CXX_CLANG_TIDY)
+ set_target_properties(${name} PROPERTIES CXX_CLANG_TIDY "${CMAKE_CXX_CLANG_TIDY};--checks;-bugprone-chained-comparison")
+ endif()
endforeach()
diff --git a/test/ieee11073/CMakeLists.txt b/test/ieee11073/CMakeLists.txt
index 4615b4d9..5e108c9e 100644
--- a/test/ieee11073/CMakeLists.txt
+++ b/test/ieee11073/CMakeLists.txt
@@ -16,5 +16,8 @@ foreach( name ${TARGETS_IDIOMATIC_EXAMPLES} )
target_link_libraries(${name} direct_bt catch2)
add_dependencies(${name} direct_bt catch2)
add_test (NAME ${name} COMMAND ${name})
+ if(DEFINED CMAKE_CXX_CLANG_TIDY)
+ set_target_properties(${name} PROPERTIES CXX_CLANG_TIDY "${CMAKE_CXX_CLANG_TIDY};--checks;-bugprone-chained-comparison")
+ endif()
endforeach()
diff --git a/trial/direct_bt/CMakeLists.txt b/trial/direct_bt/CMakeLists.txt
index e982207f..ea5956e9 100644
--- a/trial/direct_bt/CMakeLists.txt
+++ b/trial/direct_bt/CMakeLists.txt
@@ -14,6 +14,9 @@ foreach( name ${TARGETS_IDIOMATIC_TRIALS} )
add_test (NAME ${name} COMMAND sudo -E /sbin/capsh --caps=cap_net_raw,cap_net_admin+eip\ cap_setpcap,cap_setuid,cap_setgid+ep
--keep=1 --user=$ENV{USER} --addamb=cap_net_raw,cap_net_admin+eip
-- -c "ulimit -c unlimited; ./${name}")
+ if(DEFINED CMAKE_CXX_CLANG_TIDY)
+ set_target_properties(${name} PROPERTIES CXX_CLANG_TIDY "${CMAKE_CXX_CLANG_TIDY};--checks;-bugprone-chained-comparison")
+ endif()
endforeach()
file(GLOB_RECURSE SOURCES_IDIOMATIC_PROVOCATIONS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "provoke_*.cpp")