Skip to content

Commit 0de33f5

Browse files
authored
Merge pull request #2235 from joto/nodiscard-msg
We are not planning to litter the code with [[nodiscard]]
2 parents 7968877 + effc556 commit 0de33f5

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)