[cfe-commits] r160113 - /cfe/trunk/test/FixIt/fixit-unicode.c

Benjamin Kramer benny.kra at googlemail.com
Thu Jul 12 01:34:31 PDT 2012


Author: d0k
Date: Thu Jul 12 03:34:31 2012
New Revision: 160113

URL: http://llvm.org/viewvc/llvm-project?rev=160113&view=rev
Log:
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.

Modified:
    cfe/trunk/test/FixIt/fixit-unicode.c

Modified: cfe/trunk/test/FixIt/fixit-unicode.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/FixIt/fixit-unicode.c?rev=160113&r1=160112&r2=160113&view=diff
==============================================================================
--- cfe/trunk/test/FixIt/fixit-unicode.c (original)
+++ cfe/trunk/test/FixIt/fixit-unicode.c Thu Jul 12 03:34:31 2012
@@ -10,6 +10,6 @@
   (&foo)☃>bar = 42;
 // CHECK: error: expected ';' after expression
 // Make sure we emit the fixit right in front of the snowman.
-// CHECK: {{^        \^$}}
-// CHECK: {{^        ;$}}
+// CHECK: {{^        \^}}
+// CHECK: {{^        ;}}
 }





More information about the cfe-commits mailing list