]> granicus.if.org Git - clang/commitdiff
Place err_cfstring_literal_not_string_constant and warn_cfstring_truncated under...
authorTed Kremenek <kremenek@apple.com>
Fri, 12 Aug 2011 20:46:54 +0000 (20:46 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 12 Aug 2011 20:46:54 +0000 (20:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137508 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/DiagnosticSemaKinds.td
test/Misc/warning-flags.c

index 898ddfba0c2ce742f409a2b66d00d616e5d8fae0..d8bbc2fca2710d97646d3d790f16358ea6cdbe21 100644 (file)
@@ -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<DiagGroup<"CFString-literal">>;
 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<DiagGroup<"CFString-literal">>;
 
 // Statements.
 def err_continue_not_in_loop : Error<
index 5aa035528b01ddc40b2be2a3059ae277285842c9..18496ada6c86d64e86e1c8006b9cdb0f91f39e5b 100644 (file)
@@ -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