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

Carlos Galvez via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 12 03:12:10 PDT 2025


carlosgalvezp wrote:

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

Keeping it available means it's possible to tweak it such that auto and non-auto variables are handled differently, but that's probably unwanted. We should make the API hard to misuse :) 


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


More information about the cfe-commits mailing list