diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-08-31 20:37:03 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-08-31 20:37:03 +0000 |
commit | a23e8f7a0f2001d5d77c2be390e39288b128c812 (patch) | |
tree | 687d82b5eeae23de2f63d26c029b8eafc4b809dd /clang/include/clang-c/Index.h | |
parent | a5e6b3eca4dd3a12e13711d5e024326e206da5f2 (diff) | |
download | bcm5719-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.h | 7 |
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, |