[clang-tools-extra] [clang-tidy] add new check: modernize-use-scoped-lock (PR #126434)

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Sat Feb 22 00:26:54 PST 2025


vbvictor wrote:

I changed option name from `WarnOnlyOnMultipleLocks` to `WarnOnSingleLocks`. I think for users, it will be more clear what they turn on/off. When having `WarnOnlyOnMultipleLocks` together with `WarnOnUsingAndTypedef` option, it is confusing whether first option will disable warnings on `using` and `typedef` or not. Now it is clear that options will not affect each other.

https://github.com/llvm/llvm-project/pull/126434


More information about the cfe-commits mailing list