diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-12-02 09:21:34 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-12-02 09:21:34 +0000 |
commit | 735df88a38e80c1ca70daa889aa516b8b9f54b50 (patch) | |
tree | 853efa5e789ca1c2621f32ed40d32ad4511283a8 /test/Index/remap-complete.c | |
parent | 51fa86f738a9768fac4e1cad7bdde53774b5b322 (diff) |
Extend the CIndex code-completion API to perform code completion
involving unsaved files, using the -remap-file= functionality recently
added to clang-cc.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90314 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Index/remap-complete.c')
-rw-r--r-- | test/Index/remap-complete.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Index/remap-complete.c b/test/Index/remap-complete.c new file mode 100644 index 0000000000..252108b404 --- /dev/null +++ b/test/Index/remap-complete.c @@ -0,0 +1,4 @@ +// RUN: c-index-test -code-completion-at=%s:1:12 -remap-file="%s;%S/Inputs/remap-complete-to.c" %s | FileCheck %s + +// CHECK: FunctionDecl:{TypedText f0}{LeftParen (}{RightParen )} +void f() { } |