[cfe-commits] r82726 - in /cfe/trunk/test/CodeCompletion: enum-switch-case-qualified.cpp enum-switch-case.c enum-switch-case.cpp namespace-alias.cpp namespace.cpp ordinary-name.c truncation.c using-namespace.cpp using.cpp

Daniel Dunbar daniel at zuster.org
Thu Sep 24 18:56:18 PDT 2009


On Thu, Sep 24, 2009 at 3:57 PM, Douglas Gregor <dgregor at apple.com> wrote:
> Author: dgregor
> Date: Thu Sep 24 17:57:42 2009
> New Revision: 82726
>
> URL: http://llvm.org/viewvc/llvm-project?rev=82726&view=rev
> Log:
> Clean up the CodeCompletion testsuite's use of FileCheck
>
> Modified:
>    cfe/trunk/test/CodeCompletion/enum-switch-case-qualified.cpp
>    cfe/trunk/test/CodeCompletion/enum-switch-case.c
>    cfe/trunk/test/CodeCompletion/enum-switch-case.cpp
>    cfe/trunk/test/CodeCompletion/namespace-alias.cpp
>    cfe/trunk/test/CodeCompletion/namespace.cpp
>    cfe/trunk/test/CodeCompletion/ordinary-name.c
>    cfe/trunk/test/CodeCompletion/truncation.c
>    cfe/trunk/test/CodeCompletion/using-namespace.cpp
>    cfe/trunk/test/CodeCompletion/using.cpp
>
> Modified: cfe/trunk/test/CodeCompletion/enum-switch-case-qualified.cpp
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeCompletion/enum-switch-case-qualified.cpp?rev=82726&r1=82725&r2=82726&view=diff
>
> ==============================================================================
> --- cfe/trunk/test/CodeCompletion/enum-switch-case-qualified.cpp (original)
> +++ cfe/trunk/test/CodeCompletion/enum-switch-case-qualified.cpp Thu Sep 24 17:57:42 2009
> @@ -23,11 +23,11 @@
>   case
>     // RUN: clang-cc -fsyntax-only -code-completion-at=%s:23:8 %s -o - | FileCheck -check-prefix=CC1 %s &&
>     // RUN: true
> -    // CHECK-NEXT-CC1: Blue : 0 : N::C::Blue
> -    // CHECK-NEXT-CC1: Green : 0 : N::C::Green
> -    // CHECK-NEXT-CC1: Indigo : 0 : N::C::Indigo
> -    // CHECK-NEXT-CC1: Orange : 0 : N::C::Orange
> -    // CHECK-NEXT-CC1: Red : 0 : N::C::Red
> -    // CHECK-NEXT-CC1: Violet : 0 : N::C::Violet
> -    // CHECK-NEXT-CC1: Yellow : 0 : N::C::Yellow
> +    // CHECK-CC1: Blue : 0 : N::C::Blue
> +    // CHECK-CC1-NEXT: Green : 0 : N::C::Green
> +    // CHECK-CC1-NEXT: Indigo : 0 : N::C::Indigo

FYI, in case this was non-intentional, its worth pointing out that the
"check-prefix" is the exact string FileCheck looks for. In this case,
the
  // CC1: sdgsdgs
will match. You might want to either change the -check-prefix argument
to 'CHECK-CC1', or delete the unnecessary CHECK-.

 - Daniel




More information about the cfe-commits mailing list