aboutgitcodebugslistschat
path: root/Makefile
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2024-06-06 20:09:45 +1000
committerStefano Brivio <sbrivio@redhat.com>2024-06-07 20:44:44 +0200
commit0e36fe1a4350dcdde2cc09eb7ba9c99361996ab9 (patch)
treedd9364525d982dbd77b6e129fa6b19be0c87af1c /Makefile
parent7094b91d1085d2262b09abc2be389db0b25bfe8c (diff)
downloadpasst-0e36fe1a4350dcdde2cc09eb7ba9c99361996ab9.tar
passt-0e36fe1a4350dcdde2cc09eb7ba9c99361996ab9.tar.gz
passt-0e36fe1a4350dcdde2cc09eb7ba9c99361996ab9.tar.bz2
passt-0e36fe1a4350dcdde2cc09eb7ba9c99361996ab9.tar.lz
passt-0e36fe1a4350dcdde2cc09eb7ba9c99361996ab9.tar.xz
passt-0e36fe1a4350dcdde2cc09eb7ba9c99361996ab9.tar.zst
passt-0e36fe1a4350dcdde2cc09eb7ba9c99361996ab9.zip
clang-tidy: Enable the bugprone-macro-parentheses check
We globally disabled this, with a justification lumped together with several checks about braces. They don't really go together, the others are essentially a stylistic choice which doesn't match our style. Omitting brackets on macro parameters can lead to real and hard to track down bugs if an expression is ever passed to the macro instead of a plain identifier. We've only gotten away with the macros which trigger the warning, because of other conventions its been unlikely to invoke them with anything other than a simple identifier. Fix the macros, and enable the warning for the future. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 0 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 8ea1757..e2180b5 100644
--- a/Makefile
+++ b/Makefile
@@ -192,7 +192,6 @@ docs: README.md
# - llvmlibc-restrict-system-libc-headers
# TODO: this is Linux-only for the moment, nice to fix eventually
#
-# - bugprone-macro-parentheses
# - google-readability-braces-around-statements
# - hicpp-braces-around-statements
# - readability-braces-around-statements
@@ -269,7 +268,6 @@ clang-tidy: $(SRCS) $(HEADERS)
-clang-analyzer-valist.Uninitialized,\
-cppcoreguidelines-init-variables,\
-bugprone-assignment-in-if-condition,\
- -bugprone-macro-parentheses,\
-google-readability-braces-around-statements,\
-hicpp-braces-around-statements,\
-readability-braces-around-statements,\