• Home
  • Raw
  • Download

Lines Matching +full:- +full:- +full:def

1 //==--- DiagnosticLexKinds.td - liblex diagnostics ------------------------===//
8 //===----------------------------------------------------------------------===//
10 //===----------------------------------------------------------------------===//
12 //===----------------------------------------------------------------------===//
16 def null_in_char_or_string : Warning<
19 def null_in_file : Warning<"null character ignored">, InGroup<NullCharacter>;
20 def warn_nested_block_comment : Warning<"'/*' within block comment">,
22 def escaped_newline_block_comment_end : Warning<
25 def backslash_newline_space : Warning<
27 InGroup<DiagGroup<"backslash-newline-escape">>;
30 def warn_cxx98_compat_less_colon_colon : Warning<
35 def trigraph_ignored : Warning<"trigraph ignored">, InGroup<Trigraphs>;
36 def trigraph_ignored_block_comment : Warning<
38 def trigraph_ends_block_comment : Warning<"trigraph ends block comment">,
40 def trigraph_converted : Warning<"trigraph converted to '%0' character">,
43 def ext_multi_line_line_comment : Extension<"multi-line // comment">,
45 def ext_line_comment : Extension<
48 def ext_no_newline_eof : Extension<"no newline at end of file">,
50 def warn_no_newline_eof : Warning<"no newline at end of file">,
53 def warn_cxx98_compat_no_newline_eof : Warning<
57 def ext_dollar_in_identifier : Extension<"'$' in identifier">,
58 InGroup<DiagGroup<"dollar-in-identifier-extension">>;
59 def ext_charize_microsoft : Extension<
62 def ext_comment_paste_microsoft : Extension<
65 def ext_ctrl_z_eof_microsoft : Extension<
66 "treating Ctrl-Z as end-of-file is a Microsoft extension">,
69 def ext_token_used : Extension<"extension used">,
70 InGroup<DiagGroup<"language-extension-token">>;
72 def warn_cxx11_keyword : Warning<"'%0' is a keyword in C++11">,
75 def ext_unterminated_char_or_string : ExtWarn<
77 def ext_empty_character : ExtWarn<"empty character constant">,
79 def err_unterminated_block_comment : Error<"unterminated /* comment">;
80 def err_invalid_character_to_charify : Error<
82 def err_unterminated___pragma : Error<"missing terminating ')' character">;
84 def err_conflict_marker : Error<"version control conflict marker in file">;
86 def err_raw_delim_too_long : Error<
89 def err_invalid_char_raw_delim : Error<
92 def err_unterminated_raw_string : Error<
94 def warn_cxx98_compat_raw_string_literal : Warning<
98 def ext_multichar_character_literal : ExtWarn<
99 "multi-character character constant">, InGroup<MultiChar>;
100 def ext_four_char_character_literal : Extension<
101 "multi-character character constant">, InGroup<FourByteMultiChar>;
105 def err_invalid_utf8 : Error<
106 "source file is not valid UTF-8">;
107 def err_non_ascii : Error<
108 "non-ASCII characters are not allowed outside of literals and identifiers">;
109 def ext_unicode_whitespace : ExtWarn<
111 InGroup<DiagGroup<"unicode-whitespace">>;
113 def err_hex_escape_no_digits : Error<
115 def warn_ucn_escape_no_digits : Warning<
118 def err_ucn_escape_incomplete : Error<
120 def warn_ucn_escape_incomplete : Warning<
123 def note_ucn_four_not_eight : Note<"did you mean to use '\\u'?">;
125 def err_ucn_escape_basic_scs : Error<
127 def err_ucn_control_character : Error<
129 def err_ucn_escape_invalid : Error<"invalid universal character">;
130 def warn_ucn_escape_surrogate : Warning<
134 def warn_c99_compat_unicode_id : Warning<
138 def warn_cxx98_compat_unicode_id : Warning<
142 def warn_cxx98_compat_literal_ucn_escape_basic_scs : Warning<
145 def warn_cxx98_compat_literal_ucn_control_character : Warning<
148 def warn_ucn_not_valid_in_c89 : Warning<
151 def warn_ucn_not_valid_in_c89_literal : ExtWarn<
156 def ext_nonstandard_escape : Extension<
157 "use of non-standard escape character '\\%0'">;
158 def ext_unknown_escape : ExtWarn<"unknown escape sequence '\\%0'">,
159 InGroup<DiagGroup<"unknown-escape-sequence">>;
160 def err_invalid_digit : Error<
162 def err_invalid_suffix_constant : Error<
164 def warn_cxx11_compat_digit_separator : Warning<
167 def err_digit_separator_not_between_digits : Error<
169 def warn_extraneous_char_constant : Warning<
171 def warn_char_constant_too_large : Warning<
173 def err_multichar_utf_character_literal : Error<
175 def err_exponent_has_no_digits : Error<"exponent has no digits">;
176 def ext_imaginary_constant : Extension<
178 def err_hex_constant_requires : Error<
181 def ext_hex_constant_invalid : Extension<
183 def ext_hex_literal_invalid : Extension<
185 def warn_cxx1z_hex_literal : Warning<
189 def ext_binary_literal : Extension<
191 def ext_binary_literal_cxx14 : Extension<
193 def warn_cxx11_compat_binary_literal : Warning<
196 def err_pascal_string_too_long : Error<"Pascal string is too long">;
197 def err_escape_too_large : Error<
199 def ext_string_too_long : Extension<"string literal of length %0 exceeds "
202 def err_character_too_large : Error<
204 def warn_c99_compat_unicode_literal : Warning<
207 def warn_cxx98_compat_unicode_literal : Warning<
210 def warn_cxx14_compat_u8_character_literal : Warning<
213 def warn_cxx11_compat_user_defined_literal : Warning<
214 "identifier after literal will be treated as a user-defined literal suffix "
216 def warn_cxx11_compat_reserved_user_defined_literal : Warning<
217 "identifier after literal will be treated as a reserved user-defined literal "
220 def ext_reserved_user_defined_literal : ExtWarn<
223 def ext_ms_reserved_user_defined_literal : ExtWarn<
226 def err_unsupported_string_concat : Error<
227 "unsupported non-standard concatenation of string literals">;
228 def err_string_concat_mixed_suffix : Error<
229 "differing user-defined suffixes ('%0' and '%1') in string literal "
231 def err_pp_invalid_udl : Error<
232 "%select{character|integer}0 literal with user-defined suffix "
234 def err_bad_string_encoding : Error<
236 def warn_bad_string_encoding : ExtWarn<
239 def err_bad_character_encoding : Error<
241 def warn_bad_character_encoding : ExtWarn<
244 def err_lexing_string : Error<"failure when lexing a string">;
247 //===----------------------------------------------------------------------===//
249 //===----------------------------------------------------------------------===//
250 def err_invalid_pth_file : Error<
253 //===----------------------------------------------------------------------===//
255 //===----------------------------------------------------------------------===//
257 let CategoryName = "User-Defined Issue" in {
258 def pp_hash_warning : Warning<"%0">,
260 def err_pp_hash_error : Error<"%0">;
263 def pp_include_next_in_primary : Warning<
265 InGroup<DiagGroup<"include-next-outside-header">>;
266 def pp_include_macros_out_of_predefines : Error<
267 "the #__include_macros directive is only for internal use by -imacros">;
268 def pp_include_next_absolute_path : Warning<
270 InGroup<DiagGroup<"include-next-absolute-path">>;
271 def ext_c99_whitespace_required_after_macro_name : ExtWarn<
273 def ext_missing_whitespace_after_macro_name : ExtWarn<
275 def warn_missing_whitespace_after_macro_name : Warning<
279 "non-portable path to file '%0'; specified path differs in case from file"
281 def pp_nonportable_path : NonportablePath,
282 InGroup<DiagGroup<"nonportable-include-path">>;
283 def pp_nonportable_system_path : NonportablePath, DefaultIgnore,
284 InGroup<DiagGroup<"nonportable-system-include-path">>;
286 def pp_pragma_once_in_main_file : Warning<"#pragma once in main file">,
287 InGroup<DiagGroup<"pragma-once-outside-header">>;
288 def pp_pragma_sysheader_in_main_file : Warning<
290 InGroup<DiagGroup<"pragma-system-header-outside-header">>;
291 def pp_poisoning_existing_macro : Warning<"poisoning existing macro">;
292 def pp_out_of_date_dependency : Warning<
294 def ext_pp_undef_builtin_macro : ExtWarn<"undefining builtin macro">,
296 def ext_pp_redef_builtin_macro : ExtWarn<"redefining builtin macro">,
298 def pp_disabled_macro_expansion : Warning<
300 InGroup<DiagGroup<"disabled-macro-expansion">>;
301 def pp_macro_not_used : Warning<"macro is not used">, DefaultIgnore,
302 InGroup<DiagGroup<"unused-macros">>;
303 def warn_pp_undef_identifier : Warning<
306 def warn_pp_ambiguous_macro : Warning<
308 def note_pp_ambiguous_macro_chosen : Note<
310 def note_pp_ambiguous_macro_other : Note<
312 def warn_pp_macro_hides_keyword : Extension<
314 def warn_pp_macro_is_reserved_id : Warning<
317 def warn_pp_objc_macro_redef_ignored : Warning<
318 "ignoring redefinition of Objective-C qualifier macro">,
319 InGroup<DiagGroup<"objc-macro-redefinition">>;
321 def pp_invalid_string_literal : Warning<
323 def warn_pp_expr_overflow : Warning<
325 def warn_pp_convert_to_positive : Warning<
329 def ext_pp_import_directive : Extension<"#import is a language extension">,
330 InGroup<DiagGroup<"import-preprocessor-directive-pedantic">>;
331 def err_pp_import_directive_ms : Error<
333 def ext_pp_include_search_ms : ExtWarn<
334 "#include resolved using non-portable Microsoft search rules as: %0">,
337 def ext_pp_ident_directive : Extension<"#ident is a language extension">;
338 def ext_pp_include_next_directive : Extension<
340 def ext_pp_warning_directive : Extension<"#warning is a language extension">;
342 def ext_pp_extra_tokens_at_eol : ExtWarn<
345 def ext_pp_comma_expr : Extension<"comma operator in operand of #if">;
346 def ext_pp_bad_vaargs_use : Extension<
348 def ext_pp_macro_redef : ExtWarn<"%0 macro redefined">, InGroup<MacroRedefined>;
349 def ext_variadic_macro : Extension<"variadic macros are a C99 feature">,
351 def warn_cxx98_compat_variadic_macro : Warning<
354 def ext_named_variadic_macro : Extension<
356 def err_embedded_directive : Error<
358 def ext_embedded_directive : Extension<
360 InGroup<DiagGroup<"embedded-directive">>;
361 def ext_missing_varargs_arg : Extension<
364 def ext_empty_fnmacro_arg : Extension<
366 def warn_cxx98_compat_empty_fnmacro_arg : Warning<
369 def note_macro_here : Note<"macro %0 defined here">;
371 def err_pp_opencl_variadic_macros :
374 def err_pp_invalid_directive : Error<"invalid preprocessing directive">;
375 def err_pp_directive_required : Error<
377 def err_pp_file_not_found : Error<"'%0' file not found">, DefaultFatal;
378 def err_pp_file_not_found_not_fatal : Error<
380 def err_pp_error_opening_file : Error<
382 def err_pp_empty_filename : Error<"empty filename">;
383 def err_pp_include_too_deep : Error<"#include nested too deeply">;
384 def err_pp_expects_filename : Error<"expected \"FILENAME\" or <FILENAME>">;
385 def err_pp_macro_not_identifier : Error<"macro name must be an identifier">;
386 def err_pp_missing_macro_name : Error<"macro name missing">;
387 def err_pp_missing_rparen_in_macro_def : Error<
389 def err_pp_invalid_tok_in_arg_list : Error<
391 def err_pp_expected_ident_in_arg_list : Error<
393 def err_pp_expected_comma_in_arg_list : Error<
395 def err_pp_duplicate_name_in_arg_list : Error<
397 def err_pp_stringize_not_parameter : Error<
399 def err_pp_malformed_ident : Error<"invalid #ident directive">;
400 def err_pp_unterminated_conditional : Error<
402 def pp_err_else_after_else : Error<"#else after #else">;
403 def pp_err_elif_after_else : Error<"#elif after #else">;
404 def pp_err_else_without_if : Error<"#else without #if">;
405 def pp_err_elif_without_if : Error<"#elif without #if">;
406 def err_pp_endif_without_if : Error<"#endif without #if">;
407 def err_pp_expected_value_in_expr : Error<"expected value in expression">;
408 def err_pp_expected_rparen : Error<"expected ')' in preprocessor expression">;
409 def err_pp_expected_eol : Error<
411 def err_pp_expected_after : Error<"missing %1 after %0">;
412 def err_pp_nested_paren : Error<"nested parentheses not permitted in %0">;
413 def err_pp_colon_without_question : Error<"':' without preceding '?'">;
414 def err_pp_division_by_zero : Error<
416 def err_pp_remainder_by_zero : Error<
418 def err_pp_expr_bad_token_binop : Error<
420 def err_pp_expr_bad_token_lparen : Error<
421 "function-like macro %0 is not defined">;
422 def err_pp_expr_bad_token_start_expr : Error<
424 def err_pp_invalid_poison : Error<"can only poison identifier tokens">;
425 def err_pp_used_poisoned_id : Error<"attempt to use a poisoned identifier">;
427 def err_feature_check_malformed : Error<
430 def warn_has_warning_invalid_option :
431 ExtWarn<"__has_warning expected option name (e.g. \"-Wundef\")">,
434 def err_pp_identifier_arg_not_identifier : Error<
437 def warn_pragma_include_alias_mismatch_angle :
438 ExtWarn<"angle-bracketed include <%0> cannot be aliased to double-quoted "
440 def warn_pragma_include_alias_mismatch_quote :
441 ExtWarn<"double-quoted include \"%0\" cannot be aliased to angle-bracketed "
443 def warn_pragma_include_alias_expected :
446 def warn_pragma_include_alias_expected_filename :
450 // - #pragma warning(...)
451 def warn_pragma_warning_expected :
454 def warn_pragma_warning_spec_invalid :
458 def warn_pragma_warning_push_level :
461 def warn_pragma_warning_expected_number :
465 def err__Pragma_malformed : Error<
467 def err_pragma_message_malformed : Error<
469 def err_pragma_push_pop_macro_malformed : Error<
471 def warn_pragma_pop_macro_no_push : Warning<
474 def warn_pragma_message : Warning<"%0">,
476 def err_pragma_message : Error<"%0">;
477 def warn_pragma_ignored : Warning<"unknown pragma ignored">,
479 def ext_stdc_pragma_ignored : ExtWarn<"unknown pragma in STDC namespace">,
481 def ext_on_off_switch_syntax :
484 def ext_pragma_syntax_eod :
487 def warn_stdc_fenv_access_not_supported :
490 def warn_pragma_diagnostic_invalid :
494 def warn_pragma_diagnostic_cannot_pop :
497 def warn_pragma_diagnostic_invalid_option :
498 ExtWarn<"pragma diagnostic expected option name (e.g. \"-Wundef\")">,
500 def warn_pragma_diagnostic_invalid_token :
503 def warn_pragma_diagnostic_unknown_warning :
506 // - #pragma __debug
507 def warn_pragma_debug_unexpected_command : Warning<
509 def warn_pragma_debug_missing_argument : Warning<
512 def err_defined_macro_name : Error<"'defined' cannot be used as a macro name">;
513 def err_paste_at_start : Error<
515 def err_paste_at_end : Error<"'##' cannot appear at end of macro expansion">;
516 def ext_paste_comma : Extension<
518 def err_unterm_macro_invoc : Error<
519 "unterminated function-like macro invocation">;
520 def err_too_many_args_in_macro_invoc : Error<
521 "too many arguments provided to function-like macro invocation">;
522 def note_suggest_parens_for_macro : Note<
525 def note_init_list_at_beginning_of_macro_argument : Note<
527 def err_too_few_args_in_macro_invoc : Error<
528 "too few arguments provided to function-like macro invocation">;
529 def err_pp_bad_paste : Error<
531 def ext_pp_bad_paste_ms : ExtWarn<
533 InGroup<DiagGroup<"invalid-token-paste">>;
534 def err_pp_operator_used_as_macro_name : Error<
536 def ext_pp_operator_used_as_macro_name : Extension<
538 def err_pp_illegal_floating_literal : Error<
540 def err_pp_line_requires_integer : Error<
542 def ext_pp_line_zero : Extension<
545 def err_pp_line_invalid_filename : Error<
547 def warn_pp_line_decimal : Warning<
549 def err_pp_line_digit_sequence : Error<
551 def err_pp_linemarker_requires_integer : Error<
553 def err_pp_linemarker_invalid_filename : Error<
555 def err_pp_linemarker_invalid_flag : Error<
557 def err_pp_linemarker_invalid_pop : Error<
559 def ext_pp_line_too_big : Extension<
561 def warn_cxx98_compat_pp_line_too_big : Warning<
565 def err_pp_visibility_non_macro : Error<"no macro named %0">;
567 def err_pp_arc_cf_code_audited_syntax : Error<"expected 'begin' or 'end'">;
568 def err_pp_double_begin_of_arc_cf_code_audited : Error<
570 def err_pp_unmatched_end_of_arc_cf_code_audited : Error<
572 def err_pp_include_in_arc_cf_code_audited : Error<
574 def err_pp_eof_in_arc_cf_code_audited : Error<
577 def warn_pp_date_time : Warning<
579 ShowInSystemHeader, DefaultIgnore, InGroup<DiagGroup<"date-time">>;
582 def err_mmap_unknown_token : Error<"skipping stray token">;
583 def err_mmap_expected_module : Error<"expected module declaration">;
584 def err_mmap_expected_module_name : Error<"expected module name">;
585 def err_mmap_expected_lbrace : Error<"expected '{' to start module '%0'">;
586 def err_mmap_expected_rbrace : Error<"expected '}'">;
587 def note_mmap_lbrace_match : Note<"to match this '{'">;
588 def err_mmap_expected_rsquare : Error<"expected ']' to close attribute">;
589 def note_mmap_lsquare_match : Note<"to match this ']'">;
590 def err_mmap_expected_member : Error<
592 def err_mmap_expected_header : Error<"expected a header name after '%0'">;
593 def err_mmap_expected_mmap_file : Error<"expected a module map file name">;
594 def err_mmap_module_redefinition : Error<
596 def note_mmap_prev_definition : Note<"previously defined here">;
597 def err_mmap_umbrella_dir_not_found : Error<
599 def err_mmap_umbrella_clash : Error<
601 def err_mmap_module_id : Error<
603 def err_mmap_expected_library_name : Error<
605 def err_mmap_config_macro_submodule : Error<
606 "configuration macros are only allowed in top-level modules">;
607 def err_mmap_use_decl_submodule : Error<
608 "use declarations are only allowed in top-level modules">;
609 def err_mmap_expected_config_macro : Error<
611 def err_mmap_expected_conflicts_comma : Error<
613 def err_mmap_expected_conflicts_message : Error<
615 def err_mmap_missing_module_unqualified : Error<
617 def err_mmap_missing_module_qualified : Error<
619 def err_mmap_top_level_inferred_submodule : Error<
621 def err_mmap_inferred_no_umbrella : Error<
623 def err_mmap_inferred_framework_submodule : Error<
625 def err_mmap_explicit_inferred_framework : Error<
627 def err_mmap_missing_exclude_name : Error<
629 def err_mmap_inferred_redef : Error<
631 def err_mmap_expected_lbrace_wildcard : Error<
633 def err_mmap_expected_inferred_member : Error<
635 def err_mmap_expected_export_wildcard : Error<
637 def err_mmap_explicit_top_level : Error<
638 "'explicit' is not permitted on top-level modules">;
639 def err_mmap_nested_submodule_id : Error<
641 def err_mmap_expected_feature : Error<"expected a feature name">;
642 def err_mmap_expected_attribute : Error<"expected an attribute name">;
643 def warn_mmap_unknown_attribute : Warning<"unknown attribute '%0'">,
646 def warn_auto_module_import : Warning<
649 def note_implicit_top_level_module_import_here : Note<
650 "submodule of top-level module '%0' implicitly imported here">;
651 def warn_uncovered_module_header : Warning<
654 def err_expected_id_building_module : Error<
656 def warn_use_of_private_header_outside_module : Warning<
658 InGroup<DiagGroup<"private-header">>, DefaultError;
659 def err_undeclared_use_of_module : Error<
661 def warn_non_modular_include_in_framework_module : Warning<
662 "include of non-modular header inside framework module '%0'">,
664 def warn_non_modular_include_in_module : Warning<
665 "include of non-modular header inside module '%0'">,
667 def warn_module_conflict : Warning<
668 "module '%0' conflicts with already-imported module '%1': %2">,
671 def warn_header_guard : Warning<
673 InGroup<DiagGroup<"header-guard">>;
674 def note_header_guard : Note<
677 def warn_defined_in_object_type_macro : Warning<
680 def warn_defined_in_function_type_macro : Extension<
686 def err_pp_assume_nonnull_syntax : Error<"expected 'begin' or 'end'">;
687 def err_pp_double_begin_of_assume_nonnull : Error<
689 def err_pp_unmatched_end_of_assume_nonnull : Error<
691 def err_pp_include_in_assume_nonnull : Error<
693 def err_pp_eof_in_assume_nonnull : Error<