]> granicus.if.org Git - clang/commitdiff
Rename -Wuninitialized-maybe to -Wconditional-uninitialized.
authorTed Kremenek <kremenek@apple.com>
Thu, 17 Mar 2011 03:06:07 +0000 (03:06 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 17 Mar 2011 03:06:07 +0000 (03:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127793 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/DiagnosticGroups.td
test/Sema/uninit-variables.c

index 3f23d323bd0b3097f1e9988c36a623e86dfe8676..87c6c2d19e880560c521ea31537ed76e96306b6b 100644 (file)
@@ -137,7 +137,7 @@ def Trigraphs      : DiagGroup<"trigraphs">;
 
 def : DiagGroup<"type-limits">;
 def Uninitialized  : DiagGroup<"uninitialized">;
-def UninitializedMaybe : DiagGroup<"uninitialized-maybe">;
+def UninitializedMaybe : DiagGroup<"conditional-uninitialized">;
 def UnknownPragmas : DiagGroup<"unknown-pragmas">;
 def UnknownAttributes : DiagGroup<"unknown-attributes">;
 def UnnamedTypeTemplateArgs : DiagGroup<"unnamed-type-template-args">;
index f6933e0c4bd6de7c02463ba6a47ab495f7a2937d..85e6394edac37fcdf08ee224a52769442bbd96d7 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -fsyntax-only -Wuninitialized -Wuninitialized-maybe -fsyntax-only -fblocks %s -verify
+// RUN: %clang_cc1 -fsyntax-only -Wuninitialized -Wconditional-uninitialized -fsyntax-only -fblocks %s -verify
 
 int test1() {
   int x; // expected-note{{variable 'x' is declared here}} expected-note{{add initialization to silence this warning}}