diff options
Diffstat (limited to 'include/clang-c/Index.h')
| -rw-r--r-- | include/clang-c/Index.h | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/include/clang-c/Index.h b/include/clang-c/Index.h index 15fde19eb974..1ac2b7f802c2 100644 --- a/include/clang-c/Index.h +++ b/include/clang-c/Index.h @@ -478,8 +478,8 @@ CINDEX_LINKAGE void clang_getExpansionLocation(CXSourceLocation location, unsigned *offset); /** - * \brief Retrieve the file, line, column, and offset represented by - * the given source location, as specified in a # line directive. + * \brief Retrieve the file, line and column represented by the given source + * location, as specified in a # line directive. * * Example: given the following source code in a file somefile.c * @@ -3011,8 +3011,9 @@ enum CXTypeKind { CXType_ObjCClass = 28, CXType_ObjCSel = 29, CXType_Float128 = 30, + CXType_Half = 31, CXType_FirstBuiltin = CXType_Void, - CXType_LastBuiltin = CXType_ObjCSel, + CXType_LastBuiltin = CXType_Half, CXType_Complex = 100, CXType_Pointer = 101, @@ -3436,6 +3437,16 @@ CINDEX_LINKAGE long long clang_getArraySize(CXType T); CINDEX_LINKAGE CXType clang_Type_getNamedType(CXType T); /** + * \brief Determine if a typedef is 'transparent' tag. + * + * A typedef is considered 'transparent' if it shares a name and spelling + * location with its underlying tag type, as is the case with the NS_ENUM macro. + * + * \returns non-zero if transparent and zero otherwise. + */ +CINDEX_LINKAGE unsigned clang_Type_isTransparentTagTypedef(CXType T); + +/** * \brief List the possible error codes for \c clang_Type_getSizeOf, * \c clang_Type_getAlignOf, \c clang_Type_getOffsetOf and * \c clang_Cursor_getOffsetOf. @@ -4023,8 +4034,8 @@ CINDEX_LINKAGE unsigned clang_Cursor_getObjCDeclQualifiers(CXCursor C); /** * \brief Given a cursor that represents an Objective-C method or property - * declaration, return non-zero if the declaration was affected by "@optional". - * Returns zero if the cursor is not such a declaration or it is "@required". + * declaration, return non-zero if the declaration was affected by "\@optional". + * Returns zero if the cursor is not such a declaration or it is "\@required". */ CINDEX_LINKAGE unsigned clang_Cursor_isObjCOptional(CXCursor C); @@ -4700,7 +4711,7 @@ enum CXCompletionChunkKind { */ CXCompletionChunk_HorizontalSpace, /** - * Vertical space ('\n'), after which it is generally a good idea to + * Vertical space ('\\n'), after which it is generally a good idea to * perform indentation. */ CXCompletionChunk_VerticalSpace |
