diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-09-04 03:32:15 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-09-04 03:32:15 +0000 |
commit | 5cec2aea3f5c402bbf570bc71dc173562424c8d6 (patch) | |
tree | 831c0bb13a4db8c277d53fc819130d1abdb188d6 /clang/test/CodeCompletion/truncation.c | |
parent | a3deaeeb52acdc863ee98eb5bb20b419518bc592 (diff) | |
download | bcm5719-llvm-5cec2aea3f5c402bbf570bc71dc173562424c8d6.tar.gz bcm5719-llvm-5cec2aea3f5c402bbf570bc71dc173562424c8d6.zip |
Support code-completion for C++ inline methods and ObjC buffering methods.
Previously we would cut off the source file buffer at the code-completion
point; this impeded code-completion inside C++ inline methods and,
recently, with buffering ObjC methods.
Have the code-completion inserted into the source buffer so that it can
be buffered along with a method body. When we actually hit the code-completion
point the cut-off lexing or parsing.
Fixes rdar://10056932&8319466
llvm-svn: 139086
Diffstat (limited to 'clang/test/CodeCompletion/truncation.c')
-rw-r--r-- | clang/test/CodeCompletion/truncation.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/clang/test/CodeCompletion/truncation.c b/clang/test/CodeCompletion/truncation.c index 1b446b7d92c..473e85847e5 100644 --- a/clang/test/CodeCompletion/truncation.c +++ b/clang/test/CodeCompletion/truncation.c @@ -1,18 +1,15 @@ #include "truncation.c.h" -struct - /* foo */ +struct + // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s.h:4:8 -o - %s | FileCheck -check-prefix=CC1 %s // CHECK-CC1: X // CHECK-CC1-NEXT: Y -// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:3:8 -o - %s | FileCheck -check-prefix=CC2 %s +// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:5:8 -o - %s | FileCheck -check-prefix=CC2 %s // CHECK-CC2: X // CHECK-CC2: Xa // CHECK-CC2: Y -// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:5:3 -o - %s | FileCheck -check-prefix=CC3 %s -// CHECK-CC3: X -// CHECK-CC3: Xa -// CHECK-CC3: Y +// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:3:3 -o - %s |