summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeCompletion/templates.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-09-18 22:47:56 +0000
committerDouglas Gregor <dgregor@apple.com>2009-09-18 22:47:56 +0000
commit3f6ca389270770fd7d4beeaa3df27fb6b21c0ef4 (patch)
treeb747c8dde6e6235e7916e1f574bfd6eb8949b5aa /clang/test/CodeCompletion/templates.cpp
parent0ccd06c017ead99e124feb3c4513346d07ca2527 (diff)
downloadbcm5719-llvm-3f6ca389270770fd7d4beeaa3df27fb6b21c0ef4.tar.gz
bcm5719-llvm-3f6ca389270770fd7d4beeaa3df27fb6b21c0ef4.zip
Introduce code completion patterns for templates, which provide the
angle brackets < > along with placeholder template arguments. llvm-svn: 82304
Diffstat (limited to 'clang/test/CodeCompletion/templates.cpp')
-rw-r--r--clang/test/CodeCompletion/templates.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/clang/test/CodeCompletion/templates.cpp b/clang/test/CodeCompletion/templates.cpp
new file mode 100644
index 00000000000..f7751413b98
--- /dev/null
+++ b/clang/test/CodeCompletion/templates.cpp
@@ -0,0 +1,17 @@
+// RUN: clang-cc -fsyntax-only -code-completion-dump=1 %s -o - | FileCheck -check-prefix=CC1 %s &&
+// RUN: true
+
+namespace std {
+ template<typename T>
+ class allocator;
+
+ template<typename T, typename Alloc = std::allocator<T> >
+ class vector;
+}
+
+void f() {
+ // CHECK-CC1: allocator<<#typename T#>>
+ // CHECK-CC1: vector<<#typename T#>{#, <#typename Alloc#>#}>
+ std::
+
+
OpenPOWER on IntegriCloud