[clang-tools-extra] [clang-tidy] make `misc-const-correctness` work with `auto` variables and lambdas (PR #157319)
Victor Chernyakin via cfe-commits
cfe-commits at lists.llvm.org
Sat Sep 6 18:50:51 PDT 2025
================
@@ -185,6 +185,10 @@ Changes in existing checks
adding an option to allow pointer arithmetic via prefix/postfix increment or
decrement operators.
+- Improved :doc:`misc-const-correctness
+ <clang-tidy/checks/misc/const-correctness>` check to diagnose
+ variables declared with ``auto``.
----------------
localspook wrote:
I'm not mentioning lambdas because lambdas must be declared with `auto` anyway.
https://github.com/llvm/llvm-project/pull/157319
More information about the cfe-commits
mailing list