[PATCH] D153131: [clang analysis][thread-safety] Handle return-by-reference...

Nico Weber via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 13 05:03:15 PDT 2023


thakis added a comment.

FWIW, the standard procedure for adding new functionality to existing warnings is (assuming that it makes the warning fire a lot, else no extra group is needed):

- Add it in a subgroup with its own flag
- Enable it by default

The reasoning is that people who aren't ready for the warning yet can then turn it off with the new flag, and everyone becomes aware of the new warning. If it's off-by-default, nobody will ever know about it.

(Of course, only warnings that are useful and high-signal should be added in the first place, so this is assuming that it's a warning with a very low false positive rate.)


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D153131/new/

https://reviews.llvm.org/D153131



More information about the cfe-commits mailing list