[clang-tools-extra] [clang-tidy][NFC] Apply const-correctness for auto 1/N (PR #213839)
Baranov Victor via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 12 00:39:46 PDT 2026
================
@@ -187,7 +188,7 @@ class ErrorReporter {
}
reportFix(Diag, Error.Message.Fix);
}
- for (auto Fix : FixLocations) {
+ for (const auto Fix : FixLocations) {
----------------
vbvictor wrote:
Hm, it seem that upstream llvm isn't typically built with this diagnostic enabled. Feel free to post PR with const auto&, or I will do it some time today.
https://github.com/llvm/llvm-project/pull/213839
More information about the cfe-commits
mailing list