//! Rust bindings for `libclang`. //! //! ## [Documentation](https://docs.rs/clang-sys) //! //! Note that the documentation on https://docs.rs for this crate assumes usage //! of the `runtime` Cargo feature as well as the Cargo feature for the latest //! supported version of `libclang` (e.g., `clang_11_0`), neither of which are //! enabled by default. //! //! Due to the usage of the `runtime` Cargo feature, this documentation will //! contain some additional types and functions to manage a dynamically loaded //! `libclang` instance at runtime. //! //! Due to the usage of the Cargo feature for the latest supported version of //! `libclang`, this documentation will contain constants and functions that are //! not available in the oldest supported version of `libclang` (3.5). All of //! these types and functions have a documentation comment which specifies the //! minimum `libclang` version required to use the item.
cenum! { enum CXCallingConv { const CXCallingConv_Default = 0, const CXCallingConv_C = 1, const CXCallingConv_X86StdCall = 2, const CXCallingConv_X86FastCall = 3, const CXCallingConv_X86ThisCall = 4, const CXCallingConv_X86Pascal = 5, const CXCallingConv_AAPCS = 6, const CXCallingConv_AAPCS_VFP = 7, /// Only produced by `libclang` 4.0 and later. const CXCallingConv_X86RegCall = 8, const CXCallingConv_IntelOclBicc = 9, const CXCallingConv_Win64 = 10, const CXCallingConv_X86_64Win64 = 10, const CXCallingConv_X86_64SysV = 11, /// Only produced by `libclang` 3.6 and later. const CXCallingConv_X86VectorCall = 12, /// Only produced by `libclang` 3.9 and later. const CXCallingConv_Swift = 13, /// Only produced by `libclang` 3.9 and later. const CXCallingConv_PreserveMost = 14, /// Only produced by `libclang` 3.9 and later. const CXCallingConv_PreserveAll = 15, /// Only produced by `libclang` 8.0 and later. const CXCallingConv_AArch64VectorCall = 16, const CXCallingConv_Invalid = 100, const CXCallingConv_Unexposed = 200, /// Only produced by `libclang` 13.0 and later. const CXCallingConv_SwiftAsync = 17, /// Only produced by `libclang` 15.0 and later. const CXCallingConv_AArch64SVEPCS = 18,
}
}
cenum! { enum CXCursorKind { const CXCursor_UnexposedDecl = 1, const CXCursor_StructDecl = 2, const CXCursor_UnionDecl = 3, const CXCursor_ClassDecl = 4, const CXCursor_EnumDecl = 5, const CXCursor_FieldDecl = 6, const CXCursor_EnumConstantDecl = 7, const CXCursor_FunctionDecl = 8, const CXCursor_VarDecl = 9, const CXCursor_ParmDecl = 10, const CXCursor_ObjCInterfaceDecl = 11, const CXCursor_ObjCCategoryDecl = 12, const CXCursor_ObjCProtocolDecl = 13, const CXCursor_ObjCPropertyDecl = 14, const CXCursor_ObjCIvarDecl = 15, const CXCursor_ObjCInstanceMethodDecl = 16, const CXCursor_ObjCClassMethodDecl = 17, const CXCursor_ObjCImplementationDecl = 18, const CXCursor_ObjCCategoryImplDecl = 19, const CXCursor_TypedefDecl = 20, const CXCursor_CXXMethod = 21, const CXCursor_Namespace = 22, const CXCursor_LinkageSpec = 23, const CXCursor_Constructor = 24, const CXCursor_Destructor = 25, const CXCursor_ConversionFunction = 26, const CXCursor_TemplateTypeParameter = 27, const CXCursor_NonTypeTemplateParameter = 28, const CXCursor_TemplateTemplateParameter = 29, const CXCursor_FunctionTemplate = 30, const CXCursor_ClassTemplate = 31, const CXCursor_ClassTemplatePartialSpecialization = 32, const CXCursor_NamespaceAlias = 33, const CXCursor_UsingDirective = 34, const CXCursor_UsingDeclaration = 35, const CXCursor_TypeAliasDecl = 36, const CXCursor_ObjCSynthesizeDecl = 37, const CXCursor_ObjCDynamicDecl = 38, const CXCursor_CXXAccessSpecifier = 39, const CXCursor_ObjCSuperClassRef = 40, const CXCursor_ObjCProtocolRef = 41, const CXCursor_ObjCClassRef = 42, const CXCursor_TypeRef = 43, const CXCursor_CXXBaseSpecifier = 44, const CXCursor_TemplateRef = 45, const CXCursor_NamespaceRef = 46, const CXCursor_MemberRef = 47, const CXCursor_LabelRef = 48, const CXCursor_OverloadedDeclRef = 49, const CXCursor_VariableRef = 50, const CXCursor_InvalidFile = 70, const CXCursor_NoDeclFound = 71, const CXCursor_NotImplemented = 72, const CXCursor_InvalidCode = 73, const CXCursor_UnexposedExpr = 100, const CXCursor_DeclRefExpr = 101, const CXCursor_MemberRefExpr = 102, const CXCursor_CallExpr = 103, const CXCursor_ObjCMessageExpr = 104, const CXCursor_BlockExpr = 105, const CXCursor_IntegerLiteral = 106, const CXCursor_FloatingLiteral = 107, const CXCursor_ImaginaryLiteral = 108, const CXCursor_StringLiteral = 109, const CXCursor_CharacterLiteral = 110, const CXCursor_ParenExpr = 111, const CXCursor_UnaryOperator = 112, const CXCursor_ArraySubscriptExpr = 113, const CXCursor_BinaryOperator = 114, const CXCursor_CompoundAssignOperator = 115, const CXCursor_ConditionalOperator = 116, const CXCursor_CStyleCastExpr = 117, const CXCursor_CompoundLiteralExpr = 118, const CXCursor_InitListExpr = 119, const CXCursor_AddrLabelExpr = 120, const CXCursor_StmtExpr = 121, const CXCursor_GenericSelectionExpr = 122, const CXCursor_GNUNullExpr = 123, const CXCursor_CXXStaticCastExpr = 124, const CXCursor_CXXDynamicCastExpr = 125, const CXCursor_CXXReinterpretCastExpr = 126, const CXCursor_CXXConstCastExpr = 127, const CXCursor_CXXFunctionalCastExpr = 128, const CXCursor_CXXTypeidExpr = 129, const CXCursor_CXXBoolLiteralExpr = 130, const CXCursor_CXXNullPtrLiteralExpr = 131, const CXCursor_CXXThisExpr = 132, const CXCursor_CXXThrowExpr = 133, const CXCursor_CXXNewExpr = 134, const CXCursor_CXXDeleteExpr = 135, const CXCursor_UnaryExpr = 136, const CXCursor_ObjCStringLiteral = 137, const CXCursor_ObjCEncodeExpr = 138, const CXCursor_ObjCSelectorExpr = 139, const CXCursor_ObjCProtocolExpr = 140, const CXCursor_ObjCBridgedCastExpr = 141, const CXCursor_PackExpansionExpr = 142, const CXCursor_SizeOfPackExpr = 143, const CXCursor_LambdaExpr = 144, const CXCursor_ObjCBoolLiteralExpr = 145, const CXCursor_ObjCSelfExpr = 146, /// Only produced by `libclang` 3.8 and later. const CXCursor_OMPArraySectionExpr = 147, /// Only produced by `libclang` 3.9 and later. const CXCursor_ObjCAvailabilityCheckExpr = 148, /// Only produced by `libclang` 7.0 and later. const CXCursor_FixedPointLiteral = 149, /// Only produced by `libclang` 12.0 and later. const CXCursor_OMPArrayShapingExpr = 150, /// Only produced by `libclang` 12.0 and later. const CXCursor_OMPIteratorExpr = 151, /// Only produced by `libclang` 12.0 and later. const CXCursor_CXXAddrspaceCastExpr = 152, /// Only produced by `libclang` 15.0 and later. const CXCursor_ConceptSpecializationExpr = 153, /// Only produced by `libclang` 15.0 and later. const CXCursor_RequiresExpr = 154, /// Only produced by `libclang` 16.0 and later. const CXCursor_CXXParenListInitExpr = 155, const CXCursor_UnexposedStmt = 200, const CXCursor_LabelStmt = 201, const CXCursor_CompoundStmt = 202, const CXCursor_CaseStmt = 203, const CXCursor_DefaultStmt = 204, const CXCursor_IfStmt = 205, const CXCursor_SwitchStmt = 206, const CXCursor_WhileStmt = 207, const CXCursor_DoStmt = 208, const CXCursor_ForStmt = 209, const CXCursor_GotoStmt = 210, const CXCursor_IndirectGotoStmt = 211, const CXCursor_ContinueStmt = 212, const CXCursor_BreakStmt = 213, const CXCursor_ReturnStmt = 214, /// Duplicate of `CXCursor_GccAsmStmt`. const CXCursor_AsmStmt = 215, const CXCursor_ObjCAtTryStmt = 216, const CXCursor_ObjCAtCatchStmt = 217, const CXCursor_ObjCAtFinallyStmt = 218, const CXCursor_ObjCAtThrowStmt = 219, const CXCursor_ObjCAtSynchronizedStmt = 220, const CXCursor_ObjCAutoreleasePoolStmt = 221, const CXCursor_ObjCForCollectionStmt = 222, const CXCursor_CXXCatchStmt = 223, const CXCursor_CXXTryStmt = 224, const CXCursor_CXXForRangeStmt = 225, const CXCursor_SEHTryStmt = 226, const CXCursor_SEHExceptStmt = 227, const CXCursor_SEHFinallyStmt = 228, const CXCursor_MSAsmStmt = 229, const CXCursor_NullStmt = 230, const CXCursor_DeclStmt = 231, const CXCursor_OMPParallelDirective = 232, const CXCursor_OMPSimdDirective = 233, const CXCursor_OMPForDirective = 234, const CXCursor_OMPSectionsDirective = 235, const CXCursor_OMPSectionDirective = 236, const CXCursor_OMPSingleDirective = 237, const CXCursor_OMPParallelForDirective = 238, const CXCursor_OMPParallelSectionsDirective = 239, const CXCursor_OMPTaskDirective = 240, const CXCursor_OMPMasterDirective = 241, const CXCursor_OMPCriticalDirective = 242, const CXCursor_OMPTaskyieldDirective = 243, const CXCursor_OMPBarrierDirective = 244, const CXCursor_OMPTaskwaitDirective = 245, const CXCursor_OMPFlushDirective = 246, const CXCursor_SEHLeaveStmt = 247, /// Only produced by `libclang` 3.6 and later. const CXCursor_OMPOrderedDirective = 248, /// Only produced by `libclang` 3.6 and later. const CXCursor_OMPAtomicDirective = 249, /// Only produced by `libclang` 3.6 and later. const CXCursor_OMPForSimdDirective = 250, /// Only produced by `libclang` 3.6 and later. const CXCursor_OMPParallelForSimdDirective = 251, /// Only produced by `libclang` 3.6 and later. const CXCursor_OMPTargetDirective = 252, /// Only produced by `libclang` 3.6 and later. const CXCursor_OMPTeamsDirective = 253, /// Only produced by `libclang` 3.7 and later. const CXCursor_OMPTaskgroupDirective = 254, /// Only produced by `libclang` 3.7 and later. const CXCursor_OMPCancellationPointDirective = 255, /// Only produced by `libclang` 3.7 and later. const CXCursor_OMPCancelDirective = 256, /// Only produced by `libclang` 3.8 and later. const CXCursor_OMPTargetDataDirective = 257, /// Only produced by `libclang` 3.8 and later. const CXCursor_OMPTaskLoopDirective = 258, /// Only produced by `libclang` 3.8 and later. const CXCursor_OMPTaskLoopSimdDirective = 259, /// Only produced by `libclang` 3.8 and later. const CXCursor_OMPDistributeDirective = 260, /// Only produced by `libclang` 3.9 and later. const CXCursor_OMPTargetEnterDataDirective = 261, /// Only produced by `libclang` 3.9 and later. const CXCursor_OMPTargetExitDataDirective = 262, /// Only produced by `libclang` 3.9 and later. const CXCursor_OMPTargetParallelDirective = 263, /// Only produced by `libclang` 3.9 and later. const CXCursor_OMPTargetParallelForDirective = 264, /// Only produced by `libclang` 3.9 and later. const CXCursor_OMPTargetUpdateDirective = 265, /// Only produced by `libclang` 3.9 and later. const CXCursor_OMPDistributeParallelForDirective = 266, /// Only produced by `libclang` 3.9 and later. const CXCursor_OMPDistributeParallelForSimdDirective = 267, /// Only produced by `libclang` 3.9 and later. const CXCursor_OMPDistributeSimdDirective = 268, /// Only produced by `libclang` 3.9 and later. const CXCursor_OMPTargetParallelForSimdDirective = 269, /// Only produced by `libclang` 4.0 and later. const CXCursor_OMPTargetSimdDirective = 270, /// Only produced by `libclang` 4.0 and later. const CXCursor_OMPTeamsDistributeDirective = 271, /// Only produced by `libclang` 4.0 and later. const CXCursor_OMPTeamsDistributeSimdDirective = 272, /// Only produced by `libclang` 4.0 and later. const CXCursor_OMPTeamsDistributeParallelForSimdDirective = 273, /// Only produced by `libclang` 4.0 and later. const CXCursor_OMPTeamsDistributeParallelForDirective = 274, /// Only produced by `libclang` 4.0 and later. const CXCursor_OMPTargetTeamsDirective = 275, /// Only produced by `libclang` 4.0 and later. const CXCursor_OMPTargetTeamsDistributeDirective = 276, /// Only produced by `libclang` 4.0 and later. const CXCursor_OMPTargetTeamsDistributeParallelForDirective = 277, /// Only produced by `libclang` 4.0 and later. const CXCursor_OMPTargetTeamsDistributeParallelForSimdDirective = 278, /// Only producer by `libclang` 4.0 and later. const CXCursor_OMPTargetTeamsDistributeSimdDirective = 279, /// Only produced by 'libclang' 9.0 and later. const CXCursor_BuiltinBitCastExpr = 280, /// Only produced by `libclang` 10.0 and later. const CXCursor_OMPMasterTaskLoopDirective = 281, /// Only produced by `libclang` 10.0 and later. const CXCursor_OMPParallelMasterTaskLoopDirective = 282, /// Only produced by `libclang` 10.0 and later. const CXCursor_OMPMasterTaskLoopSimdDirective = 283, /// Only produced by `libclang` 10.0 and later. const CXCursor_OMPParallelMasterTaskLoopSimdDirective = 284, /// Only produced by `libclang` 10.0 and later. const CXCursor_OMPParallelMasterDirective = 285, /// Only produced by `libclang` 11.0 and later. const CXCursor_OMPDepobjDirective = 286, /// Only produced by `libclang` 11.0 and later. const CXCursor_OMPScanDirective = 287, /// Only produced by `libclang` 13.0 and later. const CXCursor_OMPTileDirective = 288, /// Only produced by `libclang` 13.0 and later. const CXCursor_OMPCanonicalLoop = 289, /// Only produced by `libclang` 13.0 and later. const CXCursor_OMPInteropDirective = 290, /// Only produced by `libclang` 13.0 and later. const CXCursor_OMPDispatchDirective = 291, /// Only produced by `libclang` 13.0 and later. const CXCursor_OMPMaskedDirective = 292, /// Only produced by `libclang` 13.0 and later. const CXCursor_OMPUnrollDirective = 293, /// Only produced by `libclang` 14.0 and later. const CXCursor_OMPMetaDirective = 294, /// Only produced by `libclang` 14.0 and later. const CXCursor_OMPGenericLoopDirective = 295, /// Only produced by `libclang` 15.0 and later. const CXCursor_OMPTeamsGenericLoopDirective = 296, /// Only produced by `libclang` 15.0 and later. const CXCursor_OMPTargetTeamsGenericLoopDirective = 297, /// Only produced by `libclang` 15.0 and later. const CXCursor_OMPParallelGenericLoopDirective = 298, /// Only produced by `libclang` 15.0 and later. const CXCursor_OMPTargetParallelGenericLoopDirective = 299, /// Only produced by `libclang` 15.0 and later. const CXCursor_OMPParallelMaskedDirective = 300, /// Only produced by `libclang` 15.0 and later. const CXCursor_OMPMaskedTaskLoopDirective = 301, /// Only produced by `libclang` 15.0 and later. const CXCursor_OMPMaskedTaskLoopSimdDirective = 302, /// Only produced by `libclang` 15.0 and later. const CXCursor_OMPParallelMaskedTaskLoopDirective = 303, /// Only produced by `libclang` 15.0 and later. const CXCursor_OMPParallelMaskedTaskLoopSimdDirective = 304, /// Only produced by `libclang` 16.0 and later. const CXCursor_OMPErrorDirective = 305, #[cfg(not(feature="clang_15_0"))] const CXCursor_TranslationUnit = 300, #[cfg(feature="clang_15_0")] const CXCursor_TranslationUnit = 350, const CXCursor_UnexposedAttr = 400, const CXCursor_IBActionAttr = 401, const CXCursor_IBOutletAttr = 402, const CXCursor_IBOutletCollectionAttr = 403, const CXCursor_CXXFinalAttr = 404, const CXCursor_CXXOverrideAttr = 405, const CXCursor_AnnotateAttr = 406, const CXCursor_AsmLabelAttr = 407, const CXCursor_PackedAttr = 408, const CXCursor_PureAttr = 409, const CXCursor_ConstAttr = 410, const CXCursor_NoDuplicateAttr = 411, const CXCursor_CUDAConstantAttr = 412, const CXCursor_CUDADeviceAttr = 413, const CXCursor_CUDAGlobalAttr = 414, const CXCursor_CUDAHostAttr = 415, /// Only produced by `libclang` 3.6 and later. const CXCursor_CUDASharedAttr = 416, /// Only produced by `libclang` 3.8 and later. const CXCursor_VisibilityAttr = 417, /// Only produced by `libclang` 3.8 and later. const CXCursor_DLLExport = 418, /// Only produced by `libclang` 3.8 and later. const CXCursor_DLLImport = 419, /// Only produced by `libclang` 8.0 and later. const CXCursor_NSReturnsRetained = 420, /// Only produced by `libclang` 8.0 and later. const CXCursor_NSReturnsNotRetained = 421, /// Only produced by `libclang` 8.0 and later. const CXCursor_NSReturnsAutoreleased = 422, /// Only produced by `libclang` 8.0 and later. const CXCursor_NSConsumesSelf = 423, /// Only produced by `libclang` 8.0 and later. const CXCursor_NSConsumed = 424, /// Only produced by `libclang` 8.0 and later. const CXCursor_ObjCException = 425, /// Only produced by `libclang` 8.0 and later. const CXCursor_ObjCNSObject = 426, /// Only produced by `libclang` 8.0 and later. const CXCursor_ObjCIndependentClass = 427, /// Only produced by `libclang` 8.0 and later. const CXCursor_ObjCPreciseLifetime = 428, /// Only produced by `libclang` 8.0 and later. const CXCursor_ObjCReturnsInnerPointer = 429, /// Only produced by `libclang` 8.0 and later. const CXCursor_ObjCRequiresSuper = 430, /// Only produced by `libclang` 8.0 and later. const CXCursor_ObjCRootClass = 431, /// Only produced by `libclang` 8.0 and later. const CXCursor_ObjCSubclassingRestricted = 432, /// Only produced by `libclang` 8.0 and later. const CXCursor_ObjCExplicitProtocolImpl = 433, /// Only produced by `libclang` 8.0 and later. const CXCursor_ObjCDesignatedInitializer = 434, /// Only produced by `libclang` 8.0 and later. const CXCursor_ObjCRuntimeVisible = 435, /// Only produced by `libclang` 8.0 and later. const CXCursor_ObjCBoxable = 436, /// Only produced by `libclang` 8.0 and later. const CXCursor_FlagEnum = 437, /// Only produced by `libclang` 9.0 and later. const CXCursor_ConvergentAttr = 438, /// Only produced by `libclang` 9.0 and later. const CXCursor_WarnUnusedAttr = 439, /// Only produced by `libclang` 9.0 and later. const CXCursor_WarnUnusedResultAttr = 440, /// Only produced by `libclang` 9.0 and later. const CXCursor_AlignedAttr = 441, const CXCursor_PreprocessingDirective = 500, const CXCursor_MacroDefinition = 501, /// Duplicate of `CXCursor_MacroInstantiation`. const CXCursor_MacroExpansion = 502, const CXCursor_InclusionDirective = 503, const CXCursor_ModuleImportDecl = 600, /// Only produced by `libclang` 3.8 and later. const CXCursor_TypeAliasTemplateDecl = 601, /// Only produced by `libclang` 3.9 and later. const CXCursor_StaticAssert = 602, /// Only produced by `libclang` 4.0 and later. const CXCursor_FriendDecl = 603, /// Only produced by `libclang` 15.0 and later. const CXCursor_ConceptDecl = 604, /// Only produced by `libclang` 3.7 and later. const CXCursor_OverloadCandidate = 700,
}
}
cenum! { /// Only available on `libclang` 5.0 and later. #[cfg(feature = "clang_5_0")] enum CXCursor_ExceptionSpecificationKind { const CXCursor_ExceptionSpecificationKind_None = 0, const CXCursor_ExceptionSpecificationKind_DynamicNone = 1, const CXCursor_ExceptionSpecificationKind_Dynamic = 2, const CXCursor_ExceptionSpecificationKind_MSAny = 3, const CXCursor_ExceptionSpecificationKind_BasicNoexcept = 4, const CXCursor_ExceptionSpecificationKind_ComputedNoexcept = 5, const CXCursor_ExceptionSpecificationKind_Unevaluated = 6, const CXCursor_ExceptionSpecificationKind_Uninstantiated = 7, const CXCursor_ExceptionSpecificationKind_Unparsed = 8, /// Only available on `libclang` 9.0 and later. #[cfg(feature = "clang_9_0")] const CXCursor_ExceptionSpecificationKind_NoThrow = 9,
}
}
cenum! { enum CXTypeKind { const CXType_Invalid = 0, const CXType_Unexposed = 1, const CXType_Void = 2, const CXType_Bool = 3, const CXType_Char_U = 4, const CXType_UChar = 5, const CXType_Char16 = 6, const CXType_Char32 = 7, const CXType_UShort = 8, const CXType_UInt = 9, const CXType_ULong = 10, const CXType_ULongLong = 11, const CXType_UInt128 = 12, const CXType_Char_S = 13, const CXType_SChar = 14, const CXType_WChar = 15, const CXType_Short = 16, const CXType_Int = 17, const CXType_Long = 18, const CXType_LongLong = 19, const CXType_Int128 = 20, const CXType_Float = 21, const CXType_Double = 22, const CXType_LongDouble = 23, const CXType_NullPtr = 24, const CXType_Overload = 25, const CXType_Dependent = 26, const CXType_ObjCId = 27, const CXType_ObjCClass = 28, const CXType_ObjCSel = 29, /// Only produced by `libclang` 3.9 and later. const CXType_Float128 = 30, /// Only produced by `libclang` 5.0 and later. const CXType_Half = 31, /// Only produced by `libclang` 6.0 and later. const CXType_Float16 = 32, /// Only produced by `libclang` 7.0 and later. const CXType_ShortAccum = 33, /// Only produced by `libclang` 7.0 and later. const CXType_Accum = 34, /// Only produced by `libclang` 7.0 and later. const CXType_LongAccum = 35, /// Only produced by `libclang` 7.0 and later. const CXType_UShortAccum = 36, /// Only produced by `libclang` 7.0 and later. const CXType_UAccum = 37, /// Only produced by `libclang` 7.0 and later. const CXType_ULongAccum = 38, /// Only produced by `libclang` 11.0 and later. const CXType_BFloat16 = 39, /// Only produced by `libclang` 14.0 and later. const CXType_Ibm128 = 40, const CXType_Complex = 100, const CXType_Pointer = 101, const CXType_BlockPointer = 102, const CXType_LValueReference = 103, const CXType_RValueReference = 104, const CXType_Record = 105, const CXType_Enum = 106, const CXType_Typedef = 107, const CXType_ObjCInterface = 108, const CXType_ObjCObjectPointer = 109, const CXType_FunctionNoProto = 110, const CXType_FunctionProto = 111, const CXType_ConstantArray = 112, const CXType_Vector = 113, const CXType_IncompleteArray = 114, const CXType_VariableArray = 115, const CXType_DependentSizedArray = 116, const CXType_MemberPointer = 117, /// Only produced by `libclang` 3.8 and later. const CXType_Auto = 118, /// Only produced by `libclang` 3.9 and later. const CXType_Elaborated = 119, /// Only produced by `libclang` 5.0 and later. const CXType_Pipe = 120, /// Only produced by `libclang` 5.0 and later. const CXType_OCLImage1dRO = 121, /// Only produced by `libclang` 5.0 and later. const CXType_OCLImage1dArrayRO = 122, /// Only produced by `libclang` 5.0 and later. const CXType_OCLImage1dBufferRO = 123, /// Only produced by `libclang` 5.0 and later. const CXType_OCLImage2dRO = 124, /// Only produced by `libclang` 5.0 and later. const CXType_OCLImage2dArrayRO = 125, /// Only produced by `libclang` 5.0 and later. const CXType_OCLImage2dDepthRO = 126, /// Only produced by `libclang` 5.0 and later. const CXType_OCLImage2dArrayDepthRO = 127, /// Only produced by `libclang` 5.0 and later. const CXType_OCLImage2dMSAARO = 128, /// Only produced by `libclang` 5.0 and later. const CXType_OCLImage2dArrayMSAARO = 129, /// Only produced by `libclang` 5.0 and later. const CXType_OCLImage2dMSAADepthRO = 130, /// Only produced by `libclang` 5.0 and later. const CXType_OCLImage2dArrayMSAADepthRO = 131, /// Only produced by `libclang` 5.0 and later. const CXType_OCLImage3dRO = 132, /// Only produced by `libclang` 5.0 and later. const CXType_OCLImage1dWO = 133, /// Only produced by `libclang` 5.0 and later. const CXType_OCLImage1dArrayWO = 134, /// Only produced by `libclang` 5.0 and later. const CXType_OCLImage1dBufferWO = 135, /// Only produced by `libclang` 5.0 and later. const CXType_OCLImage2dWO = 136, /// Only produced by `libclang` 5.0 and later. const CXType_OCLImage2dArrayWO = 137, /// Only produced by `libclang` 5.0 and later. const CXType_OCLImage2dDepthWO = 138, /// Only produced by `libclang` 5.0 and later. const CXType_OCLImage2dArrayDepthWO = 139, /// Only produced by `libclang` 5.0 and later. const CXType_OCLImage2dMSAAWO = 140, /// Only produced by `libclang` 5.0 and later. const CXType_OCLImage2dArrayMSAAWO = 141, /// Only produced by `libclang` 5.0 and later. const CXType_OCLImage2dMSAADepthWO = 142, /// Only produced by `libclang` 5.0 and later. const CXType_OCLImage2dArrayMSAADepthWO = 143, /// Only produced by `libclang` 5.0 and later. const CXType_OCLImage3dWO = 144, /// Only produced by `libclang` 5.0 and later. const CXType_OCLImage1dRW = 145, /// Only produced by `libclang` 5.0 and later. const CXType_OCLImage1dArrayRW = 146, /// Only produced by `libclang` 5.0 and later. const CXType_OCLImage1dBufferRW = 147, /// Only produced by `libclang` 5.0 and later. const CXType_OCLImage2dRW = 148, /// Only produced by `libclang` 5.0 and later. const CXType_OCLImage2dArrayRW = 149, /// Only produced by `libclang` 5.0 and later. const CXType_OCLImage2dDepthRW = 150, /// Only produced by `libclang` 5.0 and later. const CXType_OCLImage2dArrayDepthRW = 151, /// Only produced by `libclang` 5.0 and later. const CXType_OCLImage2dMSAARW = 152, /// Only produced by `libclang` 5.0 and later. const CXType_OCLImage2dArrayMSAARW = 153, /// Only produced by `libclang` 5.0 and later. const CXType_OCLImage2dMSAADepthRW = 154, /// Only produced by `libclang` 5.0 and later. const CXType_OCLImage2dArrayMSAADepthRW = 155, /// Only produced by `libclang` 5.0 and later. const CXType_OCLImage3dRW = 156, /// Only produced by `libclang` 5.0 and later. const CXType_OCLSampler = 157, /// Only produced by `libclang` 5.0 and later. const CXType_OCLEvent = 158, /// Only produced by `libclang` 5.0 and later. const CXType_OCLQueue = 159, /// Only produced by `libclang` 5.0 and later. const CXType_OCLReserveID = 160, /// Only produced by `libclang` 8.0 and later. const CXType_ObjCObject = 161, /// Only produced by `libclang` 8.0 and later. const CXType_ObjCTypeParam = 162, /// Only produced by `libclang` 8.0 and later. const CXType_Attributed = 163, /// Only produced by `libclang` 8.0 and later. const CXType_OCLIntelSubgroupAVCMcePayload = 164, /// Only produced by `libclang` 8.0 and later. const CXType_OCLIntelSubgroupAVCImePayload = 165, /// Only produced by `libclang` 8.0 and later. const CXType_OCLIntelSubgroupAVCRefPayload = 166, /// Only produced by `libclang` 8.0 and later. const CXType_OCLIntelSubgroupAVCSicPayload = 167, /// Only produced by `libclang` 8.0 and later. const CXType_OCLIntelSubgroupAVCMceResult = 168, /// Only produced by `libclang` 8.0 and later. const CXType_OCLIntelSubgroupAVCImeResult = 169, /// Only produced by `libclang` 8.0 and later. const CXType_OCLIntelSubgroupAVCRefResult = 170, /// Only produced by `libclang` 8.0 and later. const CXType_OCLIntelSubgroupAVCSicResult = 171, /// Only produced by `libclang` 8.0 and later. const CXType_OCLIntelSubgroupAVCImeResultSingleRefStreamout = 172, /// Only produced by `libclang` 8.0 and later. const CXType_OCLIntelSubgroupAVCImeResultDualRefStreamout = 173, /// Only produced by `libclang` 8.0 and later. const CXType_OCLIntelSubgroupAVCImeSingleRefStreamin = 174, /// Only produced by `libclang` 8.0 and later. const CXType_OCLIntelSubgroupAVCImeDualRefStreamin = 175, /// Only produced by `libclang` 9.0 and later. const CXType_ExtVector = 176, /// Only produced by `libclang` 11.0 and later. const CXType_Atomic = 177, /// Only produced by `libclang` 15.0 and later. const CXType_BTFTagAttributed = 178,
}
}
cenum! { enum CXTypeLayoutError { const CXTypeLayoutError_Invalid = -1, const CXTypeLayoutError_Incomplete = -2, const CXTypeLayoutError_Dependent = -3, const CXTypeLayoutError_NotConstantSize = -4, const CXTypeLayoutError_InvalidFieldName = -5, /// Only produced by `libclang` 9.0 and later. const CXTypeLayoutError_Undeduced = -6,
}
}
cenum! { /// Only available on `libclang` 3.8 and later. #[cfg(feature = "clang_3_8")] enum CXVisibilityKind { const CXVisibility_Invalid = 0, const CXVisibility_Hidden = 1, const CXVisibility_Protected = 2, const CXVisibility_Default = 3,
}
}
cenum! { /// Only available on `libclang` 8.0 and later. #[cfg(feature = "clang_8_0")] enum CXTypeNullabilityKind { const CXTypeNullability_NonNull = 0, const CXTypeNullability_Nullable = 1, const CXTypeNullability_Unspecified = 2, const CXTypeNullability_Invalid = 3, /// Only produced by `libclang` 12.0 and later. const CXTypeNullability_NullableResult = 4,
}
}
/// Only available on `libclang` 17.0 and later. #[cfg(feature = "clang_17_0")] #[cfg(not(target_os = "windows"))] pubtype CXIndexOptions_Flags = c_ushort;
/// Only available on `libclang` 17.0 and later. #[cfg(feature = "clang_17_0")] #[cfg(target_os = "windows")] pubtype CXIndexOptions_Flags = c_uint;
/// Only available on `libclang` 17.0 and later. #[cfg(feature = "clang_17_0")] pubconst CXIndexOptions_ExcludeDeclarationsFromPCH: CXIndexOptions_Flags = 1;
/// Only available on `libclang` 17.0 and later. #[cfg(feature = "clang_17_0")] pubconst CXIndexOptions_DisplayDiagnostics: CXIndexOptions_Flags = 2;
/// Only available on `libclang` 17.0 and later. #[cfg(feature = "clang_17_0")] pubconst CXIndexOptions_StorePreamblesInMemory: CXIndexOptions_Flags = 4;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.