vbvictor wrote: > As of c++20, you can reassign a lambda variable, if it meets certain > conditions.
Thank you for the insights on C++20, didn't know that! I'm happy if we make all options "on-by-default" so that users would know about new places to add `const`, but just make a fallback to disable lambdas if not willing to pursue "const lambdas". P.S. looking at some internal codebases, even with disabled `const-correctness` check we tend to make regular variables `const` and lambdas `non-const` so I would personally probably use "IgnoreLambdas" option if we ever enable `const-correctness`. https://github.com/llvm/llvm-project/pull/157319 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
