[all-commits] [llvm/llvm-project] 5c1f7b: [C++20] [Modules] Only check decls under namespace...

Chuanqi Xu via All-commits all-commits at lists.llvm.org
Tue Jan 25 18:56:17 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5c1f7b296ac0dddeca02891976e6ab5cfc006719
      https://github.com/llvm/llvm-project/commit/5c1f7b296ac0dddeca02891976e6ab5cfc006719
  Author: Chuanqi Xu <yedeng.yd at linux.alibaba.com>
  Date:   2022-01-26 (Wed, 26 Jan 2022)

  Changed paths:
    M clang/lib/Sema/SemaDecl.cpp
    M clang/test/CXX/module/module.interface/p6.cpp

  Log Message:
  -----------
  [C++20] [Modules] Only check decls under namespace scope in CheckRedeclarationExported

Since only the decls inhabit in a namespace scope could be exported, it
is not meaningful to check it in CheckRedeclarationExported, which
implements [module.interface]/p6.

Reviewed By: urnathan

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




More information about the All-commits mailing list