[clang-tools-extra] [clang-tidy] Add new check 'misc-scope-reduction' (PR #175429)

via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 12 17:48:04 PST 2026


================
@@ -0,0 +1,51 @@
+.. title:: clang-tidy - misc-scope-reduction
+
+misc-scope-reduction
+====================
+
+Detects local variables in functions whose scopes can be minimized. This check
+covers guidelines described by SEI DCL19-C, MISRA C++:2008 Rule 3-4-1, and
----------------
vabridgers wrote:

I believe I've addressed this comment. Resolving. 

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


More information about the cfe-commits mailing list