[clang-tools-extra] [clang-tidy][NFC] Fix misc-const-correctness warnings (1/N) (PR #167030)
Victor Chernyakin via cfe-commits
cfe-commits at lists.llvm.org
Sat Nov 8 00:38:20 PST 2025
================
@@ -353,7 +356,8 @@ ClangTidyASTConsumerFactory::ClangTidyASTConsumerFactory(
if (Context.canExperimentalCustomChecks() && custom::RegisterCustomChecks)
custom::RegisterCustomChecks(Context.getOptions(), *CheckFactories);
#endif
- for (ClangTidyModuleRegistry::entry E : ClangTidyModuleRegistry::entries()) {
+ for (ClangTidyModuleRegistry::entry const E :
----------------
localspook wrote:
```suggestion
for (const ClangTidyModuleRegistry::entry E :
```
But shouldn't clang-format be able to police const placement? https://clang.llvm.org/docs/ClangFormatStyleOptions.html#qualifierorder
https://github.com/llvm/llvm-project/pull/167030
More information about the cfe-commits
mailing list