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

Piotr Zegar via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 10 12:58:36 PST 2025


================
@@ -0,0 +1,81 @@
+.. title:: clang-tidy - modernize-use-scoped-lock
+
+modernize-use-scoped-lock
+=========================
+
+Finds uses of ``std::lock_guard`` and suggests replacing them with C++17's more
+flexible and safer alternative ``std::scoped_lock``. The check will
----------------
PiotrZSL wrote:

no need for "flexible and safer" here (at least in first sentence).

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


More information about the cfe-commits mailing list