r184952 - clang/test/Driver/pth.c: Fix r184942, a regexp like "\\\\" is redundant here. Should be matched to single \ with '\\'.

Rafael EspĂ­ndola rafael.espindola at gmail.com
Wed Jun 26 09:41:35 PDT 2013


Thanks!

On 26 June 2013 11:03, NAKAMURA Takumi <geek4civic at gmail.com> wrote:
> Author: chapuni
> Date: Wed Jun 26 10:03:20 2013
> New Revision: 184952
>
> URL: http://llvm.org/viewvc/llvm-project?rev=184952&view=rev
> Log:
> clang/test/Driver/pth.c: Fix r184942, a regexp like "\\\\" is redundant here. Should be matched to single \ with '\\'.
>
> Modified:
>     cfe/trunk/test/Driver/pth.c
>
> Modified: cfe/trunk/test/Driver/pth.c
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/pth.c?rev=184952&r1=184951&r2=184952&view=diff
> ==============================================================================
> --- cfe/trunk/test/Driver/pth.c (original)
> +++ cfe/trunk/test/Driver/pth.c Wed Jun 26 10:03:20 2013
> @@ -3,10 +3,10 @@
>  // RUN: %clang -no-canonical-prefixes -ccc-pch-is-pth -x c-header %s -o %t.h.pth -### 2> %t.log
>  // RUN: FileCheck -check-prefix CHECK1 -input-file %t.log %s
>
> -// CHECK1: "{{.*}}{{/|\\\\}}clang{{.*}}" "-cc1" {{.*}} "-o" "{{.*}}.h.pth" "-x" "c-header" "{{.*}}pth.c"
> +// CHECK1: "{{.*[/\\]}}clang{{.*}}" "-cc1" {{.*}} "-o" "{{.*}}.h.pth" "-x" "c-header" "{{.*}}pth.c"
>
>  // RUN: touch %t.h.pth
>  // RUN: %clang -no-canonical-prefixes -ccc-pch-is-pth -E -include %t.h %s -### 2> %t.log
>  // RUN: FileCheck -check-prefix CHECK2 -input-file %t.log %s
>
> -// CHECK2: "{{.*}}{{/|\\\\}}clang{{.*}}" "-cc1" {{.*}}"-include-pth" "{{.*}}.h.pth" {{.*}}"-x" "c" "{{.*}}pth.c"
> +// CHECK2: "{{.*[/\\]}}clang{{.*}}" "-cc1" {{.*}}"-include-pth" "{{.*}}.h.pth" {{.*}}"-x" "c" "{{.*}}pth.c"
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits



More information about the cfe-commits mailing list