From b4fea8c7dc4de31e64a672886458ae02cf7f60ff Mon Sep 17 00:00:00 2001 From: Fabian Reister <fabian.reister@kit.edu> Date: Thu, 5 Dec 2024 21:19:19 +0100 Subject: [PATCH 1/2] imrpoving clang tidy and clangd configs --- data/modules/h2t/code_style/armarx_clang_tidy | 1 + data/modules/h2t/code_style/clangd | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/data/modules/h2t/code_style/armarx_clang_tidy b/data/modules/h2t/code_style/armarx_clang_tidy index 30f03a4a7..9bd750a7f 100644 --- a/data/modules/h2t/code_style/armarx_clang_tidy +++ b/data/modules/h2t/code_style/armarx_clang_tidy @@ -14,6 +14,7 @@ Checks: ' readability-*, -readability-redundant-string-init, -readability-identifier-length, + -readability-container-contains, modernize-*, -modernize-use-trailing-return-type, -modernize-use-nodiscard, diff --git a/data/modules/h2t/code_style/clangd b/data/modules/h2t/code_style/clangd index 421a838b1..a8fa8456d 100644 --- a/data/modules/h2t/code_style/clangd +++ b/data/modules/h2t/code_style/clangd @@ -1,5 +1,5 @@ CompileFlags: # Tweak the parse settings - Add: [-xc++, -Wall, -Wno-unused-variable] # treat all files as C++, enable more warnings + Add: [-xc++, -Wall, -Wextra, -Wno-unused-variable] # treat all files as C++, enable more warnings Remove: -fconcepts # strip all other warning-related flags Diagnostics: ClangTidy: -- GitLab From 26429090c8d2258058d20fafaca2f76b685fa910 Mon Sep 17 00:00:00 2001 From: Fabian Reister <fabian.reister@kit.edu> Date: Thu, 19 Dec 2024 16:03:11 +0100 Subject: [PATCH 2/2] adding -readability-container-contains to armarx_integration and research projects --- data/modules/h2t/code_style/default_clang_tidy | 1 + data/modules/h2t/code_style/research_projects_clang_tidy | 1 + 2 files changed, 2 insertions(+) diff --git a/data/modules/h2t/code_style/default_clang_tidy b/data/modules/h2t/code_style/default_clang_tidy index e84762098..5338b921e 100644 --- a/data/modules/h2t/code_style/default_clang_tidy +++ b/data/modules/h2t/code_style/default_clang_tidy @@ -14,6 +14,7 @@ Checks: ' readability-*, -readability-redundant-string-init, -readability-identifier-length, + -readability-container-contains, modernize-*, -modernize-use-trailing-return-type, -modernize-use-nodiscard, diff --git a/data/modules/h2t/code_style/research_projects_clang_tidy b/data/modules/h2t/code_style/research_projects_clang_tidy index 30f03a4a7..9bd750a7f 100644 --- a/data/modules/h2t/code_style/research_projects_clang_tidy +++ b/data/modules/h2t/code_style/research_projects_clang_tidy @@ -14,6 +14,7 @@ Checks: ' readability-*, -readability-redundant-string-init, -readability-identifier-length, + -readability-container-contains, modernize-*, -modernize-use-trailing-return-type, -modernize-use-nodiscard, -- GitLab