[all-commits] [llvm/llvm-project] b3fcfc: [C++20][Modules][7/8] Find the primary interface n...

iains via All-commits all-commits at lists.llvm.org
Mon Feb 28 00:51:01 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b3fcfcb9464b90dd56a591e6269d33b124b96fee
      https://github.com/llvm/llvm-project/commit/b3fcfcb9464b90dd56a591e6269d33b124b96fee
  Author: Iain Sandoe <iain at sandoe.co.uk>
  Date:   2022-02-28 (Mon, 28 Feb 2022)

  Changed paths:
    M clang/include/clang/Basic/Module.h
    M clang/lib/Sema/SemaModule.cpp

  Log Message:
  -----------
  [C++20][Modules][7/8] Find the primary interface name for a module.

When we are building modules, there are cases where the only way to determine
validity of access is by comparing primary interface names.  This is because we need
to be able to associate a primary interface name with an imported partition, but
before the primary interface module is complete - so that textual comparison is
necessary.

If this turns out to be needed many times, we could cache the result, but it seems
unlikely to be significant (at this time); cases with very many imported partitions
would seem unusual.

Differential Revision: https://reviews.llvm.org/D118598




More information about the All-commits mailing list