From effc556aa3a021136b74e191b9fda106f1929f0b Mon Sep 17 00:00:00 2001 From: Jochen Topf Date: Sat, 17 Aug 2024 10:04:43 +0200 Subject: [PATCH] We are not planning to litter the code with [[nodiscard]] Reflect that in the comment in the clang-tidy config. --- .clang-tidy | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.clang-tidy b/.clang-tidy index 8364f24af..0dc6ec8c0 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -69,8 +69,9 @@ Checks: '*,-abseil-*,-altera-*,-android-cloexec-*,-bugprone-easily-swappable-par # Lots of these, need some time to fix. (TODO) # # modernize-use-nodiscard -# We have a lot of these. Remove it for the time being because there are -# too many to fix quickly. (TODO) +# Doesn't really make the code clearer if it is all littered with +# [[nodiscard]]. Looks like this warning is more suited for a library +# than for normal code. # # modernize-use-trailing-return-type # We are not that modern...