[all-commits] [llvm/llvm-project] c1f763: [C++20] [Modules] Continue parsing after we found ...

Chuanqi Xu via All-commits all-commits at lists.llvm.org
Thu Apr 13 00:15:08 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c1f76363e0db41ab6eb9ebedd687ee098491e9b7
      https://github.com/llvm/llvm-project/commit/c1f76363e0db41ab6eb9ebedd687ee098491e9b7
  Author: Chuanqi Xu <yedeng.yd at linux.alibaba.com>
  Date:   2023-04-13 (Thu, 13 Apr 2023)

  Changed paths:
    M clang/lib/Sema/SemaModule.cpp
    R clang/test/Modules/reserved-names-1.cpp
    A clang/test/Modules/reserved-names-1.cppm
    R clang/test/Modules/reserved-names-2.cpp
    A clang/test/Modules/reserved-names-2.cppm
    R clang/test/Modules/reserved-names-3.cpp
    A clang/test/Modules/reserved-names-3.cppm
    R clang/test/Modules/reserved-names-4.cpp
    A clang/test/Modules/reserved-names-4.cppm

  Log Message:
  -----------
  [C++20] [Modules] Continue parsing after we found reserved module names

Close https://github.com/llvm/llvm-project/issues/62112

In the previous change, we'll stop parsing directly after we found
reserved module names. But this may be too aggressive. This patch
changes this. Note that the parsing will still be stopped if the module
name is `module` or `import`.




More information about the All-commits mailing list