[clang-tools-extra] [clang-tidy] make `misc-const-correctness` work with `auto` variables and lambdas (PR #157319)

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 12 01:24:26 PDT 2025


vbvictor wrote:

> That sounds good to me, we should document clearly that this is a temporary option (active warning by default) to ease migration, and will be removed in clang-tidy-24. The intention is for auto and non-auto variables to have the same treatment.

I'm not so sure if we need to remove this option later given by default it will be set to `true`.

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


More information about the cfe-commits mailing list