[all-commits] [llvm/llvm-project] e58737: [C++20] [Module] Support extern C/C++ semantics
Chuanqi Xu via All-commits
all-commits at lists.llvm.org
Tue Dec 7 21:29:51 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e587372f85105b85ae790fbe129b5d609d6dfb76
https://github.com/llvm/llvm-project/commit/e587372f85105b85ae790fbe129b5d609d6dfb76
Author: Chuanqi Xu <yedeng.yd at linux.alibaba.com>
Date: 2021-12-08 (Wed, 08 Dec 2021)
Changed paths:
M clang/include/clang/Basic/Module.h
M clang/include/clang/Lex/ModuleMap.h
M clang/include/clang/Sema/Sema.h
M clang/lib/Lex/ModuleMap.cpp
M clang/lib/Sema/SemaDeclCXX.cpp
M clang/lib/Sema/SemaModule.cpp
A clang/test/CXX/module/module.unit/p7/Inputs/CPP.cppm
A clang/test/CXX/module/module.unit/p7/Inputs/h1.h
A clang/test/CXX/module/module.unit/p7/Inputs/h2.h
A clang/test/CXX/module/module.unit/p7/Inputs/h4.h
A clang/test/CXX/module/module.unit/p7/Inputs/h5.h
A clang/test/CXX/module/module.unit/p7/t1.cpp
A clang/test/CXX/module/module.unit/p7/t2.cpp
A clang/test/CXX/module/module.unit/p7/t3.cpp
A clang/test/CXX/module/module.unit/p7/t4.cpp
A clang/test/CXX/module/module.unit/p7/t5.cpp
A clang/test/CXX/module/module.unit/p7/t6.cpp
A clang/test/CodeGenCXX/Inputs/module-extern-C.h
A clang/test/CodeGenCXX/module-extern-C.cpp
Log Message:
-----------
[C++20] [Module] Support extern C/C++ semantics
According to [module.unit]p7.2.3, a declaration within a linkage-specification
should be attached to the global module.
This let user to forward declare types across modules.
Reviewed by: rsmith, aaron.ballman
Differential Revision: https://reviews.llvm.org/D110215
More information about the All-commits
mailing list