[PATCH] D117295: [clang][sema] Allow unnamed decls in C++20 module export{} blocks

Timm Bäder via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 14 02:26:54 PST 2022


tbaeder created this revision.
tbaeder added reviewers: rsmith, aaron.ballman.
tbaeder requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

As part of P1766R1 <http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1766r1.html>, allow unnamed decls in `export{}` blocks.

I've adjusted the module-ts tests as well, but I am (generally) not sure whether code for C++20 modules should affect the modules-ts cases. What's the policy here?


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D117295

Files:
  clang/include/clang/Basic/DiagnosticSemaKinds.td
  clang/lib/Sema/SemaModule.cpp
  clang/test/CXX/module/module.interface/p3.cpp
  clang/test/Modules/cxx20-export.cpp
  clang/test/SemaCXX/modules-ts.cppm

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D117295.399938.patch
Type: text/x-patch
Size: 4911 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220114/4cefe9d3/attachment-0001.bin>


More information about the cfe-commits mailing list