[clang-tools-extra] [clang-tidy][NFC] Fix misc-const-correctness warnings (1/N) (PR #167030)

via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 7 14:42:28 PST 2025


================
@@ -803,7 +805,7 @@ void ClangTidyDiagnosticConsumer::removeDuplicatedDiagnosticsOfAliasCheckers() {
   auto IT = Errors.begin();
   while (IT != Errors.end()) {
     ClangTidyError &Error = *IT;
-    std::pair<UniqueErrorSet::iterator, bool> Inserted =
+    const std::pair<UniqueErrorSet::iterator, bool> Inserted =
----------------
EugeneZelenko wrote:

Structural binding? But this could be left for dedicated pull request.

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


More information about the cfe-commits mailing list