[clang] [clang][ThreadSafety] Warn when constructor is trylock (PR #95290)
Dan McArdle via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 12 13:15:09 PDT 2024
dmcardle wrote:
@AaronBallman, please take a look!
What do you think of this approach? I suppose it might be even better to enforce that the function's return type is `bool`, which would align with the [ThreadSafetyAnalysis documentation](https://clang.llvm.org/docs/ThreadSafetyAnalysis.html#try-acquire-bool-try-acquire-shared-bool).
https://github.com/llvm/llvm-project/pull/95290
More information about the cfe-commits
mailing list