================
@@ -1778,10 +1778,20 @@ def ext_bit_int : Extension<
 } // end of Parse Issue category.
 
 let CategoryName = "Modules Issue" in {
-def err_unexpected_module_decl : Error<
-  "module declaration can only appear at the top level">;
+def err_invalid_module_or_import_directive : Error<
+  "the %select{module|import}0 directive is ill-formed, "
+  "%select{module contextual keyword must be immediately "
+  "followed on the same line by an identifier, "
+  "or a ';' after being at the start of a line, or preceded by "
+  "an export keyword at the start of a line|"
+  "import contextual keyword must be immediately followed "
----------------
cor3ntin wrote:

Lets remove contextual! (the diagnostic itself is contextual, no one is going 
to be confused)

https://github.com/llvm/llvm-project/pull/107168
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to