summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/index-templates.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-08-31 20:37:03 +0000
committerDouglas Gregor <dgregor@apple.com>2010-08-31 20:37:03 +0000
commita23e8f7a0f2001d5d77c2be390e39288b128c812 (patch)
tree687d82b5eeae23de2f63d26c029b8eafc4b809dd /clang/test/Index/index-templates.cpp
parenta5e6b3eca4dd3a12e13711d5e024326e206da5f2 (diff)
downloadbcm5719-llvm-a23e8f7a0f2001d5d77c2be390e39288b128c812.tar.gz
bcm5719-llvm-a23e8f7a0f2001d5d77c2be390e39288b128c812.zip
Extend libclang with a new cursor kind that indicates a reference to a
template. Such cursors occur, for example, in template specialization types such as vector<int>. Note that we do not handle the super-interesting case where the template name is unresolved, e.g., within a template. llvm-svn: 112636
Diffstat (limited to 'clang/test/Index/index-templates.cpp')
-rw-r--r--clang/test/Index/index-templates.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Index/index-templates.cpp b/clang/test/Index/index-templates.cpp
index fb22f884d36..bd2c2c0b50a 100644
--- a/clang/test/Index/index-templates.cpp
+++ b/clang/test/Index/index-templates.cpp
@@ -19,7 +19,7 @@ class vector<T*> { };
// FIXME: Need the template type parameter here
// CHECK-LOAD: index-templates.cpp:3:66: TemplateTemplateParameter=X:3:66 (Definition) Extent=[3:31 - 3:67]
// CHECK-LOAD: index-templates.cpp:4:20: ParmDecl=x:4:20 (Definition) Extent=[4:8 - 4:21]
-// FIXME: Need the template declaration here.
+// CHECK-LOAD: index-templates.cpp:4:8: TemplateRef=X:3:66 Extent=[4:8 - 4:9]
// FIXME: Need the template type parameter here
// CHECK-LOAD: index-templates.cpp:4:13: DeclRefExpr=Value:3:24 Extent=[4:13 - 4:18]
// CHECK-LOAD: index-templates.cpp:6:28: ClassTemplate=allocator:6:28 Extent=[6:1 - 6:37]
OpenPOWER on IntegriCloud