]> granicus.if.org Git - clang/commitdiff
Take 2: merge -Wuninitialized-experimental into -Wuninitialized. Only *must-be-unini...
authorTed Kremenek <kremenek@apple.com>
Tue, 15 Mar 2011 05:22:33 +0000 (05:22 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 15 Mar 2011 05:22:33 +0000 (05:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127670 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/DiagnosticSemaKinds.td
test/Sema/uninit-variables.c
test/SemaCXX/uninit-variables.cpp
test/SemaObjC/uninit-variables.m

index 641fa3f07bd6a563ed28a10ce590d31b8aed40e2..5b58ae8ab972abf068cfa9b04eaec7c17ed1a84e 100644 (file)
@@ -867,7 +867,7 @@ def note_uninit_reference_member : Note<
 def warn_field_is_uninit : Warning<"field is uninitialized when used here">,
   InGroup<Uninitialized>;
 def warn_uninit_var : Warning<"variable %0 is possibly uninitialized when used here">,
-  InGroup<DiagGroup<"uninitialized-experimental">>, DefaultIgnore;
+  InGroup<Uninitialized>, DefaultIgnore;
 def warn_maybe_uninit_var :
   Warning<"variable %0 is possibly uninitialized when used here">,
     InGroup<UninitializedMaybe>, DefaultIgnore;
@@ -875,7 +875,7 @@ def note_uninit_var_def : Note<
   "variable %0 is declared here">;
 def warn_uninit_var_captured_by_block : Warning<
   "variable %0 is possibly uninitialized when captured by block">,
-  InGroup<DiagGroup<"uninitialized-experimental">>, DefaultIgnore;
+  InGroup<Uninitialized>, DefaultIgnore;
 def warn_maybe_uninit_var_captured_by_block : Warning<
   "variable %0 is possibly uninitialized when captured by block">,
   InGroup<UninitializedMaybe>, DefaultIgnore;
index 79dbfa8895343e6b06f6e4431aaa100c5e6ebfcf..f6933e0c4bd6de7c02463ba6a47ab495f7a2937d 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -fsyntax-only -Wuninitialized-experimental -Wuninitialized-maybe -fsyntax-only -fblocks %s -verify
+// RUN: %clang_cc1 -fsyntax-only -Wuninitialized -Wuninitialized-maybe -fsyntax-only -fblocks %s -verify
 
 int test1() {
   int x; // expected-note{{variable 'x' is declared here}} expected-note{{add initialization to silence this warning}}
index 2bc7fb32547b85bf2f3bbee7b5c5dee80fbe226b..a016937925a78421ca8c8926163ee5c042198763 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -fsyntax-only -Wuninitialized-experimental -fsyntax-only %s -verify
+// RUN: %clang_cc1 -fsyntax-only -Wuninitialized -fsyntax-only %s -verify
 
 int test1_aux(int &x);
 int test1() {
index 63c214053b00bfee3ecbbe7aca678f28b2a1bf8d..22d44384b41cefcc5ea47781cb3b26360eabb5df 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -fsyntax-only -Wuninitialized-experimental -fsyntax-only -fblocks %s -verify
+// RUN: %clang_cc1 -fsyntax-only -Wuninitialized -fsyntax-only -fblocks %s -verify
 
 // Duplicated from uninit-variables.c.
 // Test just to ensure the analysis is working.