aboutsummaryrefslogtreecommitdiff
path: root/clang/test/CodeCompletion/functions.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-09-18 22:15:54 +0000
committerDouglas Gregor <dgregor@apple.com>2009-09-18 22:15:54 +0000
commitfedc328ae9e37410a84213c840ba785ce5ff44c3 (patch)
tree93d46d73afc878af392e0de86afbe250fb440b75 /clang/test/CodeCompletion/functions.cpp
parentb90893dc41562918ac7a0f9f8b5955fddb961d44 (diff)
downloadllvm-fedc328ae9e37410a84213c840ba785ce5ff44c3.zip
llvm-fedc328ae9e37410a84213c840ba785ce5ff44c3.tar.gz
llvm-fedc328ae9e37410a84213c840ba785ce5ff44c3.tar.bz2
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. llvm-svn: 82293
Diffstat (limited to 'clang/test/CodeCompletion/functions.cpp')
-rw-r--r--clang/test/CodeCompletion/functions.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/CodeCompletion/functions.cpp b/clang/test/CodeCompletion/functions.cpp
new file mode 100644
index 0000000..f722e9a
--- /dev/null
+++ b/clang/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#>)
+ ::