diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-11-07 00:00:49 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-11-07 00:00:49 +0000 |
commit | 6fc92644366a0c3d23174ee74223045cae195dda (patch) | |
tree | 50b46a70bce07356377b8b9c973d48172840b4ea /clang/test/CodeCompletion/macros.c | |
parent | 0f69757ea6fe4cb9d6cd85d598b1c56552b2bb7c (diff) |
Various improvements to Clang's code-completion infrastructure:
- Introduce more code-completion string "chunk" kinds that describe
symbols, the actual text that the user is expected to type, etc.
- Make the generation of macro results optional, since it can be
slow
- Make code-completion accessible through the C API, marshalling the
code-completion results through a temporary file (ick) to maintain
process separation.
The last doesn't have tests yet.
Diffstat (limited to 'clang/test/CodeCompletion/macros.c')
-rw-r--r-- | clang/test/CodeCompletion/macros.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/CodeCompletion/macros.c b/clang/test/CodeCompletion/macros.c index d5c1f8f17fc..82ccea2be01 100644 --- a/clang/test/CodeCompletion/macros.c +++ b/clang/test/CodeCompletion/macros.c @@ -13,9 +13,9 @@ struct Point { }; void test(struct Point *p) { - // RUN: clang-cc -fsyntax-only -code-completion-at=%s:17:14 %s -o - | FileCheck -check-prefix=CC1 %s && + // RUN: clang-cc -fsyntax-only -code-completion-macros -code-completion-at=%s:17:14 %s -o - | FileCheck -check-prefix=CC1 %s && switch (p->IDENTITY(color)) { - // RUN: clang-cc -fsyntax-only -code-completion-at=%s:19:9 %s -o - | FileCheck -check-prefix=CC2 %s && + // RUN: clang-cc -fsyntax-only -code-completion-macros -code-completion-at=%s:19:9 %s -o - | FileCheck -check-prefix=CC2 %s && case } // CC1: color |