]> granicus.if.org Git - clang/commitdiff
Add space after ';'.
authorFariborz Jahanian <fjahanian@apple.com>
Fri, 25 Jan 2013 17:47:49 +0000 (17:47 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Fri, 25 Jan 2013 17:47:49 +0000 (17:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173462 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/DiagnosticASTKinds.td
test/Sema/switch-1.c

index 08369a589a1af929c144ce538521d8769c870280..9be32af9ecc1e330ba7360610e1dc817468669f7 100644 (file)
@@ -107,7 +107,7 @@ def note_constexpr_calls_suppressed : Note<
   "see all)">;
 def note_constexpr_call_here : Note<"in call to '%0'">;
 def warn_integer_constant_overflow : Warning<
-  "overflow in expression;result is %0 with type %1">,
+  "overflow in expression; result is %0 with type %1">,
   InGroup<DiagGroup<"integer-overflow">>;
 
 // inline asm related.
index 4a5ded3b41ab117bea746c21285829a69ee1c965..82ce6747a3a4910766bd80c075564d79fe57109e 100644 (file)
@@ -4,15 +4,15 @@
 
 int f(int i) {
   switch (i) {
-    case 2147483647 + 2: // expected-warning {{overflow in expression;result is -2147483647 with type 'int'}}
+    case 2147483647 + 2: // expected-warning {{overflow in expression; result is -2147483647 with type 'int'}}
       return 1;
-    case 9223372036854775807L * 4: // expected-warning {{overflow in expression;result is -4 with type 'long'}}
+    case 9223372036854775807L * 4: // expected-warning {{overflow in expression; result is -4 with type 'long'}}
       return 2;
-    case (123456 *789012) + 1:  // expected-warning {{overflow in expression;result is -1375982336 with type 'int'}}
+    case (123456 *789012) + 1:  // expected-warning {{overflow in expression; result is -1375982336 with type 'int'}}
       return 3;
     case 2147483647:
       return 0;
   }
-  return (i, 65537) * 65537; // expected-warning {{overflow in expression;result is 131073 with type 'int'}} \
+  return (i, 65537) * 65537; // expected-warning {{overflow in expression; result is 131073 with type 'int'}} \
                             // expected-warning {{expression result unused}}
 }