106f32e7eSjoerg//==--- DiagnosticLexKinds.td - liblex diagnostics ------------------------===// 206f32e7eSjoerg// 306f32e7eSjoerg// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 406f32e7eSjoerg// See https://llvm.org/LICENSE.txt for license information. 506f32e7eSjoerg// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 606f32e7eSjoerg// 706f32e7eSjoerg//===----------------------------------------------------------------------===// 806f32e7eSjoerg 906f32e7eSjoerg//===----------------------------------------------------------------------===// 1006f32e7eSjoerg// Lexer Diagnostics 1106f32e7eSjoerg//===----------------------------------------------------------------------===// 1206f32e7eSjoerg 1306f32e7eSjoerglet Component = "Lex", CategoryName = "Lexical or Preprocessor Issue" in { 1406f32e7eSjoerg 1506f32e7eSjoergdef null_in_char_or_string : Warning< 1606f32e7eSjoerg "null character(s) preserved in %select{char|string}0 literal">, 1706f32e7eSjoerg InGroup<NullCharacter>; 1806f32e7eSjoergdef null_in_file : Warning<"null character ignored">, InGroup<NullCharacter>; 1906f32e7eSjoergdef warn_nested_block_comment : Warning<"'/*' within block comment">, 2006f32e7eSjoerg InGroup<Comment>; 2106f32e7eSjoergdef escaped_newline_block_comment_end : Warning< 2206f32e7eSjoerg "escaped newline between */ characters at block comment end">, 2306f32e7eSjoerg InGroup<Comment>; 2406f32e7eSjoergdef backslash_newline_space : Warning< 2506f32e7eSjoerg "backslash and newline separated by space">, 2606f32e7eSjoerg InGroup<DiagGroup<"backslash-newline-escape">>; 2706f32e7eSjoerg 2806f32e7eSjoerg// Digraphs. 2906f32e7eSjoergdef warn_cxx98_compat_less_colon_colon : Warning< 3006f32e7eSjoerg "'<::' is treated as digraph '<:' (aka '[') followed by ':' in C++98">, 3106f32e7eSjoerg InGroup<CXX98Compat>, DefaultIgnore; 3206f32e7eSjoerg 3306f32e7eSjoergdef warn_cxx17_compat_spaceship : Warning< 34*13fbcb42Sjoerg "'<=>' operator is incompatible with C++ standards before C++20">, 35*13fbcb42Sjoerg InGroup<CXXPre20Compat>, DefaultIgnore; 36*13fbcb42Sjoergdef warn_cxx20_compat_spaceship : Warning< 37*13fbcb42Sjoerg "'<=>' is a single token in C++20; " 3806f32e7eSjoerg "add a space to avoid a change in behavior">, 39*13fbcb42Sjoerg InGroup<CXX20Compat>; 4006f32e7eSjoerg 4106f32e7eSjoerg// Trigraphs. 4206f32e7eSjoergdef trigraph_ignored : Warning<"trigraph ignored">, InGroup<Trigraphs>; 4306f32e7eSjoergdef trigraph_ignored_block_comment : Warning< 4406f32e7eSjoerg "ignored trigraph would end block comment">, InGroup<Trigraphs>; 4506f32e7eSjoergdef trigraph_ends_block_comment : Warning<"trigraph ends block comment">, 4606f32e7eSjoerg InGroup<Trigraphs>; 4706f32e7eSjoergdef trigraph_converted : Warning<"trigraph converted to '%0' character">, 4806f32e7eSjoerg InGroup<Trigraphs>; 4906f32e7eSjoerg 5006f32e7eSjoergdef ext_multi_line_line_comment : Extension<"multi-line // comment">, 5106f32e7eSjoerg InGroup<Comment>; 5206f32e7eSjoergdef ext_line_comment : Extension< 5306f32e7eSjoerg "// comments are not allowed in this language">, 5406f32e7eSjoerg InGroup<Comment>; 5506f32e7eSjoergdef ext_no_newline_eof : Extension<"no newline at end of file">, 5606f32e7eSjoerg InGroup<NewlineEOF>; 5706f32e7eSjoergdef warn_no_newline_eof : Warning<"no newline at end of file">, 5806f32e7eSjoerg InGroup<NewlineEOF>, DefaultIgnore; 5906f32e7eSjoerg 6006f32e7eSjoergdef warn_cxx98_compat_no_newline_eof : Warning< 6106f32e7eSjoerg "C++98 requires newline at end of file">, 6206f32e7eSjoerg InGroup<CXX98CompatPedantic>, DefaultIgnore; 6306f32e7eSjoerg 6406f32e7eSjoergdef ext_dollar_in_identifier : Extension<"'$' in identifier">, 6506f32e7eSjoerg InGroup<DiagGroup<"dollar-in-identifier-extension">>; 6606f32e7eSjoergdef ext_charize_microsoft : Extension< 6706f32e7eSjoerg "charizing operator #@ is a Microsoft extension">, 6806f32e7eSjoerg InGroup<MicrosoftCharize>; 6906f32e7eSjoergdef ext_comment_paste_microsoft : Extension< 7006f32e7eSjoerg "pasting two '/' tokens into a '//' comment is a Microsoft extension">, 7106f32e7eSjoerg InGroup<MicrosoftCommentPaste>; 7206f32e7eSjoergdef ext_ctrl_z_eof_microsoft : Extension< 7306f32e7eSjoerg "treating Ctrl-Z as end-of-file is a Microsoft extension">, 7406f32e7eSjoerg InGroup<MicrosoftEndOfFile>; 7506f32e7eSjoerg 7606f32e7eSjoergdef ext_token_used : Extension<"extension used">, 7706f32e7eSjoerg InGroup<DiagGroup<"language-extension-token">>; 7806f32e7eSjoerg 7906f32e7eSjoergdef warn_cxx11_keyword : Warning<"'%0' is a keyword in C++11">, 8006f32e7eSjoerg InGroup<CXX11Compat>, DefaultIgnore; 81*13fbcb42Sjoergdef warn_cxx20_keyword : Warning<"'%0' is a keyword in C++20">, 82*13fbcb42Sjoerg InGroup<CXX20Compat>, DefaultIgnore; 8306f32e7eSjoerg 8406f32e7eSjoergdef ext_unterminated_char_or_string : ExtWarn< 8506f32e7eSjoerg "missing terminating %select{'|'\"'}0 character">, InGroup<InvalidPPToken>; 8606f32e7eSjoergdef ext_empty_character : ExtWarn<"empty character constant">, 8706f32e7eSjoerg InGroup<InvalidPPToken>; 8806f32e7eSjoergdef err_unterminated_block_comment : Error<"unterminated /* comment">; 8906f32e7eSjoergdef err_invalid_character_to_charify : Error< 9006f32e7eSjoerg "invalid argument to convert to character">; 9106f32e7eSjoergdef err_unterminated___pragma : Error<"missing terminating ')' character">; 9206f32e7eSjoerg 9306f32e7eSjoergdef err_conflict_marker : Error<"version control conflict marker in file">; 9406f32e7eSjoerg 9506f32e7eSjoergdef err_raw_delim_too_long : Error< 9606f32e7eSjoerg "raw string delimiter longer than 16 characters" 9706f32e7eSjoerg "; use PREFIX( )PREFIX to delimit raw string">; 9806f32e7eSjoergdef err_invalid_char_raw_delim : Error< 9906f32e7eSjoerg "invalid character '%0' character in raw string delimiter" 10006f32e7eSjoerg "; use PREFIX( )PREFIX to delimit raw string">; 10106f32e7eSjoergdef err_unterminated_raw_string : Error< 10206f32e7eSjoerg "raw string missing terminating delimiter )%0\"">; 10306f32e7eSjoergdef warn_cxx98_compat_raw_string_literal : Warning< 10406f32e7eSjoerg "raw string literals are incompatible with C++98">, 10506f32e7eSjoerg InGroup<CXX98Compat>, DefaultIgnore; 10606f32e7eSjoerg 107*13fbcb42Sjoergdef warn_multichar_character_literal : Warning< 10806f32e7eSjoerg "multi-character character constant">, InGroup<MultiChar>; 109*13fbcb42Sjoergdef warn_four_char_character_literal : Warning< 110*13fbcb42Sjoerg "multi-character character constant">, InGroup<FourByteMultiChar>, DefaultIgnore; 11106f32e7eSjoerg 11206f32e7eSjoerg 11306f32e7eSjoerg// Unicode and UCNs 11406f32e7eSjoergdef err_invalid_utf8 : Error< 11506f32e7eSjoerg "source file is not valid UTF-8">; 11606f32e7eSjoergdef err_non_ascii : Error< 11706f32e7eSjoerg "non-ASCII characters are not allowed outside of literals and identifiers">; 11806f32e7eSjoergdef ext_unicode_whitespace : ExtWarn< 11906f32e7eSjoerg "treating Unicode character as whitespace">, 12006f32e7eSjoerg InGroup<DiagGroup<"unicode-whitespace">>; 12106f32e7eSjoergdef warn_utf8_symbol_homoglyph : Warning< 12206f32e7eSjoerg "treating Unicode character <U+%0> as identifier character rather than " 12306f32e7eSjoerg "as '%1' symbol">, InGroup<DiagGroup<"unicode-homoglyph">>; 12406f32e7eSjoergdef warn_utf8_symbol_zero_width : Warning< 12506f32e7eSjoerg "identifier contains Unicode character <U+%0> that is invisible in " 12606f32e7eSjoerg "some environments">, InGroup<DiagGroup<"unicode-zero-width">>; 12706f32e7eSjoerg 12806f32e7eSjoergdef err_hex_escape_no_digits : Error< 12906f32e7eSjoerg "\\%0 used with no following hex digits">; 13006f32e7eSjoergdef warn_ucn_escape_no_digits : Warning< 13106f32e7eSjoerg "\\%0 used with no following hex digits; " 13206f32e7eSjoerg "treating as '\\' followed by identifier">, InGroup<Unicode>; 13306f32e7eSjoergdef err_ucn_escape_incomplete : Error< 13406f32e7eSjoerg "incomplete universal character name">; 13506f32e7eSjoergdef warn_ucn_escape_incomplete : Warning< 13606f32e7eSjoerg "incomplete universal character name; " 13706f32e7eSjoerg "treating as '\\' followed by identifier">, InGroup<Unicode>; 13806f32e7eSjoergdef note_ucn_four_not_eight : Note<"did you mean to use '\\u'?">; 13906f32e7eSjoerg 14006f32e7eSjoergdef err_ucn_escape_basic_scs : Error< 14106f32e7eSjoerg "character '%0' cannot be specified by a universal character name">; 14206f32e7eSjoergdef err_ucn_control_character : Error< 14306f32e7eSjoerg "universal character name refers to a control character">; 14406f32e7eSjoergdef err_ucn_escape_invalid : Error<"invalid universal character">; 14506f32e7eSjoergdef warn_ucn_escape_surrogate : Warning< 14606f32e7eSjoerg "universal character name refers to a surrogate character">, 14706f32e7eSjoerg InGroup<Unicode>; 14806f32e7eSjoerg 14906f32e7eSjoergdef warn_c99_compat_unicode_id : Warning< 15006f32e7eSjoerg "%select{using this character in an identifier|starting an identifier with " 15106f32e7eSjoerg "this character}0 is incompatible with C99">, 15206f32e7eSjoerg InGroup<C99Compat>, DefaultIgnore; 15306f32e7eSjoergdef warn_cxx98_compat_unicode_id : Warning< 15406f32e7eSjoerg "using this character in an identifier is incompatible with C++98">, 15506f32e7eSjoerg InGroup<CXX98Compat>, DefaultIgnore; 15606f32e7eSjoerg 15706f32e7eSjoergdef warn_cxx98_compat_literal_ucn_escape_basic_scs : Warning< 15806f32e7eSjoerg "specifying character '%0' with a universal character name " 15906f32e7eSjoerg "is incompatible with C++98">, InGroup<CXX98Compat>, DefaultIgnore; 16006f32e7eSjoergdef warn_cxx98_compat_literal_ucn_control_character : Warning< 16106f32e7eSjoerg "universal character name referring to a control character " 16206f32e7eSjoerg "is incompatible with C++98">, InGroup<CXX98Compat>, DefaultIgnore; 16306f32e7eSjoergdef warn_ucn_not_valid_in_c89 : Warning< 16406f32e7eSjoerg "universal character names are only valid in C99 or C++; " 16506f32e7eSjoerg "treating as '\\' followed by identifier">, InGroup<Unicode>; 16606f32e7eSjoergdef warn_ucn_not_valid_in_c89_literal : ExtWarn< 16706f32e7eSjoerg "universal character names are only valid in C99 or C++">, InGroup<Unicode>; 16806f32e7eSjoerg 16906f32e7eSjoerg 17006f32e7eSjoerg// Literal 17106f32e7eSjoergdef ext_nonstandard_escape : Extension< 17206f32e7eSjoerg "use of non-standard escape character '\\%0'">; 17306f32e7eSjoergdef ext_unknown_escape : ExtWarn<"unknown escape sequence '\\%0'">, 17406f32e7eSjoerg InGroup<DiagGroup<"unknown-escape-sequence">>; 17506f32e7eSjoergdef err_invalid_digit : Error< 17606f32e7eSjoerg "invalid digit '%0' in %select{decimal|octal|binary}1 constant">; 17706f32e7eSjoergdef err_invalid_suffix_constant : Error< 178*13fbcb42Sjoerg "invalid suffix '%0' on %select{integer|floating|fixed-point}1 constant">; 17906f32e7eSjoergdef warn_cxx11_compat_digit_separator : Warning< 18006f32e7eSjoerg "digit separators are incompatible with C++ standards before C++14">, 18106f32e7eSjoerg InGroup<CXXPre14Compat>, DefaultIgnore; 182*13fbcb42Sjoergdef warn_c2x_compat_digit_separator : Warning< 183*13fbcb42Sjoerg "digit separators are incompatible with C standards before C2x">, 184*13fbcb42Sjoerg InGroup<CPre2xCompat>, DefaultIgnore; 18506f32e7eSjoergdef err_digit_separator_not_between_digits : Error< 18606f32e7eSjoerg "digit separator cannot appear at %select{start|end}0 of digit sequence">; 18706f32e7eSjoergdef warn_extraneous_char_constant : Warning< 18806f32e7eSjoerg "extraneous characters in character constant ignored">; 18906f32e7eSjoergdef warn_char_constant_too_large : Warning< 19006f32e7eSjoerg "character constant too long for its type">; 19106f32e7eSjoergdef err_multichar_utf_character_literal : Error< 19206f32e7eSjoerg "Unicode character literals may not contain multiple characters">; 19306f32e7eSjoergdef err_exponent_has_no_digits : Error<"exponent has no digits">; 19406f32e7eSjoergdef err_hex_constant_requires : Error< 19506f32e7eSjoerg "hexadecimal floating %select{constant|literal}0 requires " 19606f32e7eSjoerg "%select{an exponent|a significand}1">; 19706f32e7eSjoergdef ext_hex_constant_invalid : Extension< 19806f32e7eSjoerg "hexadecimal floating constants are a C99 feature">, InGroup<C99>; 19906f32e7eSjoergdef ext_hex_literal_invalid : Extension< 20006f32e7eSjoerg "hexadecimal floating literals are a C++17 feature">, InGroup<CXX17>; 20106f32e7eSjoergdef warn_cxx17_hex_literal : Warning< 20206f32e7eSjoerg "hexadecimal floating literals are incompatible with " 20306f32e7eSjoerg "C++ standards before C++17">, 20406f32e7eSjoerg InGroup<CXXPre17CompatPedantic>, DefaultIgnore; 20506f32e7eSjoergdef ext_binary_literal : Extension< 20606f32e7eSjoerg "binary integer literals are a GNU extension">, InGroup<GNUBinaryLiteral>; 20706f32e7eSjoergdef ext_binary_literal_cxx14 : Extension< 20806f32e7eSjoerg "binary integer literals are a C++14 extension">, InGroup<CXX14BinaryLiteral>; 20906f32e7eSjoergdef warn_cxx11_compat_binary_literal : Warning< 21006f32e7eSjoerg "binary integer literals are incompatible with C++ standards before C++14">, 21106f32e7eSjoerg InGroup<CXXPre14CompatBinaryLiteral>, DefaultIgnore; 21206f32e7eSjoergdef err_pascal_string_too_long : Error<"Pascal string is too long">; 21306f32e7eSjoergdef err_escape_too_large : Error< 21406f32e7eSjoerg "%select{hex|octal}0 escape sequence out of range">; 21506f32e7eSjoergdef ext_string_too_long : Extension<"string literal of length %0 exceeds " 21606f32e7eSjoerg "maximum length %1 that %select{C90|ISO C99|C++}2 compilers are required to " 21706f32e7eSjoerg "support">, InGroup<OverlengthStrings>; 21806f32e7eSjoergdef err_character_too_large : Error< 21906f32e7eSjoerg "character too large for enclosing character literal type">; 22006f32e7eSjoergdef warn_c99_compat_unicode_literal : Warning< 22106f32e7eSjoerg "unicode literals are incompatible with C99">, 22206f32e7eSjoerg InGroup<C99Compat>, DefaultIgnore; 22306f32e7eSjoergdef warn_cxx98_compat_unicode_literal : Warning< 22406f32e7eSjoerg "unicode literals are incompatible with C++98">, 22506f32e7eSjoerg InGroup<CXX98Compat>, DefaultIgnore; 22606f32e7eSjoergdef warn_cxx14_compat_u8_character_literal : Warning< 22706f32e7eSjoerg "unicode literals are incompatible with C++ standards before C++17">, 22806f32e7eSjoerg InGroup<CXXPre17Compat>, DefaultIgnore; 22906f32e7eSjoergdef warn_cxx11_compat_user_defined_literal : Warning< 23006f32e7eSjoerg "identifier after literal will be treated as a user-defined literal suffix " 23106f32e7eSjoerg "in C++11">, InGroup<CXX11Compat>, DefaultIgnore; 23206f32e7eSjoergdef warn_cxx11_compat_reserved_user_defined_literal : Warning< 23306f32e7eSjoerg "identifier after literal will be treated as a reserved user-defined literal " 23406f32e7eSjoerg "suffix in C++11">, 23506f32e7eSjoerg InGroup<CXX11CompatReservedUserDefinedLiteral>, DefaultIgnore; 23606f32e7eSjoergdef ext_reserved_user_defined_literal : ExtWarn< 23706f32e7eSjoerg "invalid suffix on literal; C++11 requires a space between literal and " 23806f32e7eSjoerg "identifier">, InGroup<ReservedUserDefinedLiteral>, DefaultError; 23906f32e7eSjoergdef ext_ms_reserved_user_defined_literal : ExtWarn< 24006f32e7eSjoerg "invalid suffix on literal; C++11 requires a space between literal and " 24106f32e7eSjoerg "identifier">, InGroup<ReservedUserDefinedLiteral>; 24206f32e7eSjoergdef err_unsupported_string_concat : Error< 24306f32e7eSjoerg "unsupported non-standard concatenation of string literals">; 24406f32e7eSjoergdef err_string_concat_mixed_suffix : Error< 24506f32e7eSjoerg "differing user-defined suffixes ('%0' and '%1') in string literal " 24606f32e7eSjoerg "concatenation">; 24706f32e7eSjoergdef err_pp_invalid_udl : Error< 24806f32e7eSjoerg "%select{character|integer}0 literal with user-defined suffix " 24906f32e7eSjoerg "cannot be used in preprocessor constant expression">; 25006f32e7eSjoergdef err_bad_string_encoding : Error< 25106f32e7eSjoerg "illegal character encoding in string literal">; 25206f32e7eSjoergdef warn_bad_string_encoding : ExtWarn< 25306f32e7eSjoerg "illegal character encoding in string literal">, 25406f32e7eSjoerg InGroup<InvalidSourceEncoding>; 25506f32e7eSjoergdef err_bad_character_encoding : Error< 25606f32e7eSjoerg "illegal character encoding in character literal">; 25706f32e7eSjoergdef warn_bad_character_encoding : ExtWarn< 25806f32e7eSjoerg "illegal character encoding in character literal">, 25906f32e7eSjoerg InGroup<InvalidSourceEncoding>; 26006f32e7eSjoergdef err_lexing_string : Error<"failure when lexing a string">; 26106f32e7eSjoergdef err_placeholder_in_source : Error<"editor placeholder in source file">; 26206f32e7eSjoerg 26306f32e7eSjoerg//===----------------------------------------------------------------------===// 26406f32e7eSjoerg// Preprocessor Diagnostics 26506f32e7eSjoerg//===----------------------------------------------------------------------===// 26606f32e7eSjoerg 26706f32e7eSjoerglet CategoryName = "User-Defined Issue" in { 26806f32e7eSjoergdef pp_hash_warning : Warning<"%0">, 26906f32e7eSjoerg InGroup<PoundWarning>, ShowInSystemHeader; 27006f32e7eSjoergdef err_pp_hash_error : Error<"%0">; 27106f32e7eSjoerg} 27206f32e7eSjoerg 27306f32e7eSjoergdef pp_include_next_in_primary : Warning< 27406f32e7eSjoerg "#include_next in primary source file; " 27506f32e7eSjoerg "will search from start of include path">, 27606f32e7eSjoerg InGroup<DiagGroup<"include-next-outside-header">>; 27706f32e7eSjoergdef pp_include_macros_out_of_predefines : Error< 27806f32e7eSjoerg "the #__include_macros directive is only for internal use by -imacros">; 27906f32e7eSjoergdef pp_include_next_absolute_path : Warning< 28006f32e7eSjoerg "#include_next in file found relative to primary source file or found by " 28106f32e7eSjoerg "absolute path; will search from start of include path">, 28206f32e7eSjoerg InGroup<DiagGroup<"include-next-absolute-path">>; 28306f32e7eSjoergdef ext_c99_whitespace_required_after_macro_name : ExtWarn< 28406f32e7eSjoerg "ISO C99 requires whitespace after the macro name">, InGroup<C99>; 28506f32e7eSjoergdef ext_missing_whitespace_after_macro_name : ExtWarn< 28606f32e7eSjoerg "whitespace required after macro name">; 28706f32e7eSjoergdef warn_missing_whitespace_after_macro_name : Warning< 28806f32e7eSjoerg "whitespace recommended after macro name">; 28906f32e7eSjoerg 29006f32e7eSjoergclass NonportablePath : Warning< 29106f32e7eSjoerg "non-portable path to file '%0'; specified path differs in case from file" 29206f32e7eSjoerg " name on disk">; 29306f32e7eSjoergdef pp_nonportable_path : NonportablePath, 29406f32e7eSjoerg InGroup<DiagGroup<"nonportable-include-path">>; 29506f32e7eSjoergdef pp_nonportable_system_path : NonportablePath, DefaultIgnore, 29606f32e7eSjoerg InGroup<DiagGroup<"nonportable-system-include-path">>; 29706f32e7eSjoerg 29806f32e7eSjoergdef pp_pragma_once_in_main_file : Warning<"#pragma once in main file">, 29906f32e7eSjoerg InGroup<DiagGroup<"pragma-once-outside-header">>; 30006f32e7eSjoergdef pp_pragma_sysheader_in_main_file : Warning< 30106f32e7eSjoerg "#pragma system_header ignored in main file">, 30206f32e7eSjoerg InGroup<DiagGroup<"pragma-system-header-outside-header">>; 30306f32e7eSjoergdef pp_poisoning_existing_macro : Warning<"poisoning existing macro">; 30406f32e7eSjoergdef pp_out_of_date_dependency : Warning< 30506f32e7eSjoerg "current file is older than dependency %0">; 30606f32e7eSjoergdef ext_pp_undef_builtin_macro : ExtWarn<"undefining builtin macro">, 30706f32e7eSjoerg InGroup<BuiltinMacroRedefined>; 30806f32e7eSjoergdef ext_pp_redef_builtin_macro : ExtWarn<"redefining builtin macro">, 30906f32e7eSjoerg InGroup<BuiltinMacroRedefined>; 31006f32e7eSjoergdef pp_disabled_macro_expansion : Warning< 31106f32e7eSjoerg "disabled expansion of recursive macro">, DefaultIgnore, 31206f32e7eSjoerg InGroup<DiagGroup<"disabled-macro-expansion">>; 31306f32e7eSjoergdef pp_macro_not_used : Warning<"macro is not used">, DefaultIgnore, 31406f32e7eSjoerg InGroup<DiagGroup<"unused-macros">>; 31506f32e7eSjoergdef warn_pp_undef_identifier : Warning< 31606f32e7eSjoerg "%0 is not defined, evaluates to 0">, 31706f32e7eSjoerg InGroup<DiagGroup<"undef">>, DefaultIgnore; 318*13fbcb42Sjoergdef warn_pp_undef_prefix : Warning< 319*13fbcb42Sjoerg "%0 is not defined, evaluates to 0">, 320*13fbcb42Sjoerg InGroup<DiagGroup<"undef-prefix">>, DefaultIgnore; 32106f32e7eSjoergdef warn_pp_ambiguous_macro : Warning< 32206f32e7eSjoerg "ambiguous expansion of macro %0">, InGroup<AmbiguousMacro>; 32306f32e7eSjoergdef note_pp_ambiguous_macro_chosen : Note< 32406f32e7eSjoerg "expanding this definition of %0">; 32506f32e7eSjoergdef note_pp_ambiguous_macro_other : Note< 32606f32e7eSjoerg "other definition of %0">; 32706f32e7eSjoergdef warn_pp_macro_hides_keyword : Extension< 32806f32e7eSjoerg "keyword is hidden by macro definition">, InGroup<KeywordAsMacro>; 32906f32e7eSjoergdef warn_pp_macro_is_reserved_id : Warning< 33006f32e7eSjoerg "macro name is a reserved identifier">, DefaultIgnore, 33106f32e7eSjoerg InGroup<ReservedIdAsMacro>; 33206f32e7eSjoergdef warn_pp_objc_macro_redef_ignored : Warning< 33306f32e7eSjoerg "ignoring redefinition of Objective-C qualifier macro">, 33406f32e7eSjoerg InGroup<DiagGroup<"objc-macro-redefinition">>; 33506f32e7eSjoerg 33606f32e7eSjoergdef pp_invalid_string_literal : Warning< 33706f32e7eSjoerg "invalid string literal, ignoring final '\\'">; 33806f32e7eSjoergdef warn_pp_expr_overflow : Warning< 33906f32e7eSjoerg "integer overflow in preprocessor expression">; 34006f32e7eSjoergdef warn_pp_convert_to_positive : Warning< 34106f32e7eSjoerg "%select{left|right}0 side of operator converted from negative value to " 34206f32e7eSjoerg "unsigned: %1">; 34306f32e7eSjoerg 34406f32e7eSjoergdef ext_pp_import_directive : Extension<"#import is a language extension">, 34506f32e7eSjoerg InGroup<DiagGroup<"import-preprocessor-directive-pedantic">>; 34606f32e7eSjoergdef err_pp_import_directive_ms : Error< 34706f32e7eSjoerg "#import of type library is an unsupported Microsoft feature">; 34806f32e7eSjoergdef ext_pp_include_search_ms : ExtWarn< 34906f32e7eSjoerg "#include resolved using non-portable Microsoft search rules as: %0">, 35006f32e7eSjoerg InGroup<MicrosoftInclude>; 35106f32e7eSjoerg 35206f32e7eSjoergdef ext_pp_ident_directive : Extension<"#ident is a language extension">; 35306f32e7eSjoergdef ext_pp_include_next_directive : Extension< 35406f32e7eSjoerg "#include_next is a language extension">, InGroup<GNUIncludeNext>; 35506f32e7eSjoergdef ext_pp_warning_directive : Extension<"#warning is a language extension">; 35606f32e7eSjoerg 35706f32e7eSjoergdef ext_pp_extra_tokens_at_eol : ExtWarn< 35806f32e7eSjoerg "extra tokens at end of #%0 directive">, InGroup<ExtraTokens>; 35906f32e7eSjoerg 36006f32e7eSjoergdef ext_pp_comma_expr : Extension<"comma operator in operand of #if">; 36106f32e7eSjoergdef ext_pp_bad_vaargs_use : Extension< 36206f32e7eSjoerg "__VA_ARGS__ can only appear in the expansion of a C99 variadic macro">; 36306f32e7eSjoerg 36406f32e7eSjoergdef ext_pp_bad_vaopt_use 36506f32e7eSjoerg : ExtWarn< 36606f32e7eSjoerg "__VA_OPT__ can only appear in the expansion of a variadic macro">, 36706f32e7eSjoerg InGroup<VariadicMacros>; 36806f32e7eSjoerg 36906f32e7eSjoergdef err_pp_missing_lparen_in_vaopt_use : Error< 37006f32e7eSjoerg "missing '(' following __VA_OPT__">; 37106f32e7eSjoergdef err_pp_vaopt_nested_use : Error< 37206f32e7eSjoerg "__VA_OPT__ cannot be nested within its own replacement tokens">; 37306f32e7eSjoerg 37406f32e7eSjoergdef err_vaopt_paste_at_start : Error< 37506f32e7eSjoerg "'##' cannot appear at start of __VA_OPT__ argument">; 37606f32e7eSjoerg 37706f32e7eSjoergdef err_vaopt_paste_at_end 37806f32e7eSjoerg : Error<"'##' cannot appear at end of __VA_OPT__ argument">; 37906f32e7eSjoerg 38006f32e7eSjoergdef ext_pp_macro_redef : ExtWarn<"%0 macro redefined">, InGroup<MacroRedefined>; 38106f32e7eSjoergdef ext_variadic_macro : Extension<"variadic macros are a C99 feature">, 38206f32e7eSjoerg InGroup<VariadicMacros>; 38306f32e7eSjoergdef warn_cxx98_compat_variadic_macro : Warning< 38406f32e7eSjoerg "variadic macros are incompatible with C++98">, 38506f32e7eSjoerg InGroup<CXX98CompatPedantic>, DefaultIgnore; 38606f32e7eSjoergdef ext_named_variadic_macro : Extension< 38706f32e7eSjoerg "named variadic macros are a GNU extension">, InGroup<VariadicMacros>; 38806f32e7eSjoergdef err_embedded_directive : Error< 38906f32e7eSjoerg "embedding a #%0 directive within macro arguments is not supported">; 39006f32e7eSjoergdef ext_embedded_directive : Extension< 39106f32e7eSjoerg "embedding a directive within macro arguments has undefined behavior">, 39206f32e7eSjoerg InGroup<DiagGroup<"embedded-directive">>; 39306f32e7eSjoergdef ext_missing_varargs_arg : Extension< 39406f32e7eSjoerg "must specify at least one argument for '...' parameter of variadic macro">, 39506f32e7eSjoerg InGroup<GNUZeroVariadicMacroArguments>; 39606f32e7eSjoergdef ext_empty_fnmacro_arg : Extension< 39706f32e7eSjoerg "empty macro arguments are a C99 feature">, InGroup<C99>; 39806f32e7eSjoergdef warn_cxx98_compat_empty_fnmacro_arg : Warning< 39906f32e7eSjoerg "empty macro arguments are incompatible with C++98">, 40006f32e7eSjoerg InGroup<CXX98CompatPedantic>, DefaultIgnore; 40106f32e7eSjoergdef note_macro_here : Note<"macro %0 defined here">; 40206f32e7eSjoergdef note_macro_expansion_here : Note<"expansion of macro %0 requested here">; 40306f32e7eSjoerg 40406f32e7eSjoergdef ext_pp_opencl_variadic_macros : Extension< 40506f32e7eSjoerg "variadic macros are a Clang extension in OpenCL">; 40606f32e7eSjoerg 40706f32e7eSjoergdef err_pp_invalid_directive : Error<"invalid preprocessing directive">; 40806f32e7eSjoergdef err_pp_directive_required : Error< 40906f32e7eSjoerg "%0 must be used within a preprocessing directive">; 41006f32e7eSjoergdef err_pp_file_not_found : Error<"'%0' file not found">, DefaultFatal; 41106f32e7eSjoergdef err_pp_through_header_not_found : Error< 41206f32e7eSjoerg "'%0' required for precompiled header not found">, DefaultFatal; 41306f32e7eSjoergdef err_pp_through_header_not_seen : Error< 41406f32e7eSjoerg "#include of '%0' not seen while attempting to " 41506f32e7eSjoerg "%select{create|use}1 precompiled header">, DefaultFatal; 41606f32e7eSjoergdef err_pp_pragma_hdrstop_not_seen : Error< 41706f32e7eSjoerg "#pragma hdrstop not seen while attempting to use precompiled header">, 41806f32e7eSjoerg DefaultFatal; 41906f32e7eSjoergdef warn_pp_macro_def_mismatch_with_pch : Warning< 42006f32e7eSjoerg "definition of macro %0 does not match definition in precompiled header">, 42106f32e7eSjoerg InGroup<ClangClPch>; 42206f32e7eSjoergdef warn_pp_hdrstop_filename_ignored : Warning< 42306f32e7eSjoerg "#pragma hdrstop filename not supported, " 42406f32e7eSjoerg "/Fp can be used to specify precompiled header filename">, 42506f32e7eSjoerg InGroup<ClangClPch>; 42606f32e7eSjoergdef err_pp_file_not_found_angled_include_not_fatal : Error< 42706f32e7eSjoerg "'%0' file not found with <angled> %select{include|import}1; " 42806f32e7eSjoerg "use \"quotes\" instead">; 42906f32e7eSjoergdef err_pp_file_not_found_typo_not_fatal 43006f32e7eSjoerg : Error<"'%0' file not found, did you mean '%1'?">; 43106f32e7eSjoergdef note_pp_framework_without_header : Note< 43206f32e7eSjoerg "did not find header '%0' in framework '%1' (loaded from '%2')">; 43306f32e7eSjoergdef err_pp_error_opening_file : Error< 43406f32e7eSjoerg "error opening file '%0': %1">, DefaultFatal; 43506f32e7eSjoergdef err_pp_including_mainfile_in_preamble : Error< 43606f32e7eSjoerg "main file cannot be included recursively when building a preamble">; 43706f32e7eSjoergdef err_pp_empty_filename : Error<"empty filename">; 43806f32e7eSjoergdef err_pp_include_too_deep : Error<"#include nested too deeply">; 43906f32e7eSjoergdef err_pp_expects_filename : Error<"expected \"FILENAME\" or <FILENAME>">; 44006f32e7eSjoergdef err_pp_macro_not_identifier : Error<"macro name must be an identifier">; 44106f32e7eSjoergdef err_pp_missing_macro_name : Error<"macro name missing">; 44206f32e7eSjoergdef err_pp_missing_rparen_in_macro_def : Error< 44306f32e7eSjoerg "missing ')' in macro parameter list">; 44406f32e7eSjoergdef err_pp_invalid_tok_in_arg_list : Error< 44506f32e7eSjoerg "invalid token in macro parameter list">; 44606f32e7eSjoergdef err_pp_expected_ident_in_arg_list : Error< 44706f32e7eSjoerg "expected identifier in macro parameter list">; 44806f32e7eSjoergdef err_pp_expected_comma_in_arg_list : Error< 44906f32e7eSjoerg "expected comma in macro parameter list">; 45006f32e7eSjoergdef err_pp_duplicate_name_in_arg_list : Error< 45106f32e7eSjoerg "duplicate macro parameter name %0">; 45206f32e7eSjoergdef err_pp_stringize_not_parameter : Error< 45306f32e7eSjoerg "'%select{#|#@}0' is not followed by a macro parameter">; 45406f32e7eSjoergdef err_pp_malformed_ident : Error<"invalid #ident directive">; 45506f32e7eSjoergdef err_pp_unterminated_conditional : Error< 45606f32e7eSjoerg "unterminated conditional directive">; 45706f32e7eSjoergdef pp_err_else_after_else : Error<"#else after #else">; 45806f32e7eSjoergdef pp_err_elif_after_else : Error<"#elif after #else">; 45906f32e7eSjoergdef pp_err_else_without_if : Error<"#else without #if">; 46006f32e7eSjoergdef pp_err_elif_without_if : Error<"#elif without #if">; 46106f32e7eSjoergdef err_pp_endif_without_if : Error<"#endif without #if">; 46206f32e7eSjoergdef err_pp_expected_value_in_expr : Error<"expected value in expression">; 46306f32e7eSjoergdef err_pp_expected_rparen : Error<"expected ')' in preprocessor expression">; 46406f32e7eSjoergdef err_pp_expected_eol : Error< 46506f32e7eSjoerg "expected end of line in preprocessor expression">; 46606f32e7eSjoergdef err_pp_expected_after : Error<"missing %1 after %0">; 46706f32e7eSjoergdef err_pp_nested_paren : Error<"nested parentheses not permitted in %0">; 46806f32e7eSjoergdef err_pp_colon_without_question : Error<"':' without preceding '?'">; 46906f32e7eSjoergdef err_pp_division_by_zero : Error< 47006f32e7eSjoerg "division by zero in preprocessor expression">; 47106f32e7eSjoergdef err_pp_remainder_by_zero : Error< 47206f32e7eSjoerg "remainder by zero in preprocessor expression">; 47306f32e7eSjoergdef err_pp_expr_bad_token_binop : Error< 47406f32e7eSjoerg "token is not a valid binary operator in a preprocessor subexpression">; 47506f32e7eSjoergdef err_pp_expr_bad_token_lparen : Error< 47606f32e7eSjoerg "function-like macro %0 is not defined">; 47706f32e7eSjoergdef err_pp_expr_bad_token_start_expr : Error< 47806f32e7eSjoerg "invalid token at start of a preprocessor expression">; 47906f32e7eSjoergdef err_pp_invalid_poison : Error<"can only poison identifier tokens">; 48006f32e7eSjoergdef err_pp_used_poisoned_id : Error<"attempt to use a poisoned identifier">; 48106f32e7eSjoerg 48206f32e7eSjoergdef err_feature_check_malformed : Error< 48306f32e7eSjoerg "builtin feature check macro requires a parenthesized identifier">; 48406f32e7eSjoerg 48506f32e7eSjoergdef warn_has_warning_invalid_option : 48606f32e7eSjoerg ExtWarn<"__has_warning expected option name (e.g. \"-Wundef\")">, 48706f32e7eSjoerg InGroup<MalformedWarningCheck>; 48806f32e7eSjoerg 48906f32e7eSjoergdef err_pp_identifier_arg_not_identifier : Error< 49006f32e7eSjoerg "cannot convert %0 token to an identifier">; 49106f32e7eSjoerg 49206f32e7eSjoergdef warn_pragma_include_alias_mismatch_angle : 49306f32e7eSjoerg ExtWarn<"angle-bracketed include <%0> cannot be aliased to double-quoted " 49406f32e7eSjoerg "include \"%1\"">, InGroup<UnknownPragmas>; 49506f32e7eSjoergdef warn_pragma_include_alias_mismatch_quote : 49606f32e7eSjoerg ExtWarn<"double-quoted include \"%0\" cannot be aliased to angle-bracketed " 49706f32e7eSjoerg "include <%1>">, InGroup<UnknownPragmas>; 49806f32e7eSjoergdef warn_pragma_include_alias_expected : 49906f32e7eSjoerg ExtWarn<"pragma include_alias expected '%0'">, 50006f32e7eSjoerg InGroup<UnknownPragmas>; 50106f32e7eSjoergdef warn_pragma_include_alias_expected_filename : 50206f32e7eSjoerg ExtWarn<"pragma include_alias expected include filename">, 50306f32e7eSjoerg InGroup<UnknownPragmas>; 50406f32e7eSjoerg 50506f32e7eSjoerg// - #pragma warning(...) 50606f32e7eSjoergdef warn_pragma_warning_expected : 50706f32e7eSjoerg ExtWarn<"#pragma warning expected '%0'">, 50806f32e7eSjoerg InGroup<UnknownPragmas>; 50906f32e7eSjoergdef warn_pragma_warning_spec_invalid : 51006f32e7eSjoerg ExtWarn<"#pragma warning expected 'push', 'pop', 'default', 'disable'," 51106f32e7eSjoerg " 'error', 'once', 'suppress', 1, 2, 3, or 4">, 51206f32e7eSjoerg InGroup<UnknownPragmas>; 51306f32e7eSjoergdef warn_pragma_warning_push_level : 51406f32e7eSjoerg ExtWarn<"#pragma warning(push, level) requires a level between 0 and 4">, 51506f32e7eSjoerg InGroup<UnknownPragmas>; 51606f32e7eSjoergdef warn_pragma_warning_expected_number : 51706f32e7eSjoerg ExtWarn<"#pragma warning expected a warning number">, 51806f32e7eSjoerg InGroup<UnknownPragmas>; 51906f32e7eSjoerg 52006f32e7eSjoerg// - #pragma execution_character_set(...) 52106f32e7eSjoergdef warn_pragma_exec_charset_expected : 52206f32e7eSjoerg ExtWarn<"#pragma execution_character_set expected '%0'">, 52306f32e7eSjoerg InGroup<UnknownPragmas>; 52406f32e7eSjoergdef warn_pragma_exec_charset_spec_invalid : 52506f32e7eSjoerg ExtWarn<"#pragma execution_character_set expected 'push' or 'pop'">, 52606f32e7eSjoerg InGroup<UnknownPragmas>; 52706f32e7eSjoergdef warn_pragma_exec_charset_push_invalid : 52806f32e7eSjoerg ExtWarn<"#pragma execution_character_set invalid value '%0', only 'UTF-8' is supported">, 52906f32e7eSjoerg InGroup<UnknownPragmas>; 53006f32e7eSjoerg 53106f32e7eSjoergdef err__Pragma_malformed : Error< 53206f32e7eSjoerg "_Pragma takes a parenthesized string literal">; 53306f32e7eSjoergdef err_pragma_message_malformed : Error< 53406f32e7eSjoerg "pragma %select{message|warning|error}0 requires parenthesized string">; 53506f32e7eSjoergdef err_pragma_push_pop_macro_malformed : Error< 53606f32e7eSjoerg "pragma %0 requires a parenthesized string">; 53706f32e7eSjoergdef warn_pragma_pop_macro_no_push : Warning< 53806f32e7eSjoerg "pragma pop_macro could not pop '%0', no matching push_macro">, 53906f32e7eSjoerg InGroup<IgnoredPragmas>; 54006f32e7eSjoergdef warn_pragma_message : Warning<"%0">, 54106f32e7eSjoerg InGroup<PoundPragmaMessage>, DefaultWarnNoWerror; 54206f32e7eSjoergdef err_pragma_message : Error<"%0">; 54306f32e7eSjoergdef warn_pragma_ignored : Warning<"unknown pragma ignored">, 54406f32e7eSjoerg InGroup<UnknownPragmas>, DefaultIgnore; 54506f32e7eSjoergdef ext_on_off_switch_syntax : 54606f32e7eSjoerg ExtWarn<"expected 'ON' or 'OFF' or 'DEFAULT' in pragma">, 54706f32e7eSjoerg InGroup<UnknownPragmas>; 54806f32e7eSjoergdef ext_pragma_syntax_eod : 54906f32e7eSjoerg ExtWarn<"expected end of directive in pragma">, 55006f32e7eSjoerg InGroup<UnknownPragmas>; 55106f32e7eSjoergdef warn_pragma_diagnostic_invalid : 55206f32e7eSjoerg ExtWarn<"pragma diagnostic expected 'error', 'warning', 'ignored', 'fatal'," 55306f32e7eSjoerg " 'push', or 'pop'">, 55406f32e7eSjoerg InGroup<UnknownPragmas>; 55506f32e7eSjoergdef warn_pragma_diagnostic_cannot_pop : 55606f32e7eSjoerg ExtWarn<"pragma diagnostic pop could not pop, no matching push">, 55706f32e7eSjoerg InGroup<UnknownPragmas>; 55806f32e7eSjoergdef warn_pragma_diagnostic_invalid_option : 55906f32e7eSjoerg ExtWarn<"pragma diagnostic expected option name (e.g. \"-Wundef\")">, 56006f32e7eSjoerg InGroup<UnknownPragmas>; 56106f32e7eSjoergdef warn_pragma_diagnostic_invalid_token : 56206f32e7eSjoerg ExtWarn<"unexpected token in pragma diagnostic">, 56306f32e7eSjoerg InGroup<UnknownPragmas>; 56406f32e7eSjoergdef warn_pragma_diagnostic_unknown_warning : 56506f32e7eSjoerg ExtWarn<"unknown warning group '%0', ignored">, 56606f32e7eSjoerg InGroup<UnknownWarningOption>; 56706f32e7eSjoerg// - #pragma __debug 56806f32e7eSjoergdef warn_pragma_debug_unexpected_command : Warning< 56906f32e7eSjoerg "unexpected debug command '%0'">, InGroup<IgnoredPragmas>; 57006f32e7eSjoergdef warn_pragma_debug_missing_argument : Warning< 57106f32e7eSjoerg "missing argument to debug command '%0'">, InGroup<IgnoredPragmas>; 57206f32e7eSjoergdef warn_pragma_debug_unknown_module : Warning< 57306f32e7eSjoerg "unknown module '%0'">, InGroup<IgnoredPragmas>; 57406f32e7eSjoerg// #pragma module 57506f32e7eSjoergdef err_pp_expected_module_name : Error< 57606f32e7eSjoerg "expected %select{identifier after '.' in |}0module name">; 57706f32e7eSjoergdef err_pp_module_begin_wrong_module : Error< 57806f32e7eSjoerg "must specify '-fmodule-name=%0' to enter %select{|submodule of }1" 57906f32e7eSjoerg "this module%select{ (current module is %3)|}2">; 58006f32e7eSjoergdef err_pp_module_begin_no_module_map : Error< 58106f32e7eSjoerg "no module map available for module %0">; 58206f32e7eSjoergdef err_pp_module_begin_no_submodule : Error< 58306f32e7eSjoerg "submodule %0.%1 not declared in module map">; 58406f32e7eSjoergdef err_pp_module_begin_without_module_end : Error< 58506f32e7eSjoerg "no matching '#pragma clang module end' for this " 58606f32e7eSjoerg "'#pragma clang module begin'">; 58706f32e7eSjoergdef err_pp_module_end_without_module_begin : Error< 58806f32e7eSjoerg "no matching '#pragma clang module begin' for this " 58906f32e7eSjoerg "'#pragma clang module end'">; 59006f32e7eSjoergdef note_pp_module_begin_here : Note< 59106f32e7eSjoerg "entering module '%0' due to this pragma">; 59206f32e7eSjoergdef err_pp_module_build_missing_end : Error< 59306f32e7eSjoerg "no matching '#pragma clang module endbuild' for this '#pragma clang module build'">; 59406f32e7eSjoerg 59506f32e7eSjoergdef err_defined_macro_name : Error<"'defined' cannot be used as a macro name">; 59606f32e7eSjoergdef err_paste_at_start : Error< 59706f32e7eSjoerg "'##' cannot appear at start of macro expansion">; 59806f32e7eSjoergdef err_paste_at_end : Error<"'##' cannot appear at end of macro expansion">; 59906f32e7eSjoergdef ext_paste_comma : Extension< 60006f32e7eSjoerg "token pasting of ',' and __VA_ARGS__ is a GNU extension">, InGroup<GNUZeroVariadicMacroArguments>; 60106f32e7eSjoergdef err_unterm_macro_invoc : Error< 60206f32e7eSjoerg "unterminated function-like macro invocation">; 60306f32e7eSjoergdef err_too_many_args_in_macro_invoc : Error< 60406f32e7eSjoerg "too many arguments provided to function-like macro invocation">; 60506f32e7eSjoergdef note_suggest_parens_for_macro : Note< 60606f32e7eSjoerg "parentheses are required around macro argument containing braced " 60706f32e7eSjoerg "initializer list">; 60806f32e7eSjoergdef note_init_list_at_beginning_of_macro_argument : Note< 60906f32e7eSjoerg "cannot use initializer list at the beginning of a macro argument">; 61006f32e7eSjoergdef err_too_few_args_in_macro_invoc : Error< 61106f32e7eSjoerg "too few arguments provided to function-like macro invocation">; 61206f32e7eSjoergdef err_pp_bad_paste : Error< 61306f32e7eSjoerg "pasting formed '%0', an invalid preprocessing token">; 61406f32e7eSjoergdef ext_pp_bad_paste_ms : ExtWarn< 61506f32e7eSjoerg "pasting formed '%0', an invalid preprocessing token">, DefaultError, 61606f32e7eSjoerg InGroup<DiagGroup<"invalid-token-paste">>; 61706f32e7eSjoergdef err_pp_operator_used_as_macro_name : Error< 61806f32e7eSjoerg "C++ operator %0 (aka %1) used as a macro name">; 61906f32e7eSjoergdef ext_pp_operator_used_as_macro_name : Extension< 62006f32e7eSjoerg err_pp_operator_used_as_macro_name.Text>, InGroup<MicrosoftCppMacro>; 62106f32e7eSjoergdef err_pp_illegal_floating_literal : Error< 62206f32e7eSjoerg "floating point literal in preprocessor expression">; 62306f32e7eSjoergdef err_pp_line_requires_integer : Error< 62406f32e7eSjoerg "#line directive requires a positive integer argument">; 62506f32e7eSjoergdef ext_pp_line_zero : Extension< 62606f32e7eSjoerg "#line directive with zero argument is a GNU extension">, 62706f32e7eSjoerg InGroup<GNUZeroLineDirective>; 62806f32e7eSjoergdef err_pp_line_invalid_filename : Error< 62906f32e7eSjoerg "invalid filename for #line directive">; 63006f32e7eSjoergdef warn_pp_line_decimal : Warning< 63106f32e7eSjoerg "%select{#line|GNU line marker}0 directive interprets number as decimal, not octal">; 63206f32e7eSjoergdef err_pp_line_digit_sequence : Error< 63306f32e7eSjoerg "%select{#line|GNU line marker}0 directive requires a simple digit sequence">; 63406f32e7eSjoergdef err_pp_linemarker_requires_integer : Error< 63506f32e7eSjoerg "line marker directive requires a positive integer argument">; 63606f32e7eSjoergdef err_pp_linemarker_invalid_filename : Error< 63706f32e7eSjoerg "invalid filename for line marker directive">; 63806f32e7eSjoergdef err_pp_linemarker_invalid_flag : Error< 63906f32e7eSjoerg "invalid flag line marker directive">; 64006f32e7eSjoergdef err_pp_linemarker_invalid_pop : Error< 64106f32e7eSjoerg "invalid line marker flag '2': cannot pop empty include stack">; 64206f32e7eSjoergdef ext_pp_line_too_big : Extension< 64306f32e7eSjoerg "C requires #line number to be less than %0, allowed as extension">; 64406f32e7eSjoergdef warn_cxx98_compat_pp_line_too_big : Warning< 64506f32e7eSjoerg "#line number greater than 32767 is incompatible with C++98">, 64606f32e7eSjoerg InGroup<CXX98CompatPedantic>, DefaultIgnore; 64706f32e7eSjoerg 64806f32e7eSjoergdef err_pp_visibility_non_macro : Error<"no macro named %0">; 64906f32e7eSjoerg 65006f32e7eSjoergdef err_pp_arc_cf_code_audited_syntax : Error<"expected 'begin' or 'end'">; 65106f32e7eSjoergdef err_pp_double_begin_of_arc_cf_code_audited : Error< 65206f32e7eSjoerg "already inside '#pragma clang arc_cf_code_audited'">; 65306f32e7eSjoergdef err_pp_unmatched_end_of_arc_cf_code_audited : Error< 65406f32e7eSjoerg "not currently inside '#pragma clang arc_cf_code_audited'">; 65506f32e7eSjoergdef err_pp_include_in_arc_cf_code_audited : Error< 65606f32e7eSjoerg "cannot %select{#include files|import headers}0 " 65706f32e7eSjoerg "inside '#pragma clang arc_cf_code_audited'">; 65806f32e7eSjoergdef err_pp_eof_in_arc_cf_code_audited : Error< 65906f32e7eSjoerg "'#pragma clang arc_cf_code_audited' was not ended within this file">; 66006f32e7eSjoerg 66106f32e7eSjoergdef warn_pp_date_time : Warning< 66206f32e7eSjoerg "expansion of date or time macro is not reproducible">, 66306f32e7eSjoerg ShowInSystemHeader, DefaultIgnore, InGroup<DiagGroup<"date-time">>; 66406f32e7eSjoerg 66506f32e7eSjoerg// Module map parsing 66606f32e7eSjoergdef err_mmap_unknown_token : Error<"skipping stray token">; 66706f32e7eSjoergdef err_mmap_expected_module : Error<"expected module declaration">; 66806f32e7eSjoergdef err_mmap_expected_module_name : Error<"expected module name">; 66906f32e7eSjoergdef err_mmap_expected_lbrace : Error<"expected '{' to start module '%0'">; 67006f32e7eSjoergdef err_mmap_expected_rbrace : Error<"expected '}'">; 67106f32e7eSjoergdef note_mmap_lbrace_match : Note<"to match this '{'">; 67206f32e7eSjoergdef err_mmap_expected_rsquare : Error<"expected ']' to close attribute">; 67306f32e7eSjoergdef note_mmap_lsquare_match : Note<"to match this ']'">; 67406f32e7eSjoergdef err_mmap_expected_member : Error< 67506f32e7eSjoerg "expected umbrella, header, submodule, or module export">; 67606f32e7eSjoergdef err_mmap_expected_header : Error<"expected a header name after '%0'">; 67706f32e7eSjoergdef err_mmap_expected_mmap_file : Error<"expected a module map file name">; 67806f32e7eSjoergdef err_mmap_module_redefinition : Error< 67906f32e7eSjoerg "redefinition of module '%0'">; 68006f32e7eSjoergdef note_mmap_prev_definition : Note<"previously defined here">; 68106f32e7eSjoergdef err_mmap_umbrella_clash : Error< 68206f32e7eSjoerg "umbrella for module '%0' already covers this directory">; 68306f32e7eSjoergdef err_mmap_module_id : Error< 68406f32e7eSjoerg "expected a module name or '*'">; 68506f32e7eSjoergdef err_mmap_expected_library_name : Error< 68606f32e7eSjoerg "expected %select{library|framework}0 name as a string">; 68706f32e7eSjoergdef err_mmap_config_macro_submodule : Error< 68806f32e7eSjoerg "configuration macros are only allowed in top-level modules">; 68906f32e7eSjoergdef err_mmap_use_decl_submodule : Error< 69006f32e7eSjoerg "use declarations are only allowed in top-level modules">; 69106f32e7eSjoergdef err_mmap_expected_config_macro : Error< 69206f32e7eSjoerg "expected configuration macro name after ','">; 69306f32e7eSjoergdef err_mmap_expected_conflicts_comma : Error< 69406f32e7eSjoerg "expected ',' after conflicting module name">; 69506f32e7eSjoergdef err_mmap_expected_conflicts_message : Error< 69606f32e7eSjoerg "expected a message describing the conflict with '%0'">; 69706f32e7eSjoergdef err_mmap_missing_module_unqualified : Error< 69806f32e7eSjoerg "no module named '%0' visible from '%1'">; 69906f32e7eSjoergdef err_mmap_missing_module_qualified : Error< 70006f32e7eSjoerg "no module named '%0' in '%1'">; 701*13fbcb42Sjoergdef err_mmap_missing_parent_module: Error< 702*13fbcb42Sjoerg "no module named '%0' %select{found|in '%2'}1, " 703*13fbcb42Sjoerg "parent module must be defined before the submodule">; 70406f32e7eSjoergdef err_mmap_top_level_inferred_submodule : Error< 70506f32e7eSjoerg "only submodules and framework modules may be inferred with wildcard syntax">; 70606f32e7eSjoergdef err_mmap_inferred_no_umbrella : Error< 70706f32e7eSjoerg "inferred submodules require a module with an umbrella">; 70806f32e7eSjoergdef err_mmap_inferred_framework_submodule : Error< 70906f32e7eSjoerg "inferred submodule cannot be a framework submodule">; 71006f32e7eSjoergdef err_mmap_explicit_inferred_framework : Error< 71106f32e7eSjoerg "inferred framework modules cannot be 'explicit'">; 71206f32e7eSjoergdef err_mmap_missing_exclude_name : Error< 71306f32e7eSjoerg "expected excluded module name">; 71406f32e7eSjoergdef err_mmap_inferred_redef : Error< 71506f32e7eSjoerg "redefinition of inferred submodule">; 71606f32e7eSjoergdef err_mmap_expected_lbrace_wildcard : Error< 71706f32e7eSjoerg "expected '{' to start inferred submodule">; 71806f32e7eSjoergdef err_mmap_expected_inferred_member : Error< 71906f32e7eSjoerg "expected %select{module exclusion with 'exclude'|'export *'}0">; 72006f32e7eSjoergdef err_mmap_expected_export_wildcard : Error< 72106f32e7eSjoerg "only '*' can be exported from an inferred submodule">; 72206f32e7eSjoergdef err_mmap_explicit_top_level : Error< 72306f32e7eSjoerg "'explicit' is not permitted on top-level modules">; 72406f32e7eSjoergdef err_mmap_nested_submodule_id : Error< 72506f32e7eSjoerg "qualified module name can only be used to define modules at the top level">; 72606f32e7eSjoergdef err_mmap_expected_feature : Error<"expected a feature name">; 72706f32e7eSjoergdef err_mmap_expected_attribute : Error<"expected an attribute name">; 72806f32e7eSjoergdef warn_mmap_unknown_attribute : Warning<"unknown attribute '%0'">, 72906f32e7eSjoerg InGroup<IgnoredAttributes>; 73006f32e7eSjoergdef warn_mmap_mismatched_private_submodule : Warning< 73106f32e7eSjoerg "private submodule '%0' in private module map, expected top-level module">, 73206f32e7eSjoerg InGroup<PrivateModule>; 73306f32e7eSjoergdef warn_mmap_mismatched_private_module_name : Warning< 73406f32e7eSjoerg "expected canonical name for private module '%0'">, 73506f32e7eSjoerg InGroup<PrivateModule>; 73606f32e7eSjoergdef note_mmap_rename_top_level_private_module : Note< 73706f32e7eSjoerg "rename '%0' to ensure it can be found by name">; 73806f32e7eSjoergdef warn_mmap_incomplete_framework_module_declaration : Warning< 73906f32e7eSjoerg "skipping '%0' because module declaration of '%1' lacks the 'framework' qualifier">, 74006f32e7eSjoerg InGroup<IncompleteFrameworkModuleDeclaration>; 74106f32e7eSjoergdef note_mmap_add_framework_keyword : Note< 74206f32e7eSjoerg "use 'framework module' to declare module '%0'">; 74306f32e7eSjoerg 74406f32e7eSjoergdef err_mmap_duplicate_header_attribute : Error< 74506f32e7eSjoerg "header attribute '%0' specified multiple times">; 74606f32e7eSjoergdef err_mmap_invalid_header_attribute_value : Error< 74706f32e7eSjoerg "expected integer literal as value for header attribute '%0'">; 74806f32e7eSjoergdef err_mmap_expected_header_attribute : Error< 74906f32e7eSjoerg "expected a header attribute name ('size' or 'mtime')">; 75006f32e7eSjoergdef err_mmap_conflicting_export_as : Error< 75106f32e7eSjoerg "conflicting re-export of module '%0' as '%1' or '%2'">; 75206f32e7eSjoergdef warn_mmap_redundant_export_as : Warning< 75306f32e7eSjoerg "module '%0' already re-exported as '%1'">, 75406f32e7eSjoerg InGroup<PrivateModule>; 75506f32e7eSjoergdef err_mmap_submodule_export_as : Error< 75606f32e7eSjoerg "only top-level modules can be re-exported as public">; 75706f32e7eSjoerg 75806f32e7eSjoergdef warn_quoted_include_in_framework_header : Warning< 75906f32e7eSjoerg "double-quoted include \"%0\" in framework header, " 76006f32e7eSjoerg "expected angle-bracketed instead" 76106f32e7eSjoerg >, InGroup<FrameworkHdrQuotedInclude>, DefaultIgnore; 76206f32e7eSjoergdef warn_framework_include_private_from_public : Warning< 76306f32e7eSjoerg "public framework header includes private framework header '%0'" 76406f32e7eSjoerg >, InGroup<FrameworkIncludePrivateFromPublic>; 76506f32e7eSjoerg 76606f32e7eSjoergdef warn_auto_module_import : Warning< 76706f32e7eSjoerg "treating #%select{include|import|include_next|__include_macros}0 as an " 76806f32e7eSjoerg "import of module '%1'">, InGroup<AutoImport>, DefaultIgnore; 76906f32e7eSjoergdef note_implicit_top_level_module_import_here : Note< 77006f32e7eSjoerg "submodule of top-level module '%0' implicitly imported here">; 77106f32e7eSjoergdef warn_uncovered_module_header : Warning< 77206f32e7eSjoerg "umbrella header for module '%0' does not include header '%1'">, 77306f32e7eSjoerg InGroup<IncompleteUmbrella>; 77406f32e7eSjoergdef warn_mmap_umbrella_dir_not_found : Warning< 77506f32e7eSjoerg "umbrella directory '%0' not found">, 77606f32e7eSjoerg InGroup<IncompleteUmbrella>; 77706f32e7eSjoergdef err_expected_id_building_module : Error< 77806f32e7eSjoerg "expected a module name in '__building_module' expression">; 77906f32e7eSjoergdef warn_use_of_private_header_outside_module : Warning< 78006f32e7eSjoerg "use of private header from outside its module: '%0'">, 78106f32e7eSjoerg InGroup<DiagGroup<"private-header">>, DefaultError; 78206f32e7eSjoergdef err_undeclared_use_of_module : Error< 78306f32e7eSjoerg "module %0 does not depend on a module exporting '%1'">; 78406f32e7eSjoergdef warn_non_modular_include_in_framework_module : Warning< 78506f32e7eSjoerg "include of non-modular header inside framework module '%0': '%1'">, 78606f32e7eSjoerg InGroup<NonModularIncludeInFrameworkModule>, DefaultIgnore; 78706f32e7eSjoergdef warn_non_modular_include_in_module : Warning< 78806f32e7eSjoerg "include of non-modular header inside module '%0': '%1'">, 78906f32e7eSjoerg InGroup<NonModularIncludeInModule>, DefaultIgnore; 79006f32e7eSjoergdef warn_module_conflict : Warning< 79106f32e7eSjoerg "module '%0' conflicts with already-imported module '%1': %2">, 79206f32e7eSjoerg InGroup<ModuleConflict>; 79306f32e7eSjoerg 79406f32e7eSjoerg// C++20 modules 79506f32e7eSjoergdef err_header_import_semi_in_macro : Error< 79606f32e7eSjoerg "semicolon terminating header import declaration cannot be produced " 79706f32e7eSjoerg "by a macro">; 79806f32e7eSjoergdef err_header_import_not_header_unit : Error< 79906f32e7eSjoerg "header file %0 (aka '%1') cannot be imported because " 80006f32e7eSjoerg "it is not known to be a header unit">; 80106f32e7eSjoerg 80206f32e7eSjoergdef warn_header_guard : Warning< 80306f32e7eSjoerg "%0 is used as a header guard here, followed by #define of a different macro">, 80406f32e7eSjoerg InGroup<DiagGroup<"header-guard">>; 80506f32e7eSjoergdef note_header_guard : Note< 80606f32e7eSjoerg "%0 is defined here; did you mean %1?">; 80706f32e7eSjoerg 80806f32e7eSjoergdef warn_defined_in_object_type_macro : Warning< 80906f32e7eSjoerg "macro expansion producing 'defined' has undefined behavior">, 81006f32e7eSjoerg InGroup<ExpansionToDefined>; 81106f32e7eSjoergdef warn_defined_in_function_type_macro : Extension< 81206f32e7eSjoerg "macro expansion producing 'defined' has undefined behavior">, 81306f32e7eSjoerg InGroup<ExpansionToDefined>; 81406f32e7eSjoerg 81506f32e7eSjoerglet CategoryName = "Nullability Issue" in { 81606f32e7eSjoerg 81706f32e7eSjoergdef err_pp_assume_nonnull_syntax : Error<"expected 'begin' or 'end'">; 81806f32e7eSjoergdef err_pp_double_begin_of_assume_nonnull : Error< 81906f32e7eSjoerg "already inside '#pragma clang assume_nonnull'">; 82006f32e7eSjoergdef err_pp_unmatched_end_of_assume_nonnull : Error< 82106f32e7eSjoerg "not currently inside '#pragma clang assume_nonnull'">; 82206f32e7eSjoergdef err_pp_include_in_assume_nonnull : Error< 82306f32e7eSjoerg "cannot %select{#include files|import headers}0 " 82406f32e7eSjoerg "inside '#pragma clang assume_nonnull'">; 82506f32e7eSjoergdef err_pp_eof_in_assume_nonnull : Error< 82606f32e7eSjoerg "'#pragma clang assume_nonnull' was not ended within this file">; 82706f32e7eSjoerg 82806f32e7eSjoerg} 82906f32e7eSjoerg 83006f32e7eSjoerglet CategoryName = "Dependency Directive Source Minimization Issue" in { 83106f32e7eSjoerg 83206f32e7eSjoergdef err_dep_source_minimizer_missing_sema_after_at_import : Error< 83306f32e7eSjoerg "could not find ';' after @import">; 83406f32e7eSjoergdef err_dep_source_minimizer_unexpected_tokens_at_import : Error< 83506f32e7eSjoerg "unexpected extra tokens at end of @import declaration">; 83606f32e7eSjoerg 83706f32e7eSjoerg} 83806f32e7eSjoerg 83906f32e7eSjoerg} 840