summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2013-01-25 17:47:49 +0000
committerFariborz Jahanian <fjahanian@apple.com>2013-01-25 17:47:49 +0000
commitd0ed6c249dbd6bd488b6491b536a387548c00f7e (patch)
tree59ef274130403be591ddd803ce75a76a016c4f6c
parent740396437b6584ffcb08857b8fbc8dff17e89c86 (diff)
downloadbcm5719-llvm-d0ed6c249dbd6bd488b6491b536a387548c00f7e.tar.gz
bcm5719-llvm-d0ed6c249dbd6bd488b6491b536a387548c00f7e.zip
Add space after ';'.
llvm-svn: 173462
-rw-r--r--clang/include/clang/Basic/DiagnosticASTKinds.td2
-rw-r--r--clang/test/Sema/switch-1.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/clang/include/clang/Basic/DiagnosticASTKinds.td b/clang/include/clang/Basic/DiagnosticASTKinds.td
index 08369a589a1..9be32af9ecc 100644
--- a/clang/include/clang/Basic/DiagnosticASTKinds.td
+++ b/clang/include/clang/Basic/DiagnosticASTKinds.td
@@ -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.
diff --git a/clang/test/Sema/switch-1.c b/clang/test/Sema/switch-1.c
index 4a5ded3b41a..82ce6747a3a 100644
--- a/clang/test/Sema/switch-1.c
+++ b/clang/test/Sema/switch-1.c
@@ -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}}
}
OpenPOWER on IntegriCloud