[PATCH] D147283: [Sema] Search template parameter scopes before searching namespace/file scopes when performing unqualified name lookup

Akira Hatanaka via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 19 13:06:22 PDT 2023


ahatanak added inline comments.


================
Comment at: clang/lib/Sema/SemaLookup.cpp:1403
+          // Find the innermost file scope, so we can add using directives
+          // from local scopes.
+          InnermostFileScope = S;
----------------
This isn't needed as `InnermostFileScope` is set at the beginning of the loop.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D147283



More information about the cfe-commits mailing list