summaryrefslogtreecommitdiffstats
path: root/clang/include/clang-c/Index.h
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/include/clang-c/Index.h
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/include/clang-c/Index.h')
-rw-r--r--clang/include/clang-c/Index.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/clang/include/clang-c/Index.h b/clang/include/clang-c/Index.h
index 04d9bbcedfb..be02bcf8c39 100644
--- a/clang/include/clang-c/Index.h
+++ b/clang/include/clang-c/Index.h
@@ -1020,7 +1020,12 @@ enum CXCursorKind {
*/
CXCursor_TypeRef = 43,
CXCursor_CXXBaseSpecifier = 44,
- CXCursor_LastRef = CXCursor_CXXBaseSpecifier,
+ /**
+ * \brief A reference to a class template, function template, or template
+ * template parameter.
+ */
+ CXCursor_TemplateRef = 45,
+ CXCursor_LastRef = CXCursor_TemplateRef,
/* Error conditions */
CXCursor_FirstInvalid = 70,
OpenPOWER on IntegriCloud