diff options
author | Roman Divacky <rdivacky@FreeBSD.org> | 2010-07-13 17:21:42 +0000 |
---|---|---|
committer | Roman Divacky <rdivacky@FreeBSD.org> | 2010-07-13 17:21:42 +0000 |
commit | 4ba675006b5a8edfc48b6a9bd3dcf54a70cc08f2 (patch) | |
tree | 48b44512b5db8ced345df4a1a56b5065cf2a14d9 /include/clang-c | |
parent | d7279c4c177bca357ef96ff1379fd9bc420bfe83 (diff) | |
download | src-4ba675006b5a8edfc48b6a9bd3dcf54a70cc08f2.tar.gz src-4ba675006b5a8edfc48b6a9bd3dcf54a70cc08f2.zip |
Update clang to r108243.vendor/clang/clang-r108243
Notes
Notes:
svn path=/vendor/clang/dist/; revision=210008
svn path=/vendor/clang/clang-r108243/; revision=210076; tag=vendor/clang/clang-r108243
Diffstat (limited to 'include/clang-c')
-rw-r--r-- | include/clang-c/Index.h | 21 | ||||
-rw-r--r-- | include/clang-c/Makefile | 4 |
2 files changed, 16 insertions, 9 deletions
diff --git a/include/clang-c/Index.h b/include/clang-c/Index.h index 86926bd683ba..b377b6d5fe2c 100644 --- a/include/clang-c/Index.h +++ b/include/clang-c/Index.h @@ -343,12 +343,6 @@ CINDEX_LINKAGE CXSourceLocation clang_getRangeStart(CXSourceRange range); CINDEX_LINKAGE CXSourceLocation clang_getRangeEnd(CXSourceRange range); /** - * \brief Determine if the source location occurs within the main file - * of the translation unit (as opposed to an included header). - */ -CINDEX_LINKAGE unsigned clang_isFromMainFile(CXSourceLocation loc); - -/** * @} */ @@ -1092,7 +1086,9 @@ enum CXTypeKind { CXType_Enum = 106, CXType_Typedef = 107, CXType_ObjCInterface = 108, - CXType_ObjCObjectPointer = 109 + CXType_ObjCObjectPointer = 109, + CXType_FunctionNoProto = 110, + CXType_FunctionProto = 111 }; /** @@ -1145,6 +1141,17 @@ CINDEX_LINKAGE CXCursor clang_getTypeDeclaration(CXType T); CINDEX_LINKAGE CXString clang_getTypeKindSpelling(enum CXTypeKind K); /** + * \brief Retrieve the result type associated with a function type. + */ +CINDEX_LINKAGE CXType clang_getResultType(CXType T); + +/** + * \brief Retrieve the result type associated with a given cursor. This only + * returns a valid type of the cursor refers to a function or method. + */ +CINDEX_LINKAGE CXType clang_getCursorResultType(CXCursor C); + +/** * @} */ diff --git a/include/clang-c/Makefile b/include/clang-c/Makefile index 5e3522f79137..98ea7190e687 100644 --- a/include/clang-c/Makefile +++ b/include/clang-c/Makefile @@ -1,7 +1,7 @@ -LEVEL = ../../../.. +CLANG_LEVEL := ../.. DIRS := -include $(LEVEL)/Makefile.common +include $(CLANG_LEVEL)/Makefile install-local:: $(Echo) Installing Clang C API include files |