summaryrefslogtreecommitdiffstats
path: root/clang/include/clang-c
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-09-09 21:42:20 +0000
committerDouglas Gregor <dgregor@apple.com>2010-09-09 21:42:20 +0000
commitf3af3113822378576ec9501243df7469b9b3b23c (patch)
treecace468e163bf34862b2ff0bc534d566a6d5d984 /clang/include/clang-c
parent7ce46869586141f3087a6b6460dfe8773d02c17a (diff)
downloadbcm5719-llvm-f3af3113822378576ec9501243df7469b9b3b23c.tar.gz
bcm5719-llvm-f3af3113822378576ec9501243df7469b9b3b23c.zip
Teach libclang to walk the base and member initializers of a
constructor, in source order. Also introduces a new reference kind for class members, which is used here (for member initializers) and will also be used for designated initializers and offsetof. llvm-svn: 113545
Diffstat (limited to 'clang/include/clang-c')
-rw-r--r--clang/include/clang-c/Index.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/clang/include/clang-c/Index.h b/clang/include/clang-c/Index.h
index 4631c65bf05..fb742078f4a 100644
--- a/clang/include/clang-c/Index.h
+++ b/clang/include/clang-c/Index.h
@@ -1027,15 +1027,20 @@ enum CXCursorKind {
CXCursor_TypeRef = 43,
CXCursor_CXXBaseSpecifier = 44,
/**
- * \brief A reference to a class template, function template, or template
- * template parameter.
+ * \brief A reference to a class template, function template, template
+ * template parameter, or class template partial specialization.
*/
CXCursor_TemplateRef = 45,
/**
* \brief A reference to a namespace or namespace alias.
*/
CXCursor_NamespaceRef = 46,
- CXCursor_LastRef = CXCursor_NamespaceRef,
+ /**
+ * A reference to a member of a struct, union, or class that occurs in some
+ * non-expression context, e.g., a designated initializer.
+ */
+ CXCursor_MemberRef = 47,
+ CXCursor_LastRef = CXCursor_MemberRef,
/* Error conditions */
CXCursor_FirstInvalid = 70,
OpenPOWER on IntegriCloud