diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-09-18 22:47:56 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-09-18 22:47:56 +0000 |
commit | 56ff871ae74b1edccff44efe296f3167d694ce48 (patch) | |
tree | 72eb245f525f2e8f4acc721a89adb2803a932499 /test/CodeCompletion/templates.cpp | |
parent | e0a58073b76fc016325a35152533b8468df2bf4a (diff) |
Introduce code completion patterns for templates, which provide the
angle brackets < > along with placeholder template arguments.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82304 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeCompletion/templates.cpp')
-rw-r--r-- | test/CodeCompletion/templates.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/CodeCompletion/templates.cpp b/test/CodeCompletion/templates.cpp new file mode 100644 index 0000000000..f7751413b9 --- /dev/null +++ b/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:: + + |