From 4b96ee95c02eddfa3d47c3cd8ff1f34b53302d5e Mon Sep 17 00:00:00 2001 From: Ryuta Kambe Date: Mon, 9 Dec 2024 21:08:40 +0900 Subject: [PATCH 1/2] ci: enable bugprone-* warnings in clang-tidy Signed-off-by: Ryuta Kambe --- .clang-tidy-ci | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.clang-tidy-ci b/.clang-tidy-ci index b5928f0473..b7e6210df4 100644 --- a/.clang-tidy-ci +++ b/.clang-tidy-ci @@ -1,6 +1,16 @@ Checks: " -*, - bugprone-dangling-handle" + bugprone-*, + -bugprone-branch-clone, + -bugprone-easily-swappable-parameters, + -bugprone-exception-escape, + -bugprone-implicit-widening-of-multiplication-result, + -bugprone-integer-division, + -bugprone-macro-parentheses, + -bugprone-narrowing-conversions, + -bugprone-parent-virtual-call, + -bugprone-reserved-identifier, + -bugprone-signed-char-misuse" WarningsAsErrors: "*" From 885a7c5a50728ac01e5df0b6db6b2fca88deea80 Mon Sep 17 00:00:00 2001 From: Ryuta Kambe Date: Wed, 11 Dec 2024 10:57:41 +0900 Subject: [PATCH 2/2] suppress bugprone-infinite-loop Signed-off-by: Ryuta Kambe --- .clang-tidy-ci | 1 + 1 file changed, 1 insertion(+) diff --git a/.clang-tidy-ci b/.clang-tidy-ci index b7e6210df4..5bba4fb90f 100644 --- a/.clang-tidy-ci +++ b/.clang-tidy-ci @@ -5,6 +5,7 @@ Checks: " -bugprone-easily-swappable-parameters, -bugprone-exception-escape, -bugprone-implicit-widening-of-multiplication-result, + -bugprone-infinite-loop, -bugprone-integer-division, -bugprone-macro-parentheses, -bugprone-narrowing-conversions,