From: Benjamin Kramer Date: Thu, 12 Jul 2012 08:34:31 +0000 (+0000) Subject: Be lax about trailing whitespace when checking fixit formatting, this depends on... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c7bd9fbecd50c1fcdc1092e37023dbb8677d4eed;p=clang Be lax about trailing whitespace when checking fixit formatting, this depends on locale settings. 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 --- diff --git a/test/FixIt/fixit-unicode.c b/test/FixIt/fixit-unicode.c index 04d582e856..d8e4592336 100644 --- a/test/FixIt/fixit-unicode.c +++ b/test/FixIt/fixit-unicode.c @@ -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: {{^ ;}} }