diff options
| author | John McCall <rjmccall@apple.com> | 2010-03-10 11:27:22 +0000 |
|---|---|---|
| committer | John McCall <rjmccall@apple.com> | 2010-03-10 11:27:22 +0000 |
| commit | 85f90559550563863522a58a87fdc4e46e95794b (patch) | |
| tree | 60f75b5419f63aa12806b5720863118e80ee658e /clang/test/CodeCompletion | |
| parent | e35eabdd69d397db32c0b5b29a96fbcacdd6ea18 (diff) | |
| download | bcm5719-llvm-85f90559550563863522a58a87fdc4e46e95794b.tar.gz bcm5719-llvm-85f90559550563863522a58a87fdc4e46e95794b.zip | |
When pretty-printing tag types, only print the tag if we're in C (and
therefore not creating ElaboratedTypes, which are still pretty-printed
with the written tag).
Most of these testcase changes were done by script, so don't feel too
sorry for my fingers.
llvm-svn: 98149
Diffstat (limited to 'clang/test/CodeCompletion')
| -rw-r--r-- | clang/test/CodeCompletion/call.cpp | 4 | ||||
| -rw-r--r-- | clang/test/CodeCompletion/enum-switch-case-qualified.cpp | 14 | ||||
| -rw-r--r-- | clang/test/CodeCompletion/enum-switch-case.cpp | 10 |
3 files changed, 14 insertions, 14 deletions
diff --git a/clang/test/CodeCompletion/call.cpp b/clang/test/CodeCompletion/call.cpp index 5467717bbc7..04d2a2f0c98 100644 --- a/clang/test/CodeCompletion/call.cpp +++ b/clang/test/CodeCompletion/call.cpp @@ -18,10 +18,10 @@ void f(); void test() { f(Y(), 0, 0); // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:19:9 %s -o - | FileCheck -check-prefix=CC1 %s - // CHECK-CC1: f(struct N::Y y, <#int ZZ#>) + // CHECK-CC1: f(N::Y y, <#int ZZ#>) // CHECK-CC1-NEXT: f(int i, <#int j#>, int k) // CHECK-CC1-NEXT: f(float x, <#float y#>) // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:19:13 %s -o - | FileCheck -check-prefix=CC2 %s - // CHECK-CC2-NOT: f(struct N::Y y, int ZZ) + // CHECK-CC2-NOT: f(N::Y y, int ZZ) // CHECK-CC2: f(int i, int j, <#int k#>) } diff --git a/clang/test/CodeCompletion/enum-switch-case-qualified.cpp b/clang/test/CodeCompletion/enum-switch-case-qualified.cpp index b9efcb43ed2..e74ec9b5fe6 100644 --- a/clang/test/CodeCompletion/enum-switch-case-qualified.cpp +++ b/clang/test/CodeCompletion/enum-switch-case-qualified.cpp @@ -22,11 +22,11 @@ void test(enum N::C::Color color) { switch (color) { case // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:23:8 %s -o - | FileCheck -check-prefix=CC1 %s - // CHECK-CC1: Blue : [#enum M::N::C::Color#]N::C::Blue - // CHECK-CC1-NEXT: Green : [#enum M::N::C::Color#]N::C::Green - // CHECK-CC1-NEXT: Indigo : [#enum M::N::C::Color#]N::C::Indigo - // CHECK-CC1-NEXT: Orange : [#enum M::N::C::Color#]N::C::Orange - // CHECK-CC1-NEXT: Red : [#enum M::N::C::Color#]N::C::Red - // CHECK-CC1-NEXT: Violet : [#enum M::N::C::Color#]N::C::Violet - // CHECK-CC1: Yellow : [#enum M::N::C::Color#]N::C::Yellow + // CHECK-CC1: Blue : [#M::N::C::Color#]N::C::Blue + // CHECK-CC1-NEXT: Green : [#M::N::C::Color#]N::C::Green + // CHECK-CC1-NEXT: Indigo : [#M::N::C::Color#]N::C::Indigo + // CHECK-CC1-NEXT: Orange : [#M::N::C::Color#]N::C::Orange + // CHECK-CC1-NEXT: Red : [#M::N::C::Color#]N::C::Red + // CHECK-CC1-NEXT: Violet : [#M::N::C::Color#]N::C::Violet + // CHECK-CC1: Yellow : [#M::N::C::Color#]N::C::Yellow diff --git a/clang/test/CodeCompletion/enum-switch-case.cpp b/clang/test/CodeCompletion/enum-switch-case.cpp index 412f5f2f074..2677f33f98f 100644 --- a/clang/test/CodeCompletion/enum-switch-case.cpp +++ b/clang/test/CodeCompletion/enum-switch-case.cpp @@ -20,9 +20,9 @@ void test(enum N::Color color) { case // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:21:8 %s -o - | FileCheck -check-prefix=CC1 %s - // CHECK-CC1: Blue : [#enum N::Color#]N::Blue - // CHECK-CC1-NEXT: Green : [#enum N::Color#]N::Green - // CHECK-CC1-NEXT: Indigo : [#enum N::Color#]N::Indigo - // CHECK-CC1-NEXT: Orange : [#enum N::Color#]N::Orange - // CHECK-CC1-NEXT: Violet : [#enum N::Color#]N::Violet + // CHECK-CC1: Blue : [#N::Color#]N::Blue + // CHECK-CC1-NEXT: Green : [#N::Color#]N::Green + // CHECK-CC1-NEXT: Indigo : [#N::Color#]N::Indigo + // CHECK-CC1-NEXT: Orange : [#N::Color#]N::Orange + // CHECK-CC1-NEXT: Violet : [#N::Color#]N::Violet |

