]> granicus.if.org Git - clang/commitdiff
Be lax about trailing whitespace when checking fixit formatting, this depends on...
authorBenjamin Kramer <benny.kra@googlemail.com>
Thu, 12 Jul 2012 08:34:31 +0000 (08:34 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Thu, 12 Jul 2012 08:34:31 +0000 (08:34 +0000)
If a non-unicode locale is used, the unicode character is escaped and any
byte that is in the escaped representation but not the semicolon will
become whitespace.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160113 91177308-0d34-0410-b5e6-96231b3b80d8

test/FixIt/fixit-unicode.c

index 04d582e856f44a50a603ec05615adf6b88015650..d8e459233629bd2417592308abcce054c1dd1661 100644 (file)
@@ -10,6 +10,6 @@ void test1() {
   (&foo)☃>bar = 42;
 // CHECK: error: expected ';' after expression
 // Make sure we emit the fixit right in front of the snowman.
-// CHECK: {{^        \^$}}
-// CHECK: {{^        ;$}}
+// CHECK: {{^        \^}}
+// CHECK: {{^        ;}}
 }