From 85e680fcf6941179bf6a2143e34e34b9a770c434 Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Wed, 2 Aug 2023 13:52:48 +0200 Subject: [PATCH 1/2] add 3 misc-* checks to clang-tidy CI test and reformat file --- .clang-tidy | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.clang-tidy b/.clang-tidy index 7998697f29..3e5963ed9c 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -2,5 +2,25 @@ # FIXME: all performance-* reports # FIXME: all cert-* reports # FIXME: all bugprone-* reports -Checks: -*,bugprone-*,-bugprone-unhandled-self-assignment,-bugprone-parent-virtual-call,-bugprone-narrowing-conversions,-bugprone-exception-escape,-bugprone-string-literal-with-embedded-nul,cppcoreguidelines-slicing,mpi-*,readability-non-const-parameter,performance-for-range-copy,modernize-*,-modernize-use-trailing-return-type,-modernize-use-bool-literals,-modernize-avoid-c-arrays,-modernize-use-auto,-modernize-return-braced-init-list +Checks: -*, + bugprone-*, + -bugprone-unhandled-self-assignment, + -bugprone-parent-virtual-call, + -bugprone-narrowing-conversions, + -bugprone-exception-escape, + -bugprone-string-literal-with-embedded-nul, + cppcoreguidelines-slicing, + misc-misleading-bidirectional, + misc-misleading-identifier, + misc-misplaced-const, + mpi-*, + readability-non-const-parameter, + performance-for-range-copy,modernize-*, + -modernize-use-trailing-return-type, + -modernize-use-bool-literals, + -modernize-avoid-c-arrays, + -modernize-use-auto, + -modernize-return-braced-init-list + + HeaderFilterRegex: '((^(?!\/share\/openPMD\/).*)*include\/openPMD\/.+\.hpp|src\/^(?!binding).+\.cpp$)' From fba0315d0b1993584b469e5ed5b293b36024200c Mon Sep 17 00:00:00 2001 From: lucafedeli88 Date: Wed, 4 Oct 2023 02:28:36 +0200 Subject: [PATCH 2/2] add missing newline --- .clang-tidy | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.clang-tidy b/.clang-tidy index 3e5963ed9c..fd20586077 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -15,7 +15,8 @@ Checks: -*, misc-misplaced-const, mpi-*, readability-non-const-parameter, - performance-for-range-copy,modernize-*, + performance-for-range-copy, + modernize-*, -modernize-use-trailing-return-type, -modernize-use-bool-literals, -modernize-avoid-c-arrays,