aboutsummaryrefslogtreecommitdiff
path: root/clang/test
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-09-24 22:57:42 +0000
committerDouglas Gregor <dgregor@apple.com>2009-09-24 22:57:42 +0000
commit9fb4bf4d57b01933f50ac1cdd8eddf9ec7005412 (patch)
tree47678bd9ae89bdb1af7f96b58dec6e9de739fb08 /clang/test
parentd2a3e6179801ab3d98bab07241aace3635db4610 (diff)
downloadllvm-9fb4bf4d57b01933f50ac1cdd8eddf9ec7005412.zip
llvm-9fb4bf4d57b01933f50ac1cdd8eddf9ec7005412.tar.gz
llvm-9fb4bf4d57b01933f50ac1cdd8eddf9ec7005412.tar.bz2
Clean up the CodeCompletion testsuite's use of FileCheck
llvm-svn: 82726
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/CodeCompletion/enum-switch-case-qualified.cpp14
-rw-r--r--clang/test/CodeCompletion/enum-switch-case.c8
-rw-r--r--clang/test/CodeCompletion/enum-switch-case.cpp8
-rw-r--r--clang/test/CodeCompletion/namespace-alias.cpp4
-rw-r--r--clang/test/CodeCompletion/namespace.cpp2
-rw-r--r--clang/test/CodeCompletion/ordinary-name.c7
-rw-r--r--clang/test/CodeCompletion/truncation.c2
-rw-r--r--clang/test/CodeCompletion/using-namespace.cpp2
-rw-r--r--clang/test/CodeCompletion/using.cpp2
9 files changed, 25 insertions, 24 deletions
diff --git a/clang/test/CodeCompletion/enum-switch-case-qualified.cpp b/clang/test/CodeCompletion/enum-switch-case-qualified.cpp
index 468a4f9..223aca8 100644
--- a/clang/test/CodeCompletion/enum-switch-case-qualified.cpp
+++ b/clang/test/CodeCompletion/enum-switch-case-qualified.cpp
@@ -23,11 +23,11 @@ void test(enum N::C::Color color) {
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
+ // CHECK-CC1-NEXT: Orange : 0 : N::C::Orange
+ // CHECK-CC1-NEXT: Red : 0 : N::C::Red
+ // CHECK-CC1-NEXT: Violet : 0 : N::C::Violet
+ // CHECK-CC1: Yellow : 0 : N::C::Yellow
diff --git a/clang/test/CodeCompletion/enum-switch-case.c b/clang/test/CodeCompletion/enum-switch-case.c
index 255fbbc..d8bb5e8 100644
--- a/clang/test/CodeCompletion/enum-switch-case.c
+++ b/clang/test/CodeCompletion/enum-switch-case.c
@@ -21,9 +21,9 @@ void test(enum Color color) {
// RUN: clang-cc -fsyntax-only -code-completion-at=%s:19:10 %s -o - | FileCheck -check-prefix=CC1 %s &&
// CHECK-CC1: Blue : 0
- // CHECK-NEXT-CC1: Green : 0
- // CHECK-NEXT-CC1: Indigo : 0
- // CHECK-NEXT-CC1: Orange : 0
- // CHECK-NEXT-CC1: Violet : 0
+ // CHECK-CC1-NEXT: Green : 0
+ // CHECK-CC1-NEXT: Indigo : 0
+ // CHECK-CC1-NEXT: Orange : 0
+ // CHECK-CC1-NEXT: Violet : 0
// RUN: true
diff --git a/clang/test/CodeCompletion/enum-switch-case.cpp b/clang/test/CodeCompletion/enum-switch-case.cpp
index 15e50fdf..7a388fc 100644
--- a/clang/test/CodeCompletion/enum-switch-case.cpp
+++ b/clang/test/CodeCompletion/enum-switch-case.cpp
@@ -21,9 +21,9 @@ void test(enum N::Color color) {
case
// RUN: clang-cc -fsyntax-only -code-completion-at=%s:21:8 %s -o - | FileCheck -check-prefix=CC1 %s &&
// CHECK-CC1: Blue : 0 : N::Blue
- // CHECK-NEXT-CC1: Green : 0 : N::Green
- // CHECK-NEXT-CC1: Indigo : 0 : N::Indigo
- // CHECK-NEXT-CC1: Orange : 0 : N::Orange
- // CHECK-NEXT-CC1: Violet : 0 : N::Violet
+ // CHECK-CC1-NEXT: Green : 0 : N::Green
+ // CHECK-CC1-NEXT: Indigo : 0 : N::Indigo
+ // CHECK-CC1-NEXT: Orange : 0 : N::Orange
+ // CHECK-CC1-NEXT: Violet : 0 : N::Violet
// RUN: true
diff --git a/clang/test/CodeCompletion/namespace-alias.cpp b/clang/test/CodeCompletion/namespace-alias.cpp
index c92e554..0fa2ec2 100644
--- a/clang/test/CodeCompletion/namespace-alias.cpp
+++ b/clang/test/CodeCompletion/namespace-alias.cpp
@@ -16,6 +16,6 @@ namespace N2 {
// CHECK-CC1: I4 : 1
// CHECK-CC1: I5 : 1
// CHECK-CC1: N2 : 3
- // CHECK-NEXT-CC1: N4 : 3
+ // CHECK-CC1-NEXT: N4 : 3
// RUN: true
- \ No newline at end of file
+
diff --git a/clang/test/CodeCompletion/namespace.cpp b/clang/test/CodeCompletion/namespace.cpp
index 5563698..d4ed639 100644
--- a/clang/test/CodeCompletion/namespace.cpp
+++ b/clang/test/CodeCompletion/namespace.cpp
@@ -10,6 +10,6 @@ namespace N2 {
namespace
// RUN: clang-cc -fsyntax-only -code-completion-at=%s:10:12 %s -o - | FileCheck -check-prefix=CC1 %s &&
// CHECK-CC1: I1 : 0
- // CHECK-NEXT-CC1: I5 : 0
+ // CHECK-CC1-NEXT: I5 : 0
// RUN: true
diff --git a/clang/test/CodeCompletion/ordinary-name.c b/clang/test/CodeCompletion/ordinary-name.c
index caba130..fb45477 100644
--- a/clang/test/CodeCompletion/ordinary-name.c
+++ b/clang/test/CodeCompletion/ordinary-name.c
@@ -4,8 +4,9 @@ typedef struct X TYPEDEF;
void foo() {
int y;
- // CHECK-CC1: y : 0
- // CHECK-NEXT-CC1: TYPEDEF : 2
- // CHECK-NEXT-CC1: foo : 2
// RUN: clang-cc -fsyntax-only -code-completion-at=%s:6:9 %s -o - | FileCheck -check-prefix=CC1 %s &&
+ // CHECK-CC1: y : 0
+ // CHECK-CC1-NEXT: TYPEDEF : 2
+ // CHECK-CC1-NOT: X
+ // CHECK-CC1: foo : 2
// RUN: true
diff --git a/clang/test/CodeCompletion/truncation.c b/clang/test/CodeCompletion/truncation.c
index b64b066..b72aa7f 100644
--- a/clang/test/CodeCompletion/truncation.c
+++ b/clang/test/CodeCompletion/truncation.c
@@ -4,7 +4,7 @@ struct
// RUN: clang-cc -fsyntax-only -code-completion-at=%s.h:4:8 -o - %s | FileCheck -check-prefix=CC1 %s &&
// CHECK-CC1: X : 1
-// CHECK-NEXT-CC1: Y : 1
+// CHECK-CC1-NEXT: Y : 1
// RUN: clang-cc -fsyntax-only -code-completion-at=%s:3:8 -o - %s | FileCheck -check-prefix=CC2 %s &&
// CHECK-CC2: X : 1
// CHECK-CC2: Xa : 1
diff --git a/clang/test/CodeCompletion/using-namespace.cpp b/clang/test/CodeCompletion/using-namespace.cpp
index 3e8cd53..a332b88 100644
--- a/clang/test/CodeCompletion/using-namespace.cpp
+++ b/clang/test/CodeCompletion/using-namespace.cpp
@@ -17,5 +17,5 @@ namespace N2 {
// CHECK-CC1: I4 : 2
// CHECK-CC1: I5 : 2
// CHECK-CC1: N2 : 4
- // CHECK-NEXT-CC1: N4 : 4
+ // CHECK-CC1-NEXT: N4 : 4
// RUN: true
diff --git a/clang/test/CodeCompletion/using.cpp b/clang/test/CodeCompletion/using.cpp
index dac556e..57b3aa7 100644
--- a/clang/test/CodeCompletion/using.cpp
+++ b/clang/test/CodeCompletion/using.cpp
@@ -20,6 +20,6 @@ namespace N2 {
// CHECK-CC1: I5 : 2
// CHECK-CC1: N2 : 4
// CHECK-CC1: N3 : 4
- // CHECK-NEXT-CC1: N4 : 4
+ // CHECK-CC1-NEXT: N4 : 4
// RUN: true