From 9ad44dae5d4de39873695dd945d76bf3bbbe3412 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Thu, 26 Mar 2015 22:10:01 +0000 Subject: [modules] Restrict the module use-declaration to only appear in top-level modules, and allow sub-modules of a module with a use-declaration to make use of the nominated modules. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@233323 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Basic/DiagnosticLexKinds.td | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/clang/Basic/DiagnosticLexKinds.td') diff --git a/include/clang/Basic/DiagnosticLexKinds.td b/include/clang/Basic/DiagnosticLexKinds.td index 3fa9bcf419..6eaf423a77 100644 --- a/include/clang/Basic/DiagnosticLexKinds.td +++ b/include/clang/Basic/DiagnosticLexKinds.td @@ -579,7 +579,9 @@ def err_mmap_module_id : Error< def err_mmap_expected_library_name : Error< "expected %select{library|framework}0 name as a string">; def err_mmap_config_macro_submodule : Error< - "configuration macros are only allowed on top-level modules">; + "configuration macros are only allowed in top-level modules">; +def err_mmap_use_decl_submodule : Error< + "use declarations are only allowed in top-level modules">; def err_mmap_expected_config_macro : Error< "expected configuration macro name after ','">; def err_mmap_expected_conflicts_comma : Error< -- cgit v1.2.3