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

Arthur Eubanks via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 9 13:57:16 PDT 2023


aeubanks added a comment.

If people are passing `-Wthread-safety-reference`, there was clearly some value in the previous checks and it would be unfortunate to turn them off while fixing the codebase.
I'm not super familiar with flag families and if what I'm proposing is easily doable, but I think ideally we would keep this new functionality turned on by default under `-Wthread-safety-reference` and make just this new functionality toggleable under a subflag `-W[no-]thread-safety-reference-return`.


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