Skip to content

Commit effc556

Browse files
committed
We are not planning to litter the code with [[nodiscard]]
Reflect that in the comment in the clang-tidy config.
1 parent b75bb94 commit effc556

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.clang-tidy

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,9 @@ Checks: '*,-abseil-*,-altera-*,-android-cloexec-*,-bugprone-easily-swappable-par
6969
# Lots of these, need some time to fix. (TODO)
7070
#
7171
# modernize-use-nodiscard
72-
# We have a lot of these. Remove it for the time being because there are
73-
# too many to fix quickly. (TODO)
72+
# Doesn't really make the code clearer if it is all littered with
73+
# [[nodiscard]]. Looks like this warning is more suited for a library
74+
# than for normal code.
7475
#
7576
# modernize-use-trailing-return-type
7677
# We are not that modern...

0 commit comments

Comments
 (0)