[PATCH] D149461: [NFC] ][CLANG] Fix static code analyzer concerns

Soumi Manna via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 28 10:33:16 PDT 2023


Manna added inline comments.


================
Comment at: clang/lib/Serialization/ASTReader.cpp:7696
   if (isa<TranslationUnitDecl>(DC)) {
-    for (auto Lexical : TULexicalDecls)
+    for (const auto &Lexical : TULexicalDecls)
       Visit(Lexical.first, Lexical.second);
----------------
This returns `std::vector<std::pair<ModuleFile*, LexicalContents>` in 'ASTReader.h` file


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D149461/new/

https://reviews.llvm.org/D149461



More information about the cfe-commits mailing list