summaryrefslogtreecommitdiffstats
path: root/clang/include/clang-c/Index.h
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-01-21 16:28:34 +0000
committerDouglas Gregor <dgregor@apple.com>2010-01-21 16:28:34 +0000
commit93f899509d0c847a3da62b2512df59728124f6bb (patch)
tree082b61a57bd4ef3c89289429bcc9a2b5a391f5f1 /clang/include/clang-c/Index.h
parent87b8faf227cb90083090f3bb7b22c1f6fe96b0e1 (diff)
downloadbcm5719-llvm-93f899509d0c847a3da62b2512df59728124f6bb.tar.gz
bcm5719-llvm-93f899509d0c847a3da62b2512df59728124f6bb.zip
Introduce type references into the C API, capturing references to
typedefs only (for now). llvm-svn: 94078
Diffstat (limited to 'clang/include/clang-c/Index.h')
-rw-r--r--clang/include/clang-c/Index.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/clang/include/clang-c/Index.h b/clang/include/clang-c/Index.h
index 110e49904b9..b1b763cab58 100644
--- a/clang/include/clang-c/Index.h
+++ b/clang/include/clang-c/Index.h
@@ -128,7 +128,23 @@ enum CXCursorKind {
CXCursor_ObjCSuperClassRef = 40,
CXCursor_ObjCProtocolRef = 41,
CXCursor_ObjCClassRef = 42,
- CXCursor_LastRef = 42,
+ /**
+ * \brief A reference to a type declaration.
+ *
+ * A type reference occurs anywhere where a type is named but not
+ * declared. For example, given:
+ *
+ * \code
+ * typedef unsigned size_type;
+ * size_type size;
+ * \endcode
+ *
+ * The typedef is a declaration of size_type (CXCursor_TypedefDecl),
+ * while the type of the variable "size" is referenced. The cursor
+ * referenced by the type of size is the typedef for size_type.
+ */
+ CXCursor_TypeRef = 43,
+ CXCursor_LastRef = 43,
/* Error conditions */
CXCursor_FirstInvalid = 70,
OpenPOWER on IntegriCloud