summaryrefslogtreecommitdiffstats
path: root/include
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
commit0b36e614aa19df72885d5e0de996f7fbb9874ec3 (patch)
tree99e21755083d58764ddc83d5d689be7a9bbc1cbd /include
parent74dbe640021d96a8dbb85c592471c04449ade81c (diff)
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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112636 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/clang-c/Index.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/clang-c/Index.h b/include/clang-c/Index.h
index 04d9bbcedf..be02bcf8c3 100644
--- a/include/clang-c/Index.h
+++ b/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,