[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
Mon Sep 8 01:54:28 PDT 2025


carlosgalvezp wrote:

> and therefore doesn't need an option

Yeah I don't have a strong opinion. I was considering it more from a bump perspective - when bumping clang-tidy this will lead to a lot of new hits, people may need to disable the entire check just to get it through. But maybe there are better ways to solve it and we shouldn't be concerned about it. I agree that from a functionality point of view it doesn't make sense to allow one but not the other.

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


More information about the cfe-commits mailing list