[PATCH] D136953: [C++20] Diagnose invalid and reserved module names
Chuanqi Xu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 31 06:56:23 PDT 2022
ChuanqiXu added inline comments.
================
Comment at: clang/test/Modules/reserved-names-1.cpp:25
+ expected-error {{module declaration must occur at the start of the translation unit}}
+export module std.foo;// expected-error {{'std' is a reserved name for a module}} \
+ expected-error {{module declaration must occur at the start of the translation unit}}
----------------
It looks like the diagnostic message should be '`std.foo` is a ...'
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D136953/new/
https://reviews.llvm.org/D136953
More information about the cfe-commits
mailing list