From: Ted Kremenek Date: Fri, 12 Aug 2011 20:46:54 +0000 (+0000) Subject: Place err_cfstring_literal_not_string_constant and warn_cfstring_truncated under... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=261f5b47323d5afd32da83e71284a6258791f72f;p=clang Place err_cfstring_literal_not_string_constant and warn_cfstring_truncated under "-WCFString" flag. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137508 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Basic/DiagnosticSemaKinds.td b/include/clang/Basic/DiagnosticSemaKinds.td index 898ddfba0c..d8bbc2fca2 100644 --- a/include/clang/Basic/DiagnosticSemaKinds.td +++ b/include/clang/Basic/DiagnosticSemaKinds.td @@ -4297,10 +4297,12 @@ def err_block_returning_array_function : Error< // CFString checking def err_cfstring_literal_not_string_constant : Error< - "CFString literal is not a string constant">; + "CFString literal is not a string constant">, + InGroup>; def warn_cfstring_truncated : Warning< "input conversion stopped due to an input byte that does not " - "belong to the input codeset UTF-8">; + "belong to the input codeset UTF-8">, + InGroup>; // Statements. def err_continue_not_in_loop : Error< diff --git a/test/Misc/warning-flags.c b/test/Misc/warning-flags.c index 5aa035528b..18496ada6c 100644 --- a/test/Misc/warning-flags.c +++ b/test/Misc/warning-flags.c @@ -17,7 +17,7 @@ This test serves two purposes: The list of warnings below should NEVER grow. It should gradually shrink to 0. -CHECK: Warnings without flags (313): +CHECK: Warnings without flags (312): CHECK-NEXT: auto_storage_class CHECK-NEXT: backslash_newline_space CHECK-NEXT: charize_microsoft_ext @@ -158,7 +158,6 @@ CHECK-NEXT: warn_c_kext CHECK-NEXT: warn_call_to_pure_virtual_member_function_from_ctor_dtor CHECK-NEXT: warn_call_wrong_number_of_arguments CHECK-NEXT: warn_case_empty_range -CHECK-NEXT: warn_cfstring_truncated CHECK-NEXT: warn_char_constant_too_large CHECK-NEXT: warn_class_method_not_found CHECK-NEXT: warn_cmdline_missing_macro_defs