]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/blob - contrib/llvm/tools/clang/include/clang/Basic/DiagnosticLexKinds.td
MFC r234353:
[FreeBSD/stable/9.git] / contrib / llvm / tools / clang / include / clang / Basic / DiagnosticLexKinds.td
1 //==--- DiagnosticLexKinds.td - liblex diagnostics ------------------------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
10 //===----------------------------------------------------------------------===//
11 // Lexer Diagnostics
12 //===----------------------------------------------------------------------===//
13
14 let Component = "Lex", CategoryName = "Lexical or Preprocessor Issue" in {
15
16 def null_in_string : Warning<"null character(s) preserved in string literal">,
17   InGroup<NullCharacter>;
18 def null_in_char : Warning<"null character(s) preserved in character literal">,
19   InGroup<NullCharacter>;
20 def null_in_file : Warning<"null character ignored">, InGroup<NullCharacter>;
21 def warn_nested_block_comment : Warning<"'/*' within block comment">,
22   InGroup<Comment>;
23 def escaped_newline_block_comment_end : Warning<
24   "escaped newline between */ characters at block comment end">,
25   InGroup<Comment>;
26 def backslash_newline_space : Warning<
27   "backslash and newline separated by space">,
28   InGroup<DiagGroup<"backslash-newline-escape">>;
29
30 // Digraphs.
31 def warn_cxx98_compat_less_colon_colon : Warning<
32   "'<::' is treated as digraph '<:' (aka '[') followed by ':' in C++98">,
33   InGroup<CXX98Compat>, DefaultIgnore;
34
35 // Trigraphs.
36 def trigraph_ignored : Warning<"trigraph ignored">, InGroup<Trigraphs>;
37 def trigraph_ignored_block_comment : Warning<
38   "ignored trigraph would end block comment">, InGroup<Trigraphs>;
39 def trigraph_ends_block_comment : Warning<"trigraph ends block comment">,
40     InGroup<Trigraphs>;
41 def trigraph_converted : Warning<"trigraph converted to '%0' character">,
42     InGroup<Trigraphs>;
43
44 def ext_multi_line_bcpl_comment : Extension<"multi-line // comment">,
45     InGroup<Comment>;
46 def ext_bcpl_comment : Extension<
47   "// comments are not allowed in this language">,
48   InGroup<Comment>;
49 def ext_no_newline_eof : Extension<"no newline at end of file">, 
50   InGroup<DiagGroup<"newline-eof">>;
51
52 def warn_cxx98_compat_no_newline_eof : Warning<
53   "C++98 requires newline at end of file">,
54   InGroup<CXX98CompatPedantic>, DefaultIgnore;
55
56 def ext_dollar_in_identifier : Extension<"'$' in identifier">,
57   InGroup<DiagGroup<"dollar-in-identifier-extension">>;
58 def ext_charize_microsoft : Extension<"@# is a microsoft extension">,
59   InGroup<Microsoft>;
60
61 def ext_token_used : Extension<"extension used">,
62   InGroup<DiagGroup<"language-extension-token">>;
63
64 def warn_cxx11_keyword : Warning<"'%0' is a keyword in C++11">,
65   InGroup<CXX11Compat>, DefaultIgnore;
66
67 def warn_unterminated_string : ExtWarn<"missing terminating '\"' character">;
68 def warn_unterminated_char : ExtWarn<"missing terminating ' character">;
69 def err_empty_character : Error<"empty character constant">;
70 def err_unterminated_block_comment : Error<"unterminated /* comment">;
71 def err_invalid_character_to_charify : Error<
72   "invalid argument to convert to character">;
73 def err_unterminated___pragma : Error<"missing terminating ')' character">;
74
75 def err_conflict_marker : Error<"version control conflict marker in file">;
76
77 def err_raw_delim_too_long : Error<
78   "raw string delimiter longer than 16 characters"
79   "; use PREFIX( )PREFIX to delimit raw string">;
80 def err_invalid_char_raw_delim : Error<
81   "invalid character '%0' character in raw string delimiter"
82   "; use PREFIX( )PREFIX to delimit raw string">;
83 def err_unterminated_raw_string : Error<
84   "raw string missing terminating delimiter )%0\"">;
85 def warn_cxx98_compat_raw_string_literal : Warning<
86   "raw string literals are incompatible with C++98">,
87   InGroup<CXX98Compat>, DefaultIgnore;
88
89 def ext_multichar_character_literal : ExtWarn<
90   "multi-character character constant">, InGroup<MultiChar>;
91 def ext_four_char_character_literal : Extension<
92   "multi-character character constant">, InGroup<FourByteMultiChar>;
93   
94
95 // Literal
96 def ext_nonstandard_escape : Extension<
97   "use of non-standard escape character '\\%0'">;
98 def ext_unknown_escape : ExtWarn<"unknown escape sequence '\\%0'">;
99 def err_hex_escape_no_digits : Error<"\\x used with no following hex digits">;
100 def err_ucn_escape_no_digits : Error<"\\u used with no following hex digits">;
101 def err_ucn_escape_invalid : Error<"invalid universal character">;
102 def err_ucn_escape_incomplete : Error<"incomplete universal character name">;
103 def err_ucn_escape_basic_scs : Error<
104   "character '%0' cannot be specified by a universal character name">;
105 def err_ucn_control_character : Error<
106   "universal character name refers to a control character">;
107 def warn_cxx98_compat_literal_ucn_escape_basic_scs : Warning<
108   "specifying character '%0' with a universal character name "
109   "is incompatible with C++98">, InGroup<CXX98Compat>, DefaultIgnore;
110 def warn_cxx98_compat_literal_ucn_control_character : Warning<
111   "universal character name referring to a control character "
112   "is incompatible with C++98">, InGroup<CXX98Compat>, DefaultIgnore;
113 def err_invalid_decimal_digit : Error<"invalid digit '%0' in decimal constant">;
114 def err_invalid_binary_digit : Error<"invalid digit '%0' in binary constant">;
115 def err_invalid_octal_digit : Error<"invalid digit '%0' in octal constant">;
116 def err_invalid_suffix_integer_constant : Error<
117   "invalid suffix '%0' on integer constant">;
118 def err_invalid_suffix_float_constant : Error<
119   "invalid suffix '%0' on floating constant">;
120 def warn_extraneous_char_constant : Warning<
121   "extraneous characters in character constant ignored">;
122 def warn_char_constant_too_large : Warning<
123   "character constant too long for its type">;
124 def err_multichar_utf_character_literal : Error<
125   "Unicode character literals may not contain multiple characters">;
126 def err_exponent_has_no_digits : Error<"exponent has no digits">;
127 def ext_imaginary_constant : Extension<"imaginary constants are an extension">;
128 def err_hexconstant_requires_exponent : Error<
129   "hexadecimal floating constants require an exponent">;
130 def err_hexconstant_requires_digits : Error<
131   "hexadecimal floating constants require a significand">;
132 def ext_hexconstant_invalid : Extension<
133   "hexadecimal floating constants are a C99 feature">;
134 def ext_binary_literal : Extension<
135   "binary integer literals are an extension">;
136 def err_pascal_string_too_long : Error<"Pascal string is too long">;
137 def warn_octal_escape_too_large : ExtWarn<"octal escape sequence out of range">;
138 def warn_hex_escape_too_large : ExtWarn<"hex escape sequence out of range">;
139 def ext_string_too_long : Extension<"string literal of length %0 exceeds "
140   "maximum length %1 that %select{C90|ISO C99|C++}2 compilers are required to "
141   "support">, InGroup<OverlengthStrings>;
142 def err_character_too_large : Error<
143   "character too large for enclosing character literal type">;
144 def warn_ucn_not_valid_in_c89 : ExtWarn<
145   "unicode escape sequences are only valid in C99 or C++">, InGroup<Unicode>;
146 def warn_cxx98_compat_unicode_literal : Warning<
147   "unicode literals are incompatible with C++98">,
148   InGroup<CXX98Compat>, DefaultIgnore;
149 def warn_cxx11_compat_user_defined_literal : Warning<
150   "identifier after literal will be treated as a user-defined literal suffix "
151   "in C++11">, InGroup<CXX11Compat>, DefaultIgnore;
152 def warn_cxx11_compat_reserved_user_defined_literal : Warning<
153   "identifier after literal will be treated as a reserved user-defined literal "
154   "suffix in C++11">,
155   InGroup<CXX11CompatReservedUserDefinedLiteral>, DefaultIgnore;
156 def ext_reserved_user_defined_literal : ExtWarn<
157   "invalid suffix on literal; C++11 requires a space between literal and "
158   "identifier">, InGroup<ReservedUserDefinedLiteral>, DefaultError;
159 def ext_ms_reserved_user_defined_literal : ExtWarn<
160   "invalid suffix on literal; C++11 requires a space between literal and "
161   "identifier">, InGroup<ReservedUserDefinedLiteral>;
162 def err_unsupported_string_concat : Error<
163   "unsupported non-standard concatenation of string literals">;
164 def err_string_concat_mixed_suffix : Error<
165   "differing user-defined suffixes ('%0' and '%1') in string literal "
166   "concatenation">;
167 def err_pp_invalid_udl : Error<
168   "%select{character|integer}0 literal with user-defined suffix "
169   "cannot be used in preprocessor constant expression">;
170 def err_bad_string_encoding : Error<
171   "illegal character encoding in string literal">;
172 def warn_bad_string_encoding : ExtWarn<
173   "illegal character encoding in string literal">,
174   InGroup<DiagGroup<"invalid-source-encoding">>;
175 def err_bad_character_encoding : Error<
176   "illegal character encoding in character literal">;
177 def warn_bad_character_encoding : ExtWarn<
178   "illegal character encoding in character literal">,
179   InGroup<DiagGroup<"invalid-source-encoding">>;
180
181
182 //===----------------------------------------------------------------------===//
183 // PTH Diagnostics
184 //===----------------------------------------------------------------------===//
185 def err_invalid_pth_file : Error<
186     "invalid or corrupt PTH file '%0'">;
187
188 //===----------------------------------------------------------------------===//
189 // Preprocessor Diagnostics
190 //===----------------------------------------------------------------------===//
191
192 let CategoryName = "User Defined Issues" in {
193 def pp_hash_warning : Warning<"%0">,
194   InGroup<PoundWarning>, DefaultWarnShowInSystemHeader;
195 def err_pp_hash_error : Error<"%0">;
196 }
197
198 def pp_include_next_in_primary : Warning<
199   "#include_next in primary source file">;
200 def pp_include_macros_out_of_predefines : Error<
201   "the #__include_macros directive is only for internal use by -imacros">;
202 def pp_include_next_absolute_path : Warning<"#include_next with absolute path">;
203 def ext_c99_whitespace_required_after_macro_name : ExtWarn<
204   "ISO C99 requires whitespace after the macro name">, InGroup<C99>;
205 def ext_missing_whitespace_after_macro_name : ExtWarn<
206   "whitespace required after macro name">;
207 def warn_missing_whitespace_after_macro_name : Warning<
208   "whitespace recommended after macro name">;
209   
210 def pp_pragma_once_in_main_file : Warning<"#pragma once in main file">;
211 def pp_pragma_sysheader_in_main_file : Warning<
212   "#pragma system_header ignored in main file">;
213 def pp_poisoning_existing_macro : Warning<"poisoning existing macro">;
214 def pp_out_of_date_dependency : Warning<
215   "current file is older than dependency %0">;
216 def pp_undef_builtin_macro : Warning<"undefining builtin macro">;
217 def pp_redef_builtin_macro : Warning<"redefining builtin macro">,
218   InGroup<DiagGroup<"builtin-macro-redefined">>;
219 def pp_disabled_macro_expansion : Warning<
220   "disabled expansion of recursive macro">, DefaultIgnore,
221   InGroup<DiagGroup<"disabled-macro-expansion">>;
222 def pp_macro_not_used : Warning<"macro is not used">, DefaultIgnore,
223   InGroup<DiagGroup<"unused-macros">>;
224 def warn_pp_undef_identifier : Warning<
225   "%0 is not defined, evaluates to 0">,
226   InGroup<DiagGroup<"undef">>, DefaultIgnore;
227
228 def pp_invalid_string_literal : Warning<
229   "invalid string literal, ignoring final '\\'">;
230 def warn_pp_expr_overflow : Warning<
231   "integer overflow in preprocessor expression">;
232 def warn_pp_convert_lhs_to_positive : Warning<
233   "left side of operator converted from negative value to unsigned: %0">;
234 def warn_pp_convert_rhs_to_positive : Warning<
235   "right side of operator converted from negative value to unsigned: %0">;
236
237 def ext_pp_import_directive : Extension<"#import is a language extension">,
238   InGroup<DiagGroup<"import-preprocessor-directive-pedantic">>;
239 def err_pp_import_directive_ms : Error<
240   "#import of type library is an unsupported Microsoft feature">;
241
242 def ext_pp_ident_directive : Extension<"#ident is a language extension">;
243 def ext_pp_include_next_directive : Extension<
244   "#include_next is a language extension">;
245 def ext_pp_warning_directive : Extension<"#warning is a language extension">;
246
247 def ext_pp_extra_tokens_at_eol : ExtWarn<
248   "extra tokens at end of #%0 directive">, InGroup<ExtraTokens>;
249   
250 def ext_pp_comma_expr : Extension<"comma operator in operand of #if">;
251 def ext_pp_bad_vaargs_use : Extension<
252   "__VA_ARGS__ can only appear in the expansion of a C99 variadic macro">;
253 def ext_pp_macro_redef : ExtWarn<"%0 macro redefined">;
254 def ext_variadic_macro : Extension<"variadic macros were introduced in C99">,
255   InGroup<VariadicMacros>;
256 def warn_cxx98_compat_variadic_macro : Warning<
257   "variadic macros are incompatible with C++98">,
258   InGroup<CXX98CompatPedantic>, DefaultIgnore;
259 def ext_named_variadic_macro : Extension<
260   "named variadic macros are a GNU extension">, InGroup<VariadicMacros>;
261 def err_embedded_include : Error<
262   "embedding a #%0 directive within macro arguments is not supported">;
263 def ext_embedded_directive : Extension<
264   "embedding a directive within macro arguments has undefined behavior">,
265   InGroup<DiagGroup<"embedded-directive">>;
266 def ext_missing_varargs_arg : Extension<
267   "varargs argument missing, but tolerated as an extension">;
268 def ext_empty_fnmacro_arg : Extension<
269   "empty macro arguments were standardized in C99">;
270 def warn_cxx98_compat_empty_fnmacro_arg : Warning<
271   "empty macro argument list is incompatible with C++98">,
272   InGroup<CXX98CompatPedantic>, DefaultIgnore;
273
274 def err_pp_invalid_directive : Error<"invalid preprocessing directive">;
275 def err_pp_file_not_found : Error<"'%0' file not found">, DefaultFatal;
276 def err_pp_error_opening_file : Error<
277   "error opening file '%0': %1">, DefaultFatal;
278 def err_pp_empty_filename : Error<"empty filename">;
279 def err_pp_include_too_deep : Error<"#include nested too deeply">;
280 def err_pp_expects_filename : Error<"expected \"FILENAME\" or <FILENAME>">;
281 def err_pp_macro_not_identifier : Error<"macro names must be identifiers">;
282 def err_pp_missing_macro_name : Error<"macro name missing">;
283 def err_pp_missing_rparen_in_macro_def : Error<
284   "missing ')' in macro parameter list">;
285 def err_pp_invalid_tok_in_arg_list : Error<
286   "invalid token in macro parameter list">;
287 def err_pp_expected_ident_in_arg_list : Error<
288   "expected identifier in macro parameter list">;
289 def err_pp_expected_comma_in_arg_list : Error<
290   "expected comma in macro parameter list">;
291 def err_pp_duplicate_name_in_arg_list : Error<
292   "duplicate macro parameter name %0">;
293 def err_pp_stringize_not_parameter : Error<
294   "'#' is not followed by a macro parameter">;
295 def err_pp_malformed_ident : Error<"invalid #ident directive">;
296 def err_pp_unterminated_conditional : Error<
297   "unterminated conditional directive">;
298 def pp_err_else_after_else : Error<"#else after #else">;
299 def pp_err_elif_after_else : Error<"#elif after #else">;
300 def pp_err_else_without_if : Error<"#else without #if">;
301 def pp_err_elif_without_if : Error<"#elif without #if">;
302 def err_pp_endif_without_if : Error<"#endif without #if">;
303 def err_pp_expected_value_in_expr : Error<"expected value in expression">;
304 def err_pp_expected_rparen : Error<"expected ')' in preprocessor expression">;
305 def err_pp_expected_eol : Error<
306   "expected end of line in preprocessor expression">;
307 def err_pp_defined_requires_identifier : Error<
308   "operator 'defined' requires an identifier">;
309 def err_pp_missing_lparen : Error<"missing '(' after '%0'">;
310 def err_pp_missing_rparen : Error<"missing ')' after '%0'">;
311 def err_pp_colon_without_question : Error<"':' without preceding '?'">;
312 def err_pp_division_by_zero : Error<
313   "division by zero in preprocessor expression">;
314 def err_pp_remainder_by_zero : Error<
315   "remainder by zero in preprocessor expression">;
316 def err_pp_expr_bad_token_binop : Error<
317   "token is not a valid binary operator in a preprocessor subexpression">;
318 def err_pp_expr_bad_token_start_expr : Error<
319   "invalid token at start of a preprocessor expression">;
320 def err_pp_invalid_poison : Error<"can only poison identifier tokens">;
321 def err_pp_used_poisoned_id : Error<"attempt to use a poisoned identifier">;
322
323 def err_feature_check_malformed : Error<
324   "builtin feature check macro requires a parenthesized identifier">;
325
326 def err_warning_check_malformed : Error<
327   "builtin warning check macro requires a parenthesized string">,
328   InGroup<MalformedWarningCheck>;
329 def warn_has_warning_invalid_option :
330    ExtWarn<"__has_warning expected option name (e.g. \"-Wundef\")">,
331    InGroup<MalformedWarningCheck>;
332
333 def warn_pragma_include_alias_mismatch_angle :
334    ExtWarn<"angle-bracketed include <%0> cannot be aliased to double-quoted "
335    "include \"%1\"">, InGroup<UnknownPragmas>;
336 def warn_pragma_include_alias_mismatch_quote :
337    ExtWarn<"double-quoted include \"%0\" cannot be aliased to angle-bracketed "
338    "include <%1>">, InGroup<UnknownPragmas>;
339 def warn_pragma_include_alias_expected :
340    ExtWarn<"pragma include_alias expected '%0'">,
341    InGroup<UnknownPragmas>;
342 def warn_pragma_include_alias_expected_filename :
343    ExtWarn<"pragma include_alias expected include filename">,
344    InGroup<UnknownPragmas>;
345
346 def err__Pragma_malformed : Error<
347   "_Pragma takes a parenthesized string literal">;
348 def err_pragma_comment_malformed : Error<
349   "pragma comment requires parenthesized identifier and optional string">;
350 def err_pragma_message_malformed : Error<
351   "pragma message requires parenthesized string">;
352 def err_pragma_push_pop_macro_malformed : Error<
353    "pragma %0 requires a parenthesized string">;
354 def warn_pragma_pop_macro_no_push : Warning<
355    "pragma pop_macro could not pop '%0', no matching push_macro">;
356 def warn_pragma_message : Warning<"%0">,
357    InGroup<PoundPragmaMessage>, DefaultWarnNoWerror;
358 def warn_pragma_ignored : Warning<"unknown pragma ignored">,
359    InGroup<UnknownPragmas>, DefaultIgnore;
360 def ext_stdc_pragma_ignored : ExtWarn<"unknown pragma in STDC namespace">,
361    InGroup<UnknownPragmas>;
362 def ext_on_off_switch_syntax :
363    ExtWarn<"expected 'ON' or 'OFF' or 'DEFAULT' in pragma">,
364    InGroup<UnknownPragmas>;
365 def ext_pragma_syntax_eod :
366    ExtWarn<"expected end of directive in pragma">,
367    InGroup<UnknownPragmas>;
368 def warn_stdc_fenv_access_not_supported :
369    Warning<"pragma STDC FENV_ACCESS ON is not supported, ignoring pragma">,
370    InGroup<UnknownPragmas>;
371 def warn_pragma_diagnostic_invalid :
372    ExtWarn<"pragma diagnostic expected 'error', 'warning', 'ignored', 'fatal',"
373             " 'push', or 'pop'">,
374    InGroup<UnknownPragmas>;
375 def warn_pragma_diagnostic_cannot_pop :
376    ExtWarn<"pragma diagnostic pop could not pop, no matching push">,
377    InGroup<UnknownPragmas>;
378 def warn_pragma_diagnostic_invalid_option :
379    ExtWarn<"pragma diagnostic expected option name (e.g. \"-Wundef\")">,
380    InGroup<UnknownPragmas>;
381 def warn_pragma_diagnostic_invalid_token :
382    ExtWarn<"unexpected token in pragma diagnostic">,
383    InGroup<UnknownPragmas>;
384 def warn_pragma_diagnostic_unknown_warning :
385    ExtWarn<"unknown warning group '%0', ignored">,
386    InGroup<UnknownPragmas>;
387 // - #pragma __debug
388 def warn_pragma_debug_unexpected_command : Warning<
389   "unexpected debug command '%0'">;
390
391 def err_pragma_comment_unknown_kind : Error<"unknown kind of pragma comment">;
392 def err_defined_macro_name : Error<"'defined' cannot be used as a macro name">;
393 def err_paste_at_start : Error<
394   "'##' cannot appear at start of macro expansion">;
395 def err_paste_at_end : Error<"'##' cannot appear at end of macro expansion">;
396 def ext_paste_comma : Extension<
397   "Use of comma pasting extension is non-portable">;
398 def err_unterm_macro_invoc : Error<
399   "unterminated function-like macro invocation">;
400 def err_too_many_args_in_macro_invoc : Error<
401   "too many arguments provided to function-like macro invocation">;
402 def err_too_few_args_in_macro_invoc : Error<
403   "too few arguments provided to function-like macro invocation">;
404 def err_pp_bad_paste : Error<
405   "pasting formed '%0', an invalid preprocessing token">;
406 def err_pp_bad_paste_ms : Warning<
407   "pasting formed '%0', an invalid preprocessing token">, DefaultError,
408   InGroup<DiagGroup<"invalid-token-paste">>;
409 def err_pp_operator_used_as_macro_name : Error<
410   "C++ operator '%0' cannot be used as a macro name">;
411 def err_pp_illegal_floating_literal : Error<
412   "floating point literal in preprocessor expression">;
413 def err_pp_line_requires_integer : Error<
414   "#line directive requires a positive integer argument">;
415 def err_pp_line_invalid_filename : Error<
416   "invalid filename for #line directive">;
417 def warn_pp_line_decimal : Warning<
418   "#line directive interprets number as decimal, not octal">;
419 def err_pp_line_digit_sequence : Error<
420   "#line directive requires a simple digit sequence">;
421 def err_pp_linemarker_requires_integer : Error<
422   "line marker directive requires a positive integer argument">;
423 def err_pp_linemarker_invalid_filename : Error<
424   "invalid filename for line marker directive">;
425 def err_pp_linemarker_invalid_flag : Error<
426   "invalid flag line marker directive">;
427 def err_pp_linemarker_invalid_pop : Error<
428   "invalid line marker flag '2': cannot pop empty include stack">;
429 def ext_pp_line_too_big : Extension<
430   "C requires #line number to be less than %0, allowed as extension">;
431 def warn_cxx98_compat_pp_line_too_big : Warning<
432   "#line number greater than 32767 is incompatible with C++98">,
433   InGroup<CXX98CompatPedantic>, DefaultIgnore;
434
435 def err_pp_visibility_non_macro : Error<"no macro named %0">;
436
437 def err_pp_arc_cf_code_audited_syntax : Error<"expected 'begin' or 'end'">;
438 def err_pp_double_begin_of_arc_cf_code_audited : Error<
439   "already inside '#pragma clang arc_cf_code_audited'">;
440 def err_pp_unmatched_end_of_arc_cf_code_audited : Error<
441   "not currently inside '#pragma clang arc_cf_code_audited'">;
442 def err_pp_include_in_arc_cf_code_audited : Error<
443   "cannot #include files inside '#pragma clang arc_cf_code_audited'">;
444 def err_pp_eof_in_arc_cf_code_audited : Error<
445   "'#pragma clang arc_cf_code_audited' was not ended within this file">;
446
447 // Module map parsing
448 def err_mmap_unknown_token : Error<"skipping stray token">;
449 def err_mmap_expected_module : Error<"expected module declaration">;
450 def err_mmap_expected_module_name : Error<"expected module name">;
451 def err_mmap_expected_lbrace : Error<"expected '{' to start module '%0'">;
452 def err_mmap_expected_rbrace : Error<"expected '}'">;
453 def note_mmap_lbrace_match : Note<"to match this '{'">;
454 def err_mmap_expected_rsquare : Error<"expected ']' to close attribute">;
455 def note_mmap_lsquare_match : Note<"to match this ']'">;
456 def err_mmap_expected_member : Error<
457   "expected umbrella, header, submodule, or module export">;
458 def err_mmap_expected_header : Error<"expected a header name after '%0'">;
459 def err_mmap_module_redefinition : Error<
460   "redefinition of module '%0'">;
461 def note_mmap_prev_definition : Note<"previously defined here">;
462 def err_mmap_header_conflict : Error<
463   "header '%0' is already part of module '%1'">;
464 def err_mmap_header_not_found : Error<
465   "%select{|umbrella }0header '%1' not found">;
466 def err_mmap_umbrella_dir_not_found : Error<
467   "umbrella directory '%0' not found">;
468 def err_mmap_umbrella_clash : Error<
469   "umbrella for module '%0' already covers this directory">;
470 def err_mmap_export_module_id : Error<
471   "expected an exported module name or '*'">;
472 def err_mmap_missing_module_unqualified : Error<
473   "no module named '%0' visible from '%1'">;
474 def err_mmap_missing_module_qualified : Error<
475   "no module named '%0' in '%1'">;
476 def err_mmap_top_level_inferred_submodule : Error<
477   "only submodules may be inferred with wildcard syntax">;
478 def err_mmap_inferred_no_umbrella : Error<
479   "inferred submodules require a module with an umbrella">;
480 def err_mmap_inferred_redef : Error<
481   "redefinition of inferred submodule">;
482 def err_mmap_expected_lbrace_wildcard : Error<
483   "expected '{' to start inferred submodule">;
484 def err_mmap_expected_wildcard_member : Error<
485   "expected module export wildcard">;
486 def err_mmap_expected_export_wildcard : Error<
487   "only '*' can be exported from an inferred submodule">;
488 def err_mmap_explicit_top_level : Error<
489   "'explicit' is not permitted on top-level modules">;
490 def err_mmap_nested_submodule_id : Error<
491   "qualified module name can only be used to define modules at the top level">;
492 def err_mmap_expected_feature : Error<"expected a feature name">;
493 def err_mmap_expected_attribute : Error<"expected an attribute name">;
494 def warn_mmap_unknown_attribute : Warning<"unknown attribute '%0'">,
495   InGroup<IgnoredAttributes>;
496
497 def warn_auto_module_import : Warning<
498   "treating #%select{include|import|include_next|__include_macros}0 as an "
499   "import of module '%1'">, InGroup<AutoImport>, DefaultIgnore;
500 def warn_uncovered_module_header : Warning<
501   "umbrella header does not include header '%0'">, InGroup<IncompleteUmbrella>;
502
503 }