[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
Wed Feb 12 14:36:04 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
----------------
vbvictor wrote:

Done

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


More information about the cfe-commits mailing list