diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-09-18 22:15:54 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-09-18 22:15:54 +0000 |
commit | e6e0361984b077d205e9a45d64257d41d2c788c8 (patch) | |
tree | 063c1f7dd2367a4856d73c78919578537d6dea87 /test/CodeCompletion/functions.cpp | |
parent | 1131014a6e0302f8040531e227b550230703f613 (diff) |
Introduce code completion strings, which describe how to *use* the
results of code completion, e.g., by providing function call syntax
with placeholders for each of the parameters.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82293 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeCompletion/functions.cpp')
-rw-r--r-- | test/CodeCompletion/functions.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeCompletion/functions.cpp b/test/CodeCompletion/functions.cpp new file mode 100644 index 0000000000..f722e9a07e --- /dev/null +++ b/test/CodeCompletion/functions.cpp @@ -0,0 +1,9 @@ +// RUN: clang-cc -fsyntax-only -code-completion-dump=1 %s -o - | FileCheck -check-prefix=CC1 %s && +// RUN: true +void f(int i, int j = 2, int k = 5); +void f(float x, float y); + +void test() { + // CHECK-CC1: f(<#int i#>{#, <#int j#>{#, <#int k#>#}#}) + // CHECK-CC1: f(<#float x#>, <#float y#>) + :: |