[all-commits] [llvm/llvm-project] 48bbc6: [NFC] [C++20] [Modules] Code cleanups when checkin...

Chuanqi Xu via All-commits all-commits at lists.llvm.org
Wed May 10 02:55:30 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 48bbc64a8ff5e3777a76a02cffd94b3786b93203
      https://github.com/llvm/llvm-project/commit/48bbc64a8ff5e3777a76a02cffd94b3786b93203
  Author: Chuanqi Xu <yedeng.yd at linux.alibaba.com>
  Date:   2023-05-10 (Wed, 10 May 2023)

  Changed paths:
    M clang/lib/Sema/SemaLookup.cpp

  Log Message:
  -----------
  [NFC] [C++20] [Modules] Code cleanups when checking modules in ADL

The original code uses getTopLevelModuleName to compare if the module
matches. This is an overkill. Since in one program there will only be at
most one module name. So it is good enough to compare the module
directly. So that we can save some string comparisons.




More information about the All-commits mailing list