[PATCH] D146986: Downgrade reserved module identifier error into a warning
Aaron Ballman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 27 09:58:07 PDT 2023
aaron.ballman created this revision.
aaron.ballman added reviewers: ChuanqiXu, dblaikie, Mordante, iains.
Herald added a project: All.
aaron.ballman requested review of this revision.
Herald added a project: clang.
Any project that wants to `import std;` potentially needs to be able to build a module that does `export std;`. We silenced the error diagnostic if the module identified itself as a system header, but this isn't quite good enough, what we really need is a way to identify a system module. It would be nice for that feature to be shared among the major implementations, so this downgrades the diagnostic from an error to a warning temporarily to give implementers time to determine what that mechanism will look like. We may convert this warning back into an error in a future release of Clang, but it's not guaranteed we will do so.
Fixes https://github.com/llvm/llvm-project/issues/61446
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D146986
Files:
clang/docs/ReleaseNotes.rst
clang/include/clang/Basic/DiagnosticGroups.td
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Sema/SemaModule.cpp
clang/test/Modules/reserved-names-1.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D146986.508706.patch
Type: text/x-patch
Size: 8000 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230327/d69bcac8/attachment.bin>
More information about the cfe-commits
mailing list