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
16 lines
406 B
C
16 lines
406 B
C
#include "truncation.c.h"
|
|
|
|
/* 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: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:3:3 -o - %s
|