1 // Copyright 2016 Kyle Mayes
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 //     http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
15 //! Rust bindings for `libclang`.
16 //!
17 //! ## Documentation
18 //!
19 //! There are two versions of the documentation, one for the API exposed when
20 //! linking dynamically or statically and one for the API exposed when linking
21 //! at runtime (see the
22 //! [Dependencies](https://github.com/KyleMayes/clang-sys#dependencies) section
23 //! of the README for more information on the linking options).
24 //!
25 //! The only difference between the APIs exposed is that when linking at runtime
26 //! a few additional types and functions are exposed to manage the loaded
27 //! `libclang` shared library.
28 //!
29 //! * Runtime - [Documentation](https://kylemayes.github.io/clang-sys/runtime/clang_sys)
30 //! * Dynamic / Static - [Documentation](https://kylemayes.github.io/clang-sys/default/clang_sys)
31 
32 #![allow(non_camel_case_types, non_snake_case, non_upper_case_globals)]
33 #![cfg_attr(feature = "cargo-clippy", allow(clippy::unreadable_literal))]
34 
35 extern crate glob;
36 extern crate libc;
37 #[cfg(feature = "runtime")]
38 extern crate libloading;
39 
40 pub mod support;
41 
42 #[macro_use]
43 mod link;
44 
45 use std::mem;
46 
47 use libc::*;
48 
49 pub type CXClientData = *mut c_void;
50 pub type CXCursorVisitor = extern "C" fn(CXCursor, CXCursor, CXClientData) -> CXChildVisitResult;
51 #[cfg(feature = "gte_clang_3_7")]
52 pub type CXFieldVisitor = extern "C" fn(CXCursor, CXClientData) -> CXVisitorResult;
53 pub type CXInclusionVisitor = extern "C" fn(CXFile, *mut CXSourceLocation, c_uint, CXClientData);
54 
55 //================================================
56 // Macros
57 //================================================
58 
59 /// Defines a C enum as a series of constants.
60 macro_rules! cenum {
61     ($(#[$meta:meta])* enum $name:ident {
62         $($(#[$vmeta:meta])* const $variant:ident = $value:expr), +,
63     }) => (
64         pub type $name = c_int;
65 
66         $($(#[$vmeta])* pub const $variant: $name = $value;)+
67     );
68     ($(#[$meta:meta])* enum $name:ident {
69         $($(#[$vmeta:meta])* const $variant:ident = $value:expr); +;
70     }) => (
71         pub type $name = c_int;
72 
73         $($(#[$vmeta])* pub const $variant: $name = $value;)+
74     );
75 }
76 
77 /// Implements a zeroing implementation of `Default` for the supplied type.
78 macro_rules! default {
79     (#[$meta:meta] $ty:ty) => {
80         #[$meta]
81         impl Default for $ty {
82             fn default() -> $ty {
83                 unsafe { mem::zeroed() }
84             }
85         }
86     };
87 
88     ($ty:ty) => {
89         impl Default for $ty {
90             fn default() -> $ty {
91                 unsafe { mem::zeroed() }
92             }
93         }
94     };
95 }
96 
97 //================================================
98 // Enums
99 //================================================
100 
101 cenum! {
102     enum CXAvailabilityKind {
103         const CXAvailability_Available = 0,
104         const CXAvailability_Deprecated = 1,
105         const CXAvailability_NotAvailable = 2,
106         const CXAvailability_NotAccessible = 3,
107     }
108 }
109 
110 cenum! {
111     enum CXCallingConv {
112         const CXCallingConv_Default = 0,
113         const CXCallingConv_C = 1,
114         const CXCallingConv_X86StdCall = 2,
115         const CXCallingConv_X86FastCall = 3,
116         const CXCallingConv_X86ThisCall = 4,
117         const CXCallingConv_X86Pascal = 5,
118         const CXCallingConv_AAPCS = 6,
119         const CXCallingConv_AAPCS_VFP = 7,
120         /// Only produced by `libclang` 4.0 and later.
121         const CXCallingConv_X86RegCall = 8,
122         const CXCallingConv_IntelOclBicc = 9,
123         const CXCallingConv_Win64 = 10,
124         const CXCallingConv_X86_64Win64 = 10,
125         const CXCallingConv_X86_64SysV = 11,
126         /// Only produced by `libclang` 3.6 and later.
127         const CXCallingConv_X86VectorCall = 12,
128         /// Only produced by `libclang` 3.9 and later.
129         const CXCallingConv_Swift = 13,
130         /// Only produced by `libclang` 3.9 and later.
131         const CXCallingConv_PreserveMost = 14,
132         /// Only produced by `libclang` 3.9 and later.
133         const CXCallingConv_PreserveAll = 15,
134         /// Only produced by `libclang` 8.0 and later.
135         const CXCallingConv_AArch64VectorCall = 16,
136         const CXCallingConv_Invalid = 100,
137         const CXCallingConv_Unexposed = 200,
138     }
139 }
140 
141 cenum! {
142     enum CXChildVisitResult {
143         const CXChildVisit_Break = 0,
144         const CXChildVisit_Continue = 1,
145         const CXChildVisit_Recurse = 2,
146     }
147 }
148 
149 cenum! {
150     enum CXCommentInlineCommandRenderKind {
151         const CXCommentInlineCommandRenderKind_Normal = 0,
152         const CXCommentInlineCommandRenderKind_Bold = 1,
153         const CXCommentInlineCommandRenderKind_Monospaced = 2,
154         const CXCommentInlineCommandRenderKind_Emphasized = 3,
155     }
156 }
157 
158 cenum! {
159     enum CXCommentKind {
160         const CXComment_Null = 0,
161         const CXComment_Text = 1,
162         const CXComment_InlineCommand = 2,
163         const CXComment_HTMLStartTag = 3,
164         const CXComment_HTMLEndTag = 4,
165         const CXComment_Paragraph = 5,
166         const CXComment_BlockCommand = 6,
167         const CXComment_ParamCommand = 7,
168         const CXComment_TParamCommand = 8,
169         const CXComment_VerbatimBlockCommand = 9,
170         const CXComment_VerbatimBlockLine = 10,
171         const CXComment_VerbatimLine = 11,
172         const CXComment_FullComment = 12,
173     }
174 }
175 
176 cenum! {
177     enum CXCommentParamPassDirection {
178         const CXCommentParamPassDirection_In = 0,
179         const CXCommentParamPassDirection_Out = 1,
180         const CXCommentParamPassDirection_InOut = 2,
181     }
182 }
183 
184 cenum! {
185     enum CXCompilationDatabase_Error {
186         const CXCompilationDatabase_NoError = 0,
187         const CXCompilationDatabase_CanNotLoadDatabase = 1,
188     }
189 }
190 
191 cenum! {
192     enum CXCompletionChunkKind {
193         const CXCompletionChunk_Optional = 0,
194         const CXCompletionChunk_TypedText = 1,
195         const CXCompletionChunk_Text = 2,
196         const CXCompletionChunk_Placeholder = 3,
197         const CXCompletionChunk_Informative = 4,
198         const CXCompletionChunk_CurrentParameter = 5,
199         const CXCompletionChunk_LeftParen = 6,
200         const CXCompletionChunk_RightParen = 7,
201         const CXCompletionChunk_LeftBracket = 8,
202         const CXCompletionChunk_RightBracket = 9,
203         const CXCompletionChunk_LeftBrace = 10,
204         const CXCompletionChunk_RightBrace = 11,
205         const CXCompletionChunk_LeftAngle = 12,
206         const CXCompletionChunk_RightAngle = 13,
207         const CXCompletionChunk_Comma = 14,
208         const CXCompletionChunk_ResultType = 15,
209         const CXCompletionChunk_Colon = 16,
210         const CXCompletionChunk_SemiColon = 17,
211         const CXCompletionChunk_Equal = 18,
212         const CXCompletionChunk_HorizontalSpace = 19,
213         const CXCompletionChunk_VerticalSpace = 20,
214     }
215 }
216 
217 cenum! {
218     enum CXCursorKind {
219         const CXCursor_UnexposedDecl = 1,
220         const CXCursor_StructDecl = 2,
221         const CXCursor_UnionDecl = 3,
222         const CXCursor_ClassDecl = 4,
223         const CXCursor_EnumDecl = 5,
224         const CXCursor_FieldDecl = 6,
225         const CXCursor_EnumConstantDecl = 7,
226         const CXCursor_FunctionDecl = 8,
227         const CXCursor_VarDecl = 9,
228         const CXCursor_ParmDecl = 10,
229         const CXCursor_ObjCInterfaceDecl = 11,
230         const CXCursor_ObjCCategoryDecl = 12,
231         const CXCursor_ObjCProtocolDecl = 13,
232         const CXCursor_ObjCPropertyDecl = 14,
233         const CXCursor_ObjCIvarDecl = 15,
234         const CXCursor_ObjCInstanceMethodDecl = 16,
235         const CXCursor_ObjCClassMethodDecl = 17,
236         const CXCursor_ObjCImplementationDecl = 18,
237         const CXCursor_ObjCCategoryImplDecl = 19,
238         const CXCursor_TypedefDecl = 20,
239         const CXCursor_CXXMethod = 21,
240         const CXCursor_Namespace = 22,
241         const CXCursor_LinkageSpec = 23,
242         const CXCursor_Constructor = 24,
243         const CXCursor_Destructor = 25,
244         const CXCursor_ConversionFunction = 26,
245         const CXCursor_TemplateTypeParameter = 27,
246         const CXCursor_NonTypeTemplateParameter = 28,
247         const CXCursor_TemplateTemplateParameter = 29,
248         const CXCursor_FunctionTemplate = 30,
249         const CXCursor_ClassTemplate = 31,
250         const CXCursor_ClassTemplatePartialSpecialization = 32,
251         const CXCursor_NamespaceAlias = 33,
252         const CXCursor_UsingDirective = 34,
253         const CXCursor_UsingDeclaration = 35,
254         const CXCursor_TypeAliasDecl = 36,
255         const CXCursor_ObjCSynthesizeDecl = 37,
256         const CXCursor_ObjCDynamicDecl = 38,
257         const CXCursor_CXXAccessSpecifier = 39,
258         const CXCursor_ObjCSuperClassRef = 40,
259         const CXCursor_ObjCProtocolRef = 41,
260         const CXCursor_ObjCClassRef = 42,
261         const CXCursor_TypeRef = 43,
262         const CXCursor_CXXBaseSpecifier = 44,
263         const CXCursor_TemplateRef = 45,
264         const CXCursor_NamespaceRef = 46,
265         const CXCursor_MemberRef = 47,
266         const CXCursor_LabelRef = 48,
267         const CXCursor_OverloadedDeclRef = 49,
268         const CXCursor_VariableRef = 50,
269         const CXCursor_InvalidFile = 70,
270         const CXCursor_NoDeclFound = 71,
271         const CXCursor_NotImplemented = 72,
272         const CXCursor_InvalidCode = 73,
273         const CXCursor_UnexposedExpr = 100,
274         const CXCursor_DeclRefExpr = 101,
275         const CXCursor_MemberRefExpr = 102,
276         const CXCursor_CallExpr = 103,
277         const CXCursor_ObjCMessageExpr = 104,
278         const CXCursor_BlockExpr = 105,
279         const CXCursor_IntegerLiteral = 106,
280         const CXCursor_FloatingLiteral = 107,
281         const CXCursor_ImaginaryLiteral = 108,
282         const CXCursor_StringLiteral = 109,
283         const CXCursor_CharacterLiteral = 110,
284         const CXCursor_ParenExpr = 111,
285         const CXCursor_UnaryOperator = 112,
286         const CXCursor_ArraySubscriptExpr = 113,
287         const CXCursor_BinaryOperator = 114,
288         const CXCursor_CompoundAssignOperator = 115,
289         const CXCursor_ConditionalOperator = 116,
290         const CXCursor_CStyleCastExpr = 117,
291         const CXCursor_CompoundLiteralExpr = 118,
292         const CXCursor_InitListExpr = 119,
293         const CXCursor_AddrLabelExpr = 120,
294         const CXCursor_StmtExpr = 121,
295         const CXCursor_GenericSelectionExpr = 122,
296         const CXCursor_GNUNullExpr = 123,
297         const CXCursor_CXXStaticCastExpr = 124,
298         const CXCursor_CXXDynamicCastExpr = 125,
299         const CXCursor_CXXReinterpretCastExpr = 126,
300         const CXCursor_CXXConstCastExpr = 127,
301         const CXCursor_CXXFunctionalCastExpr = 128,
302         const CXCursor_CXXTypeidExpr = 129,
303         const CXCursor_CXXBoolLiteralExpr = 130,
304         const CXCursor_CXXNullPtrLiteralExpr = 131,
305         const CXCursor_CXXThisExpr = 132,
306         const CXCursor_CXXThrowExpr = 133,
307         const CXCursor_CXXNewExpr = 134,
308         const CXCursor_CXXDeleteExpr = 135,
309         const CXCursor_UnaryExpr = 136,
310         const CXCursor_ObjCStringLiteral = 137,
311         const CXCursor_ObjCEncodeExpr = 138,
312         const CXCursor_ObjCSelectorExpr = 139,
313         const CXCursor_ObjCProtocolExpr = 140,
314         const CXCursor_ObjCBridgedCastExpr = 141,
315         const CXCursor_PackExpansionExpr = 142,
316         const CXCursor_SizeOfPackExpr = 143,
317         const CXCursor_LambdaExpr = 144,
318         const CXCursor_ObjCBoolLiteralExpr = 145,
319         const CXCursor_ObjCSelfExpr = 146,
320         /// Only produced by `libclang` 3.8 and later.
321         const CXCursor_OMPArraySectionExpr = 147,
322         /// Only produced by `libclang` 3.9 and later.
323         const CXCursor_ObjCAvailabilityCheckExpr = 148,
324         /// Only produced by `libclang` 7.0 and later.
325         const CXCursor_FixedPointLiteral = 149,
326         const CXCursor_UnexposedStmt = 200,
327         const CXCursor_LabelStmt = 201,
328         const CXCursor_CompoundStmt = 202,
329         const CXCursor_CaseStmt = 203,
330         const CXCursor_DefaultStmt = 204,
331         const CXCursor_IfStmt = 205,
332         const CXCursor_SwitchStmt = 206,
333         const CXCursor_WhileStmt = 207,
334         const CXCursor_DoStmt = 208,
335         const CXCursor_ForStmt = 209,
336         const CXCursor_GotoStmt = 210,
337         const CXCursor_IndirectGotoStmt = 211,
338         const CXCursor_ContinueStmt = 212,
339         const CXCursor_BreakStmt = 213,
340         const CXCursor_ReturnStmt = 214,
341         /// Duplicate of `CXCursor_GccAsmStmt`.
342         const CXCursor_AsmStmt = 215,
343         const CXCursor_ObjCAtTryStmt = 216,
344         const CXCursor_ObjCAtCatchStmt = 217,
345         const CXCursor_ObjCAtFinallyStmt = 218,
346         const CXCursor_ObjCAtThrowStmt = 219,
347         const CXCursor_ObjCAtSynchronizedStmt = 220,
348         const CXCursor_ObjCAutoreleasePoolStmt = 221,
349         const CXCursor_ObjCForCollectionStmt = 222,
350         const CXCursor_CXXCatchStmt = 223,
351         const CXCursor_CXXTryStmt = 224,
352         const CXCursor_CXXForRangeStmt = 225,
353         const CXCursor_SEHTryStmt = 226,
354         const CXCursor_SEHExceptStmt = 227,
355         const CXCursor_SEHFinallyStmt = 228,
356         const CXCursor_MSAsmStmt = 229,
357         const CXCursor_NullStmt = 230,
358         const CXCursor_DeclStmt = 231,
359         const CXCursor_OMPParallelDirective = 232,
360         const CXCursor_OMPSimdDirective = 233,
361         const CXCursor_OMPForDirective = 234,
362         const CXCursor_OMPSectionsDirective = 235,
363         const CXCursor_OMPSectionDirective = 236,
364         const CXCursor_OMPSingleDirective = 237,
365         const CXCursor_OMPParallelForDirective = 238,
366         const CXCursor_OMPParallelSectionsDirective = 239,
367         const CXCursor_OMPTaskDirective = 240,
368         const CXCursor_OMPMasterDirective = 241,
369         const CXCursor_OMPCriticalDirective = 242,
370         const CXCursor_OMPTaskyieldDirective = 243,
371         const CXCursor_OMPBarrierDirective = 244,
372         const CXCursor_OMPTaskwaitDirective = 245,
373         const CXCursor_OMPFlushDirective = 246,
374         const CXCursor_SEHLeaveStmt = 247,
375         /// Only produced by `libclang` 3.6 and later.
376         const CXCursor_OMPOrderedDirective = 248,
377         /// Only produced by `libclang` 3.6 and later.
378         const CXCursor_OMPAtomicDirective = 249,
379         /// Only produced by `libclang` 3.6 and later.
380         const CXCursor_OMPForSimdDirective = 250,
381         /// Only produced by `libclang` 3.6 and later.
382         const CXCursor_OMPParallelForSimdDirective = 251,
383         /// Only produced by `libclang` 3.6 and later.
384         const CXCursor_OMPTargetDirective = 252,
385         /// Only produced by `libclang` 3.6 and later.
386         const CXCursor_OMPTeamsDirective = 253,
387         /// Only produced by `libclang` 3.7 and later.
388         const CXCursor_OMPTaskgroupDirective = 254,
389         /// Only produced by `libclang` 3.7 and later.
390         const CXCursor_OMPCancellationPointDirective = 255,
391         /// Only produced by `libclang` 3.7 and later.
392         const CXCursor_OMPCancelDirective = 256,
393         /// Only produced by `libclang` 3.8 and later.
394         const CXCursor_OMPTargetDataDirective = 257,
395         /// Only produced by `libclang` 3.8 and later.
396         const CXCursor_OMPTaskLoopDirective = 258,
397         /// Only produced by `libclang` 3.8 and later.
398         const CXCursor_OMPTaskLoopSimdDirective = 259,
399         /// Only produced by `libclang` 3.8 and later.
400         const CXCursor_OMPDistributeDirective = 260,
401         /// Only produced by `libclang` 3.9 and later.
402         const CXCursor_OMPTargetEnterDataDirective = 261,
403         /// Only produced by `libclang` 3.9 and later.
404         const CXCursor_OMPTargetExitDataDirective = 262,
405         /// Only produced by `libclang` 3.9 and later.
406         const CXCursor_OMPTargetParallelDirective = 263,
407         /// Only produced by `libclang` 3.9 and later.
408         const CXCursor_OMPTargetParallelForDirective = 264,
409         /// Only produced by `libclang` 3.9 and later.
410         const CXCursor_OMPTargetUpdateDirective = 265,
411         /// Only produced by `libclang` 3.9 and later.
412         const CXCursor_OMPDistributeParallelForDirective = 266,
413         /// Only produced by `libclang` 3.9 and later.
414         const CXCursor_OMPDistributeParallelForSimdDirective = 267,
415         /// Only produced by `libclang` 3.9 and later.
416         const CXCursor_OMPDistributeSimdDirective = 268,
417         /// Only produced by `libclang` 3.9 and later.
418         const CXCursor_OMPTargetParallelForSimdDirective = 269,
419         /// Only produced by `libclang` 4.0 and later.
420         const CXCursor_OMPTargetSimdDirective = 270,
421         /// Only produced by `libclang` 4.0 and later.
422         const CXCursor_OMPTeamsDistributeDirective = 271,
423         /// Only produced by `libclang` 4.0 and later.
424         const CXCursor_OMPTeamsDistributeSimdDirective = 272,
425         /// Only produced by `libclang` 4.0 and later.
426         const CXCursor_OMPTeamsDistributeParallelForSimdDirective = 273,
427         /// Only produced by `libclang` 4.0 and later.
428         const CXCursor_OMPTeamsDistributeParallelForDirective = 274,
429         /// Only produced by `libclang` 4.0 and later.
430         const CXCursor_OMPTargetTeamsDirective = 275,
431         /// Only produced by `libclang` 4.0 and later.
432         const CXCursor_OMPTargetTeamsDistributeDirective = 276,
433         /// Only produced by `libclang` 4.0 and later.
434         const CXCursor_OMPTargetTeamsDistributeParallelForDirective = 277,
435         /// Only produced by `libclang` 4.0 and later.
436         const CXCursor_OMPTargetTeamsDistributeParallelForSimdDirective = 278,
437         /// Only producer by `libclang` 4.0 and later.
438         const CXCursor_OMPTargetTeamsDistributeSimdDirective = 279,
439         /// Only produced by 'libclang' 9.0 and later.
440         const CXCursor_BuiltinBitCastExpr = 280,
441         const CXCursor_TranslationUnit = 300,
442         const CXCursor_UnexposedAttr = 400,
443         const CXCursor_IBActionAttr = 401,
444         const CXCursor_IBOutletAttr = 402,
445         const CXCursor_IBOutletCollectionAttr = 403,
446         const CXCursor_CXXFinalAttr = 404,
447         const CXCursor_CXXOverrideAttr = 405,
448         const CXCursor_AnnotateAttr = 406,
449         const CXCursor_AsmLabelAttr = 407,
450         const CXCursor_PackedAttr = 408,
451         const CXCursor_PureAttr = 409,
452         const CXCursor_ConstAttr = 410,
453         const CXCursor_NoDuplicateAttr = 411,
454         const CXCursor_CUDAConstantAttr = 412,
455         const CXCursor_CUDADeviceAttr = 413,
456         const CXCursor_CUDAGlobalAttr = 414,
457         const CXCursor_CUDAHostAttr = 415,
458         /// Only produced by `libclang` 3.6 and later.
459         const CXCursor_CUDASharedAttr = 416,
460         /// Only produced by `libclang` 3.8 and later.
461         const CXCursor_VisibilityAttr = 417,
462         /// Only produced by `libclang` 3.8 and later.
463         const CXCursor_DLLExport = 418,
464         /// Only produced by `libclang` 3.8 and later.
465         const CXCursor_DLLImport = 419,
466         /// Only produced by `libclang` 8.0 and later.
467         const CXCursor_NSReturnsRetained = 420,
468         /// Only produced by `libclang` 8.0 and later.
469         const CXCursor_NSReturnsNotRetained = 421,
470         /// Only produced by `libclang` 8.0 and later.
471         const CXCursor_NSReturnsAutoreleased = 422,
472         /// Only produced by `libclang` 8.0 and later.
473         const CXCursor_NSConsumesSelf = 423,
474         /// Only produced by `libclang` 8.0 and later.
475         const CXCursor_NSConsumed = 424,
476         /// Only produced by `libclang` 8.0 and later.
477         const CXCursor_ObjCException = 425,
478         /// Only produced by `libclang` 8.0 and later.
479         const CXCursor_ObjCNSObject = 426,
480         /// Only produced by `libclang` 8.0 and later.
481         const CXCursor_ObjCIndependentClass = 427,
482         /// Only produced by `libclang` 8.0 and later.
483         const CXCursor_ObjCPreciseLifetime = 428,
484         /// Only produced by `libclang` 8.0 and later.
485         const CXCursor_ObjCReturnsInnerPointer = 429,
486         /// Only produced by `libclang` 8.0 and later.
487         const CXCursor_ObjCRequiresSuper = 430,
488         /// Only produced by `libclang` 8.0 and later.
489         const CXCursor_ObjCRootClass = 431,
490         /// Only produced by `libclang` 8.0 and later.
491         const CXCursor_ObjCSubclassingRestricted = 432,
492         /// Only produced by `libclang` 8.0 and later.
493         const CXCursor_ObjCExplicitProtocolImpl = 433,
494         /// Only produced by `libclang` 8.0 and later.
495         const CXCursor_ObjCDesignatedInitializer = 434,
496         /// Only produced by `libclang` 8.0 and later.
497         const CXCursor_ObjCRuntimeVisible = 435,
498         /// Only produced by `libclang` 8.0 and later.
499         const CXCursor_ObjCBoxable = 436,
500         /// Only produced by `libclang` 8.0 and later.
501         const CXCursor_FlagEnum = 437,
502         /// Only produced by `libclang` 9.0 and later.
503         const CXCursor_ConvergentAttr  = 438,
504         /// Only produced by `libclang` 9.0 and later.
505         const CXCursor_WarnUnusedAttr = 439,
506         /// Only produced by `libclang` 9.0 and later.
507         const CXCursor_WarnUnusedResultAttr = 440,
508         /// Only produced by `libclang` 9.0 and later.
509         const CXCursor_AlignedAttr = 441,
510         const CXCursor_PreprocessingDirective = 500,
511         const CXCursor_MacroDefinition = 501,
512         /// Duplicate of `CXCursor_MacroInstantiation`.
513         const CXCursor_MacroExpansion = 502,
514         const CXCursor_InclusionDirective = 503,
515         const CXCursor_ModuleImportDecl = 600,
516         /// Only produced by `libclang` 3.8 and later.
517         const CXCursor_TypeAliasTemplateDecl = 601,
518         /// Only produced by `libclang` 3.9 and later.
519         const CXCursor_StaticAssert = 602,
520         /// Only produced by `libclang` 4.0 and later.
521         const CXCursor_FriendDecl = 603,
522         /// Only produced by `libclang` 3.7 and later.
523         const CXCursor_OverloadCandidate = 700,
524     }
525 }
526 
527 cenum! {
528     /// Only available on `libclang` 5.0 and later.
529     #[cfg(feature = "gte_clang_5_0")]
530     enum CXCursor_ExceptionSpecificationKind {
531         const CXCursor_ExceptionSpecificationKind_None = 0,
532         const CXCursor_ExceptionSpecificationKind_DynamicNone = 1,
533         const CXCursor_ExceptionSpecificationKind_Dynamic = 2,
534         const CXCursor_ExceptionSpecificationKind_MSAny = 3,
535         const CXCursor_ExceptionSpecificationKind_BasicNoexcept = 4,
536         const CXCursor_ExceptionSpecificationKind_ComputedNoexcept = 5,
537         const CXCursor_ExceptionSpecificationKind_Unevaluated = 6,
538         const CXCursor_ExceptionSpecificationKind_Uninstantiated = 7,
539         const CXCursor_ExceptionSpecificationKind_Unparsed = 8,
540         /// Only available on `libclang` 9.0 and later.
541         #[cfg(feature = "gte_clang_9_0")]
542         const CXCursor_ExceptionSpecificationKind_NoThrow = 9,
543     }
544 }
545 
546 cenum! {
547     enum CXDiagnosticSeverity {
548         const CXDiagnostic_Ignored = 0,
549         const CXDiagnostic_Note = 1,
550         const CXDiagnostic_Warning = 2,
551         const CXDiagnostic_Error = 3,
552         const CXDiagnostic_Fatal = 4,
553     }
554 }
555 
556 cenum! {
557     enum CXErrorCode {
558         const CXError_Success = 0,
559         const CXError_Failure = 1,
560         const CXError_Crashed = 2,
561         const CXError_InvalidArguments = 3,
562         const CXError_ASTReadError = 4,
563     }
564 }
565 
566 cenum! {
567     enum CXEvalResultKind {
568         const CXEval_UnExposed = 0,
569         const CXEval_Int = 1 ,
570         const CXEval_Float = 2,
571         const CXEval_ObjCStrLiteral = 3,
572         const CXEval_StrLiteral = 4,
573         const CXEval_CFStr = 5,
574         const CXEval_Other = 6,
575     }
576 }
577 
578 cenum! {
579     enum CXIdxAttrKind {
580         const CXIdxAttr_Unexposed = 0,
581         const CXIdxAttr_IBAction = 1,
582         const CXIdxAttr_IBOutlet = 2,
583         const CXIdxAttr_IBOutletCollection = 3,
584     }
585 }
586 
587 cenum! {
588     enum CXIdxEntityCXXTemplateKind {
589         const CXIdxEntity_NonTemplate = 0,
590         const CXIdxEntity_Template = 1,
591         const CXIdxEntity_TemplatePartialSpecialization = 2,
592         const CXIdxEntity_TemplateSpecialization = 3,
593     }
594 }
595 
596 cenum! {
597     enum CXIdxEntityKind {
598         const CXIdxEntity_Unexposed = 0,
599         const CXIdxEntity_Typedef = 1,
600         const CXIdxEntity_Function = 2,
601         const CXIdxEntity_Variable = 3,
602         const CXIdxEntity_Field = 4,
603         const CXIdxEntity_EnumConstant = 5,
604         const CXIdxEntity_ObjCClass = 6,
605         const CXIdxEntity_ObjCProtocol = 7,
606         const CXIdxEntity_ObjCCategory = 8,
607         const CXIdxEntity_ObjCInstanceMethod = 9,
608         const CXIdxEntity_ObjCClassMethod = 10,
609         const CXIdxEntity_ObjCProperty = 11,
610         const CXIdxEntity_ObjCIvar = 12,
611         const CXIdxEntity_Enum = 13,
612         const CXIdxEntity_Struct = 14,
613         const CXIdxEntity_Union = 15,
614         const CXIdxEntity_CXXClass = 16,
615         const CXIdxEntity_CXXNamespace = 17,
616         const CXIdxEntity_CXXNamespaceAlias = 18,
617         const CXIdxEntity_CXXStaticVariable = 19,
618         const CXIdxEntity_CXXStaticMethod = 20,
619         const CXIdxEntity_CXXInstanceMethod = 21,
620         const CXIdxEntity_CXXConstructor = 22,
621         const CXIdxEntity_CXXDestructor = 23,
622         const CXIdxEntity_CXXConversionFunction = 24,
623         const CXIdxEntity_CXXTypeAlias = 25,
624         const CXIdxEntity_CXXInterface = 26,
625     }
626 }
627 
628 cenum! {
629     enum CXIdxEntityLanguage {
630         const CXIdxEntityLang_None = 0,
631         const CXIdxEntityLang_C = 1,
632         const CXIdxEntityLang_ObjC = 2,
633         const CXIdxEntityLang_CXX = 3,
634         /// Only produced by `libclang` 5.0 and later.
635         const CXIdxEntityLang_Swift = 4,
636     }
637 }
638 
639 cenum! {
640     enum CXIdxEntityRefKind {
641         const CXIdxEntityRef_Direct = 1,
642         const CXIdxEntityRef_Implicit = 2,
643     }
644 }
645 
646 cenum! {
647     enum CXIdxObjCContainerKind {
648         const CXIdxObjCContainer_ForwardRef = 0,
649         const CXIdxObjCContainer_Interface = 1,
650         const CXIdxObjCContainer_Implementation = 2,
651     }
652 }
653 
654 cenum! {
655     enum CXLanguageKind {
656         const CXLanguage_Invalid = 0,
657         const CXLanguage_C = 1,
658         const CXLanguage_ObjC = 2,
659         const CXLanguage_CPlusPlus = 3,
660     }
661 }
662 
663 cenum! {
664     enum CXLinkageKind {
665         const CXLinkage_Invalid = 0,
666         const CXLinkage_NoLinkage = 1,
667         const CXLinkage_Internal = 2,
668         const CXLinkage_UniqueExternal = 3,
669         const CXLinkage_External = 4,
670     }
671 }
672 
673 cenum! {
674     enum CXLoadDiag_Error {
675         const CXLoadDiag_None = 0,
676         const CXLoadDiag_Unknown = 1,
677         const CXLoadDiag_CannotLoad = 2,
678         const CXLoadDiag_InvalidFile = 3,
679     }
680 }
681 
682 cenum! {
683     /// Only available on `libclang` 7.0 and later.
684     #[cfg(feature = "gte_clang_7_0")]
685     enum CXPrintingPolicyProperty {
686         const CXPrintingPolicy_Indentation = 0,
687         const CXPrintingPolicy_SuppressSpecifiers = 1,
688         const CXPrintingPolicy_SuppressTagKeyword = 2,
689         const CXPrintingPolicy_IncludeTagDefinition = 3,
690         const CXPrintingPolicy_SuppressScope = 4,
691         const CXPrintingPolicy_SuppressUnwrittenScope = 5,
692         const CXPrintingPolicy_SuppressInitializers = 6,
693         const CXPrintingPolicy_ConstantArraySizeAsWritten = 7,
694         const CXPrintingPolicy_AnonymousTagLocations = 8,
695         const CXPrintingPolicy_SuppressStrongLifetime = 9,
696         const CXPrintingPolicy_SuppressLifetimeQualifiers = 10,
697         const CXPrintingPolicy_SuppressTemplateArgsInCXXConstructors = 11,
698         const CXPrintingPolicy_Bool = 12,
699         const CXPrintingPolicy_Restrict = 13,
700         const CXPrintingPolicy_Alignof = 14,
701         const CXPrintingPolicy_UnderscoreAlignof = 15,
702         const CXPrintingPolicy_UseVoidForZeroParams = 16,
703         const CXPrintingPolicy_TerseOutput = 17,
704         const CXPrintingPolicy_PolishForDeclaration = 18,
705         const CXPrintingPolicy_Half = 19,
706         const CXPrintingPolicy_MSWChar = 20,
707         const CXPrintingPolicy_IncludeNewlines = 21,
708         const CXPrintingPolicy_MSVCFormatting = 22,
709         const CXPrintingPolicy_ConstantsAsWritten = 23,
710         const CXPrintingPolicy_SuppressImplicitBase = 24,
711         const CXPrintingPolicy_FullyQualifiedName = 25,
712     }
713 }
714 
715 cenum! {
716     enum CXRefQualifierKind {
717         const CXRefQualifier_None = 0,
718         const CXRefQualifier_LValue = 1,
719         const CXRefQualifier_RValue = 2,
720     }
721 }
722 
723 cenum! {
724     enum CXResult {
725         const CXResult_Success = 0,
726         const CXResult_Invalid = 1,
727         const CXResult_VisitBreak = 2,
728     }
729 }
730 
731 cenum! {
732     enum CXSaveError {
733         const CXSaveError_None = 0,
734         const CXSaveError_Unknown = 1,
735         const CXSaveError_TranslationErrors = 2,
736         const CXSaveError_InvalidTU = 3,
737     }
738 }
739 
740 cenum! {
741     /// Only available on `libclang` 6.0 and later.
742     #[cfg(feature = "gte_clang_6_0")]
743     enum CXTLSKind {
744         const CXTLS_None = 0,
745         const CXTLS_Dynamic = 1,
746         const CXTLS_Static = 2,
747     }
748 }
749 
750 cenum! {
751     enum CXTUResourceUsageKind {
752         const CXTUResourceUsage_AST = 1,
753         const CXTUResourceUsage_Identifiers = 2,
754         const CXTUResourceUsage_Selectors = 3,
755         const CXTUResourceUsage_GlobalCompletionResults = 4,
756         const CXTUResourceUsage_SourceManagerContentCache = 5,
757         const CXTUResourceUsage_AST_SideTables = 6,
758         const CXTUResourceUsage_SourceManager_Membuffer_Malloc = 7,
759         const CXTUResourceUsage_SourceManager_Membuffer_MMap = 8,
760         const CXTUResourceUsage_ExternalASTSource_Membuffer_Malloc = 9,
761         const CXTUResourceUsage_ExternalASTSource_Membuffer_MMap = 10,
762         const CXTUResourceUsage_Preprocessor = 11,
763         const CXTUResourceUsage_PreprocessingRecord = 12,
764         const CXTUResourceUsage_SourceManager_DataStructures = 13,
765         const CXTUResourceUsage_Preprocessor_HeaderSearch = 14,
766     }
767 }
768 
769 cenum! {
770     /// Only available on `libclang` 3.6 and later.
771     #[cfg(feature = "gte_clang_3_6")]
772     enum CXTemplateArgumentKind {
773         const CXTemplateArgumentKind_Null = 0,
774         const CXTemplateArgumentKind_Type = 1,
775         const CXTemplateArgumentKind_Declaration = 2,
776         const CXTemplateArgumentKind_NullPtr = 3,
777         const CXTemplateArgumentKind_Integral = 4,
778         const CXTemplateArgumentKind_Template = 5,
779         const CXTemplateArgumentKind_TemplateExpansion = 6,
780         const CXTemplateArgumentKind_Expression = 7,
781         const CXTemplateArgumentKind_Pack = 8,
782         const CXTemplateArgumentKind_Invalid = 9,
783     }
784 }
785 
786 cenum! {
787     enum CXTokenKind {
788         const CXToken_Punctuation = 0,
789         const CXToken_Keyword = 1,
790         const CXToken_Identifier = 2,
791         const CXToken_Literal = 3,
792         const CXToken_Comment = 4,
793     }
794 }
795 
796 cenum! {
797     enum CXTypeKind {
798         const CXType_Invalid = 0,
799         const CXType_Unexposed = 1,
800         const CXType_Void = 2,
801         const CXType_Bool = 3,
802         const CXType_Char_U = 4,
803         const CXType_UChar = 5,
804         const CXType_Char16 = 6,
805         const CXType_Char32 = 7,
806         const CXType_UShort = 8,
807         const CXType_UInt = 9,
808         const CXType_ULong = 10,
809         const CXType_ULongLong = 11,
810         const CXType_UInt128 = 12,
811         const CXType_Char_S = 13,
812         const CXType_SChar = 14,
813         const CXType_WChar = 15,
814         const CXType_Short = 16,
815         const CXType_Int = 17,
816         const CXType_Long = 18,
817         const CXType_LongLong = 19,
818         const CXType_Int128 = 20,
819         const CXType_Float = 21,
820         const CXType_Double = 22,
821         const CXType_LongDouble = 23,
822         const CXType_NullPtr = 24,
823         const CXType_Overload = 25,
824         const CXType_Dependent = 26,
825         const CXType_ObjCId = 27,
826         const CXType_ObjCClass = 28,
827         const CXType_ObjCSel = 29,
828         /// Only produced by `libclang` 3.9 and later.
829         const CXType_Float128 = 30,
830         /// Only produced by `libclang` 5.0 and later.
831         const CXType_Half = 31,
832         /// Only produced by `libclang` 6.0 and later.
833         const CXType_Float16 = 32,
834         /// Only produced by `libclang` 7.0 and later.
835         const CXType_ShortAccum = 33,
836         /// Only produced by `libclang` 7.0 and later.
837         const CXType_Accum = 34,
838         /// Only produced by `libclang` 7.0 and later.
839         const CXType_LongAccum = 35,
840         /// Only produced by `libclang` 7.0 and later.
841         const CXType_UShortAccum = 36,
842         /// Only produced by `libclang` 7.0 and later.
843         const CXType_UAccum = 37,
844         /// Only produced by `libclang` 7.0 and later.
845         const CXType_ULongAccum = 38,
846         const CXType_Complex = 100,
847         const CXType_Pointer = 101,
848         const CXType_BlockPointer = 102,
849         const CXType_LValueReference = 103,
850         const CXType_RValueReference = 104,
851         const CXType_Record = 105,
852         const CXType_Enum = 106,
853         const CXType_Typedef = 107,
854         const CXType_ObjCInterface = 108,
855         const CXType_ObjCObjectPointer = 109,
856         const CXType_FunctionNoProto = 110,
857         const CXType_FunctionProto = 111,
858         const CXType_ConstantArray = 112,
859         const CXType_Vector = 113,
860         const CXType_IncompleteArray = 114,
861         const CXType_VariableArray = 115,
862         const CXType_DependentSizedArray = 116,
863         const CXType_MemberPointer = 117,
864         /// Only produced by `libclang` 3.8 and later.
865         const CXType_Auto = 118,
866         /// Only produced by `libclang` 3.9 and later.
867         const CXType_Elaborated = 119,
868         /// Only produced by `libclang` 5.0 and later.
869         const CXType_Pipe = 120,
870         /// Only produced by `libclang` 5.0 and later.
871         const CXType_OCLImage1dRO = 121,
872         /// Only produced by `libclang` 5.0 and later.
873         const CXType_OCLImage1dArrayRO = 122,
874         /// Only produced by `libclang` 5.0 and later.
875         const CXType_OCLImage1dBufferRO = 123,
876         /// Only produced by `libclang` 5.0 and later.
877         const CXType_OCLImage2dRO = 124,
878         /// Only produced by `libclang` 5.0 and later.
879         const CXType_OCLImage2dArrayRO = 125,
880         /// Only produced by `libclang` 5.0 and later.
881         const CXType_OCLImage2dDepthRO = 126,
882         /// Only produced by `libclang` 5.0 and later.
883         const CXType_OCLImage2dArrayDepthRO = 127,
884         /// Only produced by `libclang` 5.0 and later.
885         const CXType_OCLImage2dMSAARO = 128,
886         /// Only produced by `libclang` 5.0 and later.
887         const CXType_OCLImage2dArrayMSAARO = 129,
888         /// Only produced by `libclang` 5.0 and later.
889         const CXType_OCLImage2dMSAADepthRO = 130,
890         /// Only produced by `libclang` 5.0 and later.
891         const CXType_OCLImage2dArrayMSAADepthRO = 131,
892         /// Only produced by `libclang` 5.0 and later.
893         const CXType_OCLImage3dRO = 132,
894         /// Only produced by `libclang` 5.0 and later.
895         const CXType_OCLImage1dWO = 133,
896         /// Only produced by `libclang` 5.0 and later.
897         const CXType_OCLImage1dArrayWO = 134,
898         /// Only produced by `libclang` 5.0 and later.
899         const CXType_OCLImage1dBufferWO = 135,
900         /// Only produced by `libclang` 5.0 and later.
901         const CXType_OCLImage2dWO = 136,
902         /// Only produced by `libclang` 5.0 and later.
903         const CXType_OCLImage2dArrayWO = 137,
904         /// Only produced by `libclang` 5.0 and later.
905         const CXType_OCLImage2dDepthWO = 138,
906         /// Only produced by `libclang` 5.0 and later.
907         const CXType_OCLImage2dArrayDepthWO = 139,
908         /// Only produced by `libclang` 5.0 and later.
909         const CXType_OCLImage2dMSAAWO = 140,
910         /// Only produced by `libclang` 5.0 and later.
911         const CXType_OCLImage2dArrayMSAAWO = 141,
912         /// Only produced by `libclang` 5.0 and later.
913         const CXType_OCLImage2dMSAADepthWO = 142,
914         /// Only produced by `libclang` 5.0 and later.
915         const CXType_OCLImage2dArrayMSAADepthWO = 143,
916         /// Only produced by `libclang` 5.0 and later.
917         const CXType_OCLImage3dWO = 144,
918         /// Only produced by `libclang` 5.0 and later.
919         const CXType_OCLImage1dRW = 145,
920         /// Only produced by `libclang` 5.0 and later.
921         const CXType_OCLImage1dArrayRW = 146,
922         /// Only produced by `libclang` 5.0 and later.
923         const CXType_OCLImage1dBufferRW = 147,
924         /// Only produced by `libclang` 5.0 and later.
925         const CXType_OCLImage2dRW = 148,
926         /// Only produced by `libclang` 5.0 and later.
927         const CXType_OCLImage2dArrayRW = 149,
928         /// Only produced by `libclang` 5.0 and later.
929         const CXType_OCLImage2dDepthRW = 150,
930         /// Only produced by `libclang` 5.0 and later.
931         const CXType_OCLImage2dArrayDepthRW = 151,
932         /// Only produced by `libclang` 5.0 and later.
933         const CXType_OCLImage2dMSAARW = 152,
934         /// Only produced by `libclang` 5.0 and later.
935         const CXType_OCLImage2dArrayMSAARW = 153,
936         /// Only produced by `libclang` 5.0 and later.
937         const CXType_OCLImage2dMSAADepthRW = 154,
938         /// Only produced by `libclang` 5.0 and later.
939         const CXType_OCLImage2dArrayMSAADepthRW = 155,
940         /// Only produced by `libclang` 5.0 and later.
941         const CXType_OCLImage3dRW = 156,
942         /// Only produced by `libclang` 5.0 and later.
943         const CXType_OCLSampler = 157,
944         /// Only produced by `libclang` 5.0 and later.
945         const CXType_OCLEvent = 158,
946         /// Only produced by `libclang` 5.0 and later.
947         const CXType_OCLQueue = 159,
948         /// Only produced by `libclang` 5.0 and later.
949         const CXType_OCLReserveID = 160,
950         /// Only produced by `libclang` 8.0 and later.
951         const CXType_ObjCObject = 161,
952         /// Only produced by `libclang` 8.0 and later.
953         const CXType_ObjCTypeParam = 162,
954         /// Only produced by `libclang` 8.0 and later.
955         const CXType_Attributed = 163,
956         /// Only produced by `libclang` 8.0 and later.
957         const CXType_OCLIntelSubgroupAVCMcePayload = 164,
958         /// Only produced by `libclang` 8.0 and later.
959         const CXType_OCLIntelSubgroupAVCImePayload = 165,
960         /// Only produced by `libclang` 8.0 and later.
961         const CXType_OCLIntelSubgroupAVCRefPayload = 166,
962         /// Only produced by `libclang` 8.0 and later.
963         const CXType_OCLIntelSubgroupAVCSicPayload = 167,
964         /// Only produced by `libclang` 8.0 and later.
965         const CXType_OCLIntelSubgroupAVCMceResult = 168,
966         /// Only produced by `libclang` 8.0 and later.
967         const CXType_OCLIntelSubgroupAVCImeResult = 169,
968         /// Only produced by `libclang` 8.0 and later.
969         const CXType_OCLIntelSubgroupAVCRefResult = 170,
970         /// Only produced by `libclang` 8.0 and later.
971         const CXType_OCLIntelSubgroupAVCSicResult = 171,
972         /// Only produced by `libclang` 8.0 and later.
973         const CXType_OCLIntelSubgroupAVCImeResultSingleRefStreamout = 172,
974         /// Only produced by `libclang` 8.0 and later.
975         const CXType_OCLIntelSubgroupAVCImeResultDualRefStreamout = 173,
976         /// Only produced by `libclang` 8.0 and later.
977         const CXType_OCLIntelSubgroupAVCImeSingleRefStreamin = 174,
978         /// Only produced by `libclang` 8.0 and later.
979         const CXType_OCLIntelSubgroupAVCImeDualRefStreamin = 175,
980         /// Only produced by `libclang` 9.0 and later.
981         const CXType_ExtVector = 176,
982     }
983 }
984 
985 cenum! {
986     enum CXTypeLayoutError {
987         const CXTypeLayoutError_Invalid = -1,
988         const CXTypeLayoutError_Incomplete = -2,
989         const CXTypeLayoutError_Dependent = -3,
990         const CXTypeLayoutError_NotConstantSize = -4,
991         const CXTypeLayoutError_InvalidFieldName = -5,
992         /// Only produced by `libclang` 9.0 and later.
993         const CXTypeLayoutError_Undeduced = -6,
994     }
995 }
996 
997 cenum! {
998     /// Only available on `libclang` 3.8 and later.
999     #[cfg(feature = "gte_clang_3_8")]
1000     enum CXVisibilityKind {
1001         const CXVisibility_Invalid = 0,
1002         const CXVisibility_Hidden = 1,
1003         const CXVisibility_Protected = 2,
1004         const CXVisibility_Default = 3,
1005     }
1006 }
1007 
1008 cenum! {
1009     /// Only available on `libclang` 8.0 and later.
1010     #[cfg(feature = "gte_clang_8_0")]
1011     enum CXTypeNullabilityKind {
1012         const CXTypeNullability_NonNull = 0,
1013         const CXTypeNullability_Nullable = 1,
1014         const CXTypeNullability_Unspecified = 2,
1015         const CXTypeNullability_Invalid = 3,
1016     }
1017 }
1018 
1019 cenum! {
1020     enum CXVisitorResult {
1021         const CXVisit_Break = 0,
1022         const CXVisit_Continue = 1,
1023     }
1024 }
1025 
1026 cenum! {
1027     enum CX_CXXAccessSpecifier {
1028         const CX_CXXInvalidAccessSpecifier = 0,
1029         const CX_CXXPublic = 1,
1030         const CX_CXXProtected = 2,
1031         const CX_CXXPrivate = 3,
1032     }
1033 }
1034 
1035 cenum! {
1036     /// Only available on `libclang` 3.6 and later.
1037     #[cfg(feature = "gte_clang_3_6")]
1038     enum CX_StorageClass {
1039         const CX_SC_Invalid = 0,
1040         const CX_SC_None = 1,
1041         const CX_SC_Extern = 2,
1042         const CX_SC_Static = 3,
1043         const CX_SC_PrivateExtern = 4,
1044         const CX_SC_OpenCLWorkGroupLocal = 5,
1045         const CX_SC_Auto = 6,
1046         const CX_SC_Register = 7,
1047     }
1048 }
1049 
1050 //================================================
1051 // Flags
1052 //================================================
1053 
1054 cenum! {
1055     enum CXCodeComplete_Flags {
1056         const CXCodeComplete_IncludeMacros = 1;
1057         const CXCodeComplete_IncludeCodePatterns = 2;
1058         const CXCodeComplete_IncludeBriefComments = 4;
1059         const CXCodeComplete_SkipPreamble = 8;
1060         const CXCodeComplete_IncludeCompletionsWithFixIts = 16;
1061     }
1062 }
1063 
1064 cenum! {
1065     enum CXCompletionContext {
1066         const CXCompletionContext_Unexposed = 0;
1067         const CXCompletionContext_AnyType = 1;
1068         const CXCompletionContext_AnyValue = 2;
1069         const CXCompletionContext_ObjCObjectValue = 4;
1070         const CXCompletionContext_ObjCSelectorValue = 8;
1071         const CXCompletionContext_CXXClassTypeValue = 16;
1072         const CXCompletionContext_DotMemberAccess = 32;
1073         const CXCompletionContext_ArrowMemberAccess = 64;
1074         const CXCompletionContext_ObjCPropertyAccess = 128;
1075         const CXCompletionContext_EnumTag = 256;
1076         const CXCompletionContext_UnionTag = 512;
1077         const CXCompletionContext_StructTag = 1024;
1078         const CXCompletionContext_ClassTag = 2048;
1079         const CXCompletionContext_Namespace = 4096;
1080         const CXCompletionContext_NestedNameSpecifier = 8192;
1081         const CXCompletionContext_ObjCInterface = 16384;
1082         const CXCompletionContext_ObjCProtocol = 32768;
1083         const CXCompletionContext_ObjCCategory = 65536;
1084         const CXCompletionContext_ObjCInstanceMessage = 131072;
1085         const CXCompletionContext_ObjCClassMessage = 262144;
1086         const CXCompletionContext_ObjCSelectorName = 524288;
1087         const CXCompletionContext_MacroName = 1048576;
1088         const CXCompletionContext_NaturalLanguage = 2097152;
1089         const CXCompletionContext_IncludedFile = 4194304;
1090         const CXCompletionContext_Unknown = 8388607;
1091     }
1092 }
1093 
1094 cenum! {
1095     enum CXDiagnosticDisplayOptions {
1096         const CXDiagnostic_DisplaySourceLocation = 1;
1097         const CXDiagnostic_DisplayColumn = 2;
1098         const CXDiagnostic_DisplaySourceRanges = 4;
1099         const CXDiagnostic_DisplayOption = 8;
1100         const CXDiagnostic_DisplayCategoryId = 16;
1101         const CXDiagnostic_DisplayCategoryName = 32;
1102     }
1103 }
1104 
1105 cenum! {
1106     enum CXGlobalOptFlags {
1107         const CXGlobalOpt_None = 0;
1108         const CXGlobalOpt_ThreadBackgroundPriorityForIndexing = 1;
1109         const CXGlobalOpt_ThreadBackgroundPriorityForEditing = 2;
1110         const CXGlobalOpt_ThreadBackgroundPriorityForAll = 3;
1111     }
1112 }
1113 
1114 cenum! {
1115     enum CXIdxDeclInfoFlags {
1116         const CXIdxDeclFlag_Skipped = 1;
1117     }
1118 }
1119 
1120 cenum! {
1121     enum CXIndexOptFlags {
1122         const CXIndexOptNone = 0;
1123         const CXIndexOptSuppressRedundantRefs = 1;
1124         const CXIndexOptIndexFunctionLocalSymbols = 2;
1125         const CXIndexOptIndexImplicitTemplateInstantiations = 4;
1126         const CXIndexOptSuppressWarnings = 8;
1127         const CXIndexOptSkipParsedBodiesInSession = 16;
1128     }
1129 }
1130 
1131 cenum! {
1132     enum CXNameRefFlags {
1133         const CXNameRange_WantQualifier = 1;
1134         const CXNameRange_WantTemplateArgs = 2;
1135         const CXNameRange_WantSinglePiece = 4;
1136     }
1137 }
1138 
1139 cenum! {
1140     enum CXObjCDeclQualifierKind {
1141         const CXObjCDeclQualifier_None = 0;
1142         const CXObjCDeclQualifier_In = 1;
1143         const CXObjCDeclQualifier_Inout = 2;
1144         const CXObjCDeclQualifier_Out = 4;
1145         const CXObjCDeclQualifier_Bycopy = 8;
1146         const CXObjCDeclQualifier_Byref = 16;
1147         const CXObjCDeclQualifier_Oneway = 32;
1148     }
1149 }
1150 
1151 cenum! {
1152     enum CXObjCPropertyAttrKind {
1153         const CXObjCPropertyAttr_noattr = 0;
1154         const CXObjCPropertyAttr_readonly = 1;
1155         const CXObjCPropertyAttr_getter = 2;
1156         const CXObjCPropertyAttr_assign = 4;
1157         const CXObjCPropertyAttr_readwrite = 8;
1158         const CXObjCPropertyAttr_retain = 16;
1159         const CXObjCPropertyAttr_copy = 32;
1160         const CXObjCPropertyAttr_nonatomic = 64;
1161         const CXObjCPropertyAttr_setter = 128;
1162         const CXObjCPropertyAttr_atomic = 256;
1163         const CXObjCPropertyAttr_weak = 512;
1164         const CXObjCPropertyAttr_strong = 1024;
1165         const CXObjCPropertyAttr_unsafe_unretained = 2048;
1166         /// Only available on `libclang` 3.9 and later.
1167         #[cfg(feature = "gte_clang_3_9")]
1168         const CXObjCPropertyAttr_class = 4096;
1169     }
1170 }
1171 
1172 cenum! {
1173     enum CXReparse_Flags {
1174         const CXReparse_None = 0;
1175     }
1176 }
1177 
1178 cenum! {
1179     enum CXSaveTranslationUnit_Flags {
1180         const CXSaveTranslationUnit_None = 0;
1181     }
1182 }
1183 
1184 cenum! {
1185     /// Only available on `libclang` 7.0 and later.
1186     #[cfg(feature = "gte_clang_7_0")]
1187     enum CXSymbolRole {
1188         const CXSymbolRole_None = 0;
1189         const CXSymbolRole_Declaration = 1;
1190         const CXSymbolRole_Definition = 2;
1191         const CXSymbolRole_Reference = 4;
1192         const CXSymbolRole_Read = 8;
1193         const CXSymbolRole_Write = 16;
1194         const CXSymbolRole_Call = 32;
1195         const CXSymbolRole_Dynamic = 64;
1196         const CXSymbolRole_AddressOf = 128;
1197         const CXSymbolRole_Implicit = 256;
1198     }
1199 }
1200 
1201 cenum! {
1202     enum CXTranslationUnit_Flags {
1203         const CXTranslationUnit_None = 0;
1204         const CXTranslationUnit_DetailedPreprocessingRecord = 1;
1205         const CXTranslationUnit_Incomplete = 2;
1206         const CXTranslationUnit_PrecompiledPreamble = 4;
1207         const CXTranslationUnit_CacheCompletionResults = 8;
1208         const CXTranslationUnit_ForSerialization = 16;
1209         const CXTranslationUnit_CXXChainedPCH = 32;
1210         const CXTranslationUnit_SkipFunctionBodies = 64;
1211         const CXTranslationUnit_IncludeBriefCommentsInCodeCompletion = 128;
1212         /// Only available on `libclang` 3.8 and later.
1213         #[cfg(feature = "gte_clang_3_8")]
1214         const CXTranslationUnit_CreatePreambleOnFirstParse = 256;
1215         /// Only available on `libclang` 3.9 and later.
1216         #[cfg(feature = "gte_clang_3_9")]
1217         const CXTranslationUnit_KeepGoing = 512;
1218         /// Only available on `libclang` 5.0 and later.
1219         #[cfg(feature = "gte_clang_5_0")]
1220         const CXTranslationUnit_SingleFileParse = 1024;
1221         /// Only available on `libclang` 7.0 and later.
1222         #[cfg(feature = "gte_clang_7_0")]
1223         const CXTranslationUnit_LimitSkipFunctionBodiesToPreamble = 2048;
1224         /// Only available on `libclang` 8.0 and later.
1225         #[cfg(feature = "gte_clang_8_0")]
1226         const CXTranslationUnit_IncludeAttributedTypes = 4096;
1227         /// Only available on `libclang` 8.0 and later.
1228         #[cfg(feature = "gte_clang_8_0")]
1229         const CXTranslationUnit_VisitImplicitAttributes = 8192;
1230         /// Only available on `libclang` 9.0 and later.
1231         #[cfg(feature = "gte_clang_9_0")]
1232         const CXTranslationUnit_IgnoreNonErrorsFromIncludedFiles = 16384;
1233     }
1234 }
1235 
1236 //================================================
1237 // Structs
1238 //================================================
1239 
1240 // Opaque ________________________________________
1241 
1242 macro_rules! opaque {
1243     ($name:ident) => {
1244         pub type $name = *mut c_void;
1245     };
1246 }
1247 
1248 opaque!(CXCompilationDatabase);
1249 opaque!(CXCompileCommand);
1250 opaque!(CXCompileCommands);
1251 opaque!(CXCompletionString);
1252 opaque!(CXCursorSet);
1253 opaque!(CXDiagnostic);
1254 opaque!(CXDiagnosticSet);
1255 #[cfg(feature = "gte_clang_3_9")]
1256 opaque!(CXEvalResult);
1257 opaque!(CXFile);
1258 opaque!(CXIdxClientASTFile);
1259 opaque!(CXIdxClientContainer);
1260 opaque!(CXIdxClientEntity);
1261 opaque!(CXIdxClientFile);
1262 opaque!(CXIndex);
1263 opaque!(CXIndexAction);
1264 opaque!(CXModule);
1265 #[cfg(feature = "gte_clang_7_0")]
1266 opaque!(CXPrintingPolicy);
1267 opaque!(CXRemapping);
1268 #[cfg(feature = "gte_clang_5_0")]
1269 opaque!(CXTargetInfo);
1270 opaque!(CXTranslationUnit);
1271 
1272 // Transparent ___________________________________
1273 
1274 #[derive(Copy, Clone, Debug)]
1275 #[repr(C)]
1276 pub struct CXCodeCompleteResults {
1277     pub Results: *mut CXCompletionResult,
1278     pub NumResults: c_uint,
1279 }
1280 
1281 default!(CXCodeCompleteResults);
1282 
1283 #[derive(Copy, Clone, Debug)]
1284 #[repr(C)]
1285 pub struct CXComment {
1286     pub ASTNode: *const c_void,
1287     pub TranslationUnit: CXTranslationUnit,
1288 }
1289 
1290 default!(CXComment);
1291 
1292 #[derive(Copy, Clone, Debug)]
1293 #[repr(C)]
1294 pub struct CXCompletionResult {
1295     pub CursorKind: CXCursorKind,
1296     pub CompletionString: CXCompletionString,
1297 }
1298 
1299 default!(CXCompletionResult);
1300 
1301 #[derive(Copy, Clone, Debug)]
1302 #[repr(C)]
1303 pub struct CXCursor {
1304     pub kind: CXCursorKind,
1305     pub xdata: c_int,
1306     pub data: [*const c_void; 3],
1307 }
1308 
1309 default!(CXCursor);
1310 
1311 #[derive(Copy, Clone, Debug)]
1312 #[repr(C)]
1313 pub struct CXCursorAndRangeVisitor {
1314     pub context: *mut c_void,
1315     pub visit: Option<extern "C" fn(*mut c_void, CXCursor, CXSourceRange) -> CXVisitorResult>,
1316 }
1317 
1318 default!(CXCursorAndRangeVisitor);
1319 
1320 #[derive(Copy, Clone, Debug)]
1321 #[repr(C)]
1322 pub struct CXFileUniqueID {
1323     pub data: [c_ulonglong; 3],
1324 }
1325 
1326 default!(CXFileUniqueID);
1327 
1328 #[derive(Copy, Clone, Debug)]
1329 #[repr(C)]
1330 pub struct CXIdxAttrInfo {
1331     pub kind: CXIdxAttrKind,
1332     pub cursor: CXCursor,
1333     pub loc: CXIdxLoc,
1334 }
1335 
1336 default!(CXIdxAttrInfo);
1337 
1338 #[derive(Copy, Clone, Debug)]
1339 #[repr(C)]
1340 pub struct CXIdxBaseClassInfo {
1341     pub base: *const CXIdxEntityInfo,
1342     pub cursor: CXCursor,
1343     pub loc: CXIdxLoc,
1344 }
1345 
1346 default!(CXIdxBaseClassInfo);
1347 
1348 #[derive(Copy, Clone, Debug)]
1349 #[repr(C)]
1350 pub struct CXIdxCXXClassDeclInfo {
1351     pub declInfo: *const CXIdxDeclInfo,
1352     pub bases: *const *const CXIdxBaseClassInfo,
1353     pub numBases: c_uint,
1354 }
1355 
1356 default!(CXIdxCXXClassDeclInfo);
1357 
1358 #[derive(Copy, Clone, Debug)]
1359 #[repr(C)]
1360 pub struct CXIdxContainerInfo {
1361     pub cursor: CXCursor,
1362 }
1363 
1364 default!(CXIdxContainerInfo);
1365 
1366 #[derive(Copy, Clone, Debug)]
1367 #[repr(C)]
1368 pub struct CXIdxDeclInfo {
1369     pub entityInfo: *const CXIdxEntityInfo,
1370     pub cursor: CXCursor,
1371     pub loc: CXIdxLoc,
1372     pub semanticContainer: *const CXIdxContainerInfo,
1373     pub lexicalContainer: *const CXIdxContainerInfo,
1374     pub isRedeclaration: c_int,
1375     pub isDefinition: c_int,
1376     pub isContainer: c_int,
1377     pub declAsContainer: *const CXIdxContainerInfo,
1378     pub isImplicit: c_int,
1379     pub attributes: *const *const CXIdxAttrInfo,
1380     pub numAttributes: c_uint,
1381     pub flags: c_uint,
1382 }
1383 
1384 default!(CXIdxDeclInfo);
1385 
1386 #[derive(Copy, Clone, Debug)]
1387 #[repr(C)]
1388 pub struct CXIdxEntityInfo {
1389     pub kind: CXIdxEntityKind,
1390     pub templateKind: CXIdxEntityCXXTemplateKind,
1391     pub lang: CXIdxEntityLanguage,
1392     pub name: *const c_char,
1393     pub USR: *const c_char,
1394     pub cursor: CXCursor,
1395     pub attributes: *const *const CXIdxAttrInfo,
1396     pub numAttributes: c_uint,
1397 }
1398 
1399 default!(CXIdxEntityInfo);
1400 
1401 #[derive(Copy, Clone, Debug)]
1402 #[repr(C)]
1403 pub struct CXIdxEntityRefInfo {
1404     pub kind: CXIdxEntityRefKind,
1405     pub cursor: CXCursor,
1406     pub loc: CXIdxLoc,
1407     pub referencedEntity: *const CXIdxEntityInfo,
1408     pub parentEntity: *const CXIdxEntityInfo,
1409     pub container: *const CXIdxContainerInfo,
1410     /// Only available on `libclang` 7.0 and later.
1411     #[cfg(feature = "gte_clang_7_0")]
1412     pub role: CXSymbolRole,
1413 }
1414 
1415 default!(CXIdxEntityRefInfo);
1416 
1417 #[derive(Copy, Clone, Debug)]
1418 #[repr(C)]
1419 pub struct CXIdxIBOutletCollectionAttrInfo {
1420     pub attrInfo: *const CXIdxAttrInfo,
1421     pub objcClass: *const CXIdxEntityInfo,
1422     pub classCursor: CXCursor,
1423     pub classLoc: CXIdxLoc,
1424 }
1425 
1426 default!(CXIdxIBOutletCollectionAttrInfo);
1427 
1428 #[derive(Copy, Clone, Debug)]
1429 #[repr(C)]
1430 pub struct CXIdxImportedASTFileInfo {
1431     pub file: CXFile,
1432     pub module: CXModule,
1433     pub loc: CXIdxLoc,
1434     pub isImplicit: c_int,
1435 }
1436 
1437 default!(CXIdxImportedASTFileInfo);
1438 
1439 #[derive(Copy, Clone, Debug)]
1440 #[repr(C)]
1441 pub struct CXIdxIncludedFileInfo {
1442     pub hashLoc: CXIdxLoc,
1443     pub filename: *const c_char,
1444     pub file: CXFile,
1445     pub isImport: c_int,
1446     pub isAngled: c_int,
1447     pub isModuleImport: c_int,
1448 }
1449 
1450 default!(CXIdxIncludedFileInfo);
1451 
1452 #[derive(Copy, Clone, Debug)]
1453 #[repr(C)]
1454 pub struct CXIdxLoc {
1455     pub ptr_data: [*mut c_void; 2],
1456     pub int_data: c_uint,
1457 }
1458 
1459 default!(CXIdxLoc);
1460 
1461 #[derive(Copy, Clone, Debug)]
1462 #[repr(C)]
1463 pub struct CXIdxObjCCategoryDeclInfo {
1464     pub containerInfo: *const CXIdxObjCContainerDeclInfo,
1465     pub objcClass: *const CXIdxEntityInfo,
1466     pub classCursor: CXCursor,
1467     pub classLoc: CXIdxLoc,
1468     pub protocols: *const CXIdxObjCProtocolRefListInfo,
1469 }
1470 
1471 default!(CXIdxObjCCategoryDeclInfo);
1472 
1473 #[derive(Copy, Clone, Debug)]
1474 #[repr(C)]
1475 pub struct CXIdxObjCContainerDeclInfo {
1476     pub declInfo: *const CXIdxDeclInfo,
1477     pub kind: CXIdxObjCContainerKind,
1478 }
1479 
1480 default!(CXIdxObjCContainerDeclInfo);
1481 
1482 #[derive(Copy, Clone, Debug)]
1483 #[repr(C)]
1484 pub struct CXIdxObjCInterfaceDeclInfo {
1485     pub containerInfo: *const CXIdxObjCContainerDeclInfo,
1486     pub superInfo: *const CXIdxBaseClassInfo,
1487     pub protocols: *const CXIdxObjCProtocolRefListInfo,
1488 }
1489 
1490 default!(CXIdxObjCInterfaceDeclInfo);
1491 
1492 #[derive(Copy, Clone, Debug)]
1493 #[repr(C)]
1494 pub struct CXIdxObjCPropertyDeclInfo {
1495     pub declInfo: *const CXIdxDeclInfo,
1496     pub getter: *const CXIdxEntityInfo,
1497     pub setter: *const CXIdxEntityInfo,
1498 }
1499 
1500 default!(CXIdxObjCPropertyDeclInfo);
1501 
1502 #[derive(Copy, Clone, Debug)]
1503 #[repr(C)]
1504 pub struct CXIdxObjCProtocolRefInfo {
1505     pub protocol: *const CXIdxEntityInfo,
1506     pub cursor: CXCursor,
1507     pub loc: CXIdxLoc,
1508 }
1509 
1510 default!(CXIdxObjCProtocolRefInfo);
1511 
1512 #[derive(Copy, Clone, Debug)]
1513 #[repr(C)]
1514 pub struct CXIdxObjCProtocolRefListInfo {
1515     pub protocols: *const *const CXIdxObjCProtocolRefInfo,
1516     pub numProtocols: c_uint,
1517 }
1518 
1519 default!(CXIdxObjCProtocolRefListInfo);
1520 
1521 #[derive(Copy, Clone, Debug)]
1522 #[repr(C)]
1523 pub struct CXPlatformAvailability {
1524     pub Platform: CXString,
1525     pub Introduced: CXVersion,
1526     pub Deprecated: CXVersion,
1527     pub Obsoleted: CXVersion,
1528     pub Unavailable: c_int,
1529     pub Message: CXString,
1530 }
1531 
1532 default!(CXPlatformAvailability);
1533 
1534 #[derive(Copy, Clone, Debug)]
1535 #[repr(C)]
1536 pub struct CXSourceLocation {
1537     pub ptr_data: [*const c_void; 2],
1538     pub int_data: c_uint,
1539 }
1540 
1541 default!(CXSourceLocation);
1542 
1543 #[derive(Copy, Clone, Debug)]
1544 #[repr(C)]
1545 pub struct CXSourceRange {
1546     pub ptr_data: [*const c_void; 2],
1547     pub begin_int_data: c_uint,
1548     pub end_int_data: c_uint,
1549 }
1550 
1551 default!(CXSourceRange);
1552 
1553 #[derive(Copy, Clone, Debug)]
1554 #[repr(C)]
1555 pub struct CXSourceRangeList {
1556     pub count: c_uint,
1557     pub ranges: *mut CXSourceRange,
1558 }
1559 
1560 default!(CXSourceRangeList);
1561 
1562 #[derive(Copy, Clone, Debug)]
1563 #[repr(C)]
1564 pub struct CXString {
1565     pub data: *const c_void,
1566     pub private_flags: c_uint,
1567 }
1568 
1569 default!(CXString);
1570 
1571 #[cfg(feature = "gte_clang_3_8")]
1572 #[derive(Copy, Clone, Debug)]
1573 #[repr(C)]
1574 pub struct CXStringSet {
1575     pub Strings: *mut CXString,
1576     pub Count: c_uint,
1577 }
1578 
1579 #[cfg(feature = "gte_clang_3_8")]
1580 default!(CXStringSet);
1581 
1582 #[derive(Copy, Clone, Debug)]
1583 #[repr(C)]
1584 pub struct CXTUResourceUsage {
1585     pub data: *mut c_void,
1586     pub numEntries: c_uint,
1587     pub entries: *mut CXTUResourceUsageEntry,
1588 }
1589 
1590 default!(CXTUResourceUsage);
1591 
1592 #[derive(Copy, Clone, Debug)]
1593 #[repr(C)]
1594 pub struct CXTUResourceUsageEntry {
1595     pub kind: CXTUResourceUsageKind,
1596     pub amount: c_ulong,
1597 }
1598 
1599 default!(CXTUResourceUsageEntry);
1600 
1601 #[derive(Copy, Clone, Debug)]
1602 #[repr(C)]
1603 pub struct CXToken {
1604     pub int_data: [c_uint; 4],
1605     pub ptr_data: *mut c_void,
1606 }
1607 
1608 default!(CXToken);
1609 
1610 #[derive(Copy, Clone, Debug)]
1611 #[repr(C)]
1612 pub struct CXType {
1613     pub kind: CXTypeKind,
1614     pub data: [*mut c_void; 2],
1615 }
1616 
1617 default!(CXType);
1618 
1619 #[derive(Copy, Clone, Debug)]
1620 #[repr(C)]
1621 pub struct CXUnsavedFile {
1622     pub Filename: *const c_char,
1623     pub Contents: *const c_char,
1624     pub Length: c_ulong,
1625 }
1626 
1627 default!(CXUnsavedFile);
1628 
1629 #[derive(Copy, Clone, Debug)]
1630 #[repr(C)]
1631 pub struct CXVersion {
1632     pub Major: c_int,
1633     pub Minor: c_int,
1634     pub Subminor: c_int,
1635 }
1636 
1637 default!(CXVersion);
1638 
1639 #[derive(Copy, Clone, Debug)]
1640 #[repr(C)]
1641 #[rustfmt::skip]
1642 pub struct IndexerCallbacks {
1643     pub abortQuery: Option<extern "C" fn(CXClientData, *mut c_void) -> c_int>,
1644     pub diagnostic: Option<extern "C" fn(CXClientData, CXDiagnosticSet, *mut c_void)>,
1645     pub enteredMainFile: Option<extern "C" fn(CXClientData, CXFile, *mut c_void) -> CXIdxClientFile>,
1646     pub ppIncludedFile: Option<extern "C" fn(CXClientData, *const CXIdxIncludedFileInfo) -> CXIdxClientFile>,
1647     pub importedASTFile: Option<extern "C" fn(CXClientData, *const CXIdxImportedASTFileInfo) -> CXIdxClientASTFile>,
1648     pub startedTranslationUnit: Option<extern "C" fn(CXClientData, *mut c_void) -> CXIdxClientContainer>,
1649     pub indexDeclaration: Option<extern "C" fn(CXClientData, *const CXIdxDeclInfo)>,
1650     pub indexEntityReference: Option<extern "C" fn(CXClientData, *const CXIdxEntityRefInfo)>,
1651 }
1652 
1653 default!(IndexerCallbacks);
1654 
1655 //================================================
1656 // Functions
1657 //================================================
1658 
1659 link! {
1660     pub fn clang_CXCursorSet_contains(set: CXCursorSet, cursor: CXCursor) -> c_uint;
1661     pub fn clang_CXCursorSet_insert(set: CXCursorSet, cursor: CXCursor) -> c_uint;
1662     pub fn clang_CXIndex_getGlobalOptions(index: CXIndex) -> CXGlobalOptFlags;
1663     pub fn clang_CXIndex_setGlobalOptions(index: CXIndex, flags: CXGlobalOptFlags);
1664     /// Only available on `libclang` 6.0 and later.
1665     #[cfg(feature = "gte_clang_6_0")]
1666     pub fn clang_CXIndex_setInvocationEmissionPathOption(index: CXIndex, path: *const c_char);
1667     /// Only available on `libclang` 3.9 and later.
1668     #[cfg(feature = "gte_clang_3_9")]
1669     pub fn clang_CXXConstructor_isConvertingConstructor(cursor: CXCursor) -> c_uint;
1670     /// Only available on `libclang` 3.9 and later.
1671     #[cfg(feature = "gte_clang_3_9")]
1672     pub fn clang_CXXConstructor_isCopyConstructor(cursor: CXCursor) -> c_uint;
1673     /// Only available on `libclang` 3.9 and later.
1674     #[cfg(feature = "gte_clang_3_9")]
1675     pub fn clang_CXXConstructor_isDefaultConstructor(cursor: CXCursor) -> c_uint;
1676     /// Only available on `libclang` 3.9 and later.
1677     #[cfg(feature = "gte_clang_3_9")]
1678     pub fn clang_CXXConstructor_isMoveConstructor(cursor: CXCursor) -> c_uint;
1679     /// Only available on `libclang` 3.8 and later.
1680     #[cfg(feature = "gte_clang_3_8")]
1681     pub fn clang_CXXField_isMutable(cursor: CXCursor) -> c_uint;
1682     pub fn clang_CXXMethod_isConst(cursor: CXCursor) -> c_uint;
1683     /// Only available on `libclang` 3.9 and later.
1684     #[cfg(feature = "gte_clang_3_9")]
1685     pub fn clang_CXXMethod_isDefaulted(cursor: CXCursor) -> c_uint;
1686     pub fn clang_CXXMethod_isPureVirtual(cursor: CXCursor) -> c_uint;
1687     pub fn clang_CXXMethod_isStatic(cursor: CXCursor) -> c_uint;
1688     pub fn clang_CXXMethod_isVirtual(cursor: CXCursor) -> c_uint;
1689     /// Only available on `libclang` 6.0 and later.
1690     #[cfg(feature = "gte_clang_6_0")]
1691     pub fn clang_CXXRecord_isAbstract(cursor: CXCursor) -> c_uint;
1692     pub fn clang_CompilationDatabase_dispose(database: CXCompilationDatabase);
1693     pub fn clang_CompilationDatabase_fromDirectory(directory: *const c_char, error: *mut CXCompilationDatabase_Error) -> CXCompilationDatabase;
1694     pub fn clang_CompilationDatabase_getAllCompileCommands(database: CXCompilationDatabase) -> CXCompileCommands;
1695     pub fn clang_CompilationDatabase_getCompileCommands(database: CXCompilationDatabase, filename: *const c_char) -> CXCompileCommands;
1696     pub fn clang_CompileCommand_getArg(command: CXCompileCommand, index: c_uint) -> CXString;
1697     pub fn clang_CompileCommand_getDirectory(command: CXCompileCommand) -> CXString;
1698     /// Only available on `libclang` 3.8 and later.
1699     #[cfg(feature = "gte_clang_3_8")]
1700     pub fn clang_CompileCommand_getFilename(command: CXCompileCommand) -> CXString;
1701     /// Only available on `libclang` 3.8 and later.
1702     #[cfg(feature = "gte_clang_3_8")]
1703     pub fn clang_CompileCommand_getMappedSourceContent(command: CXCompileCommand, index: c_uint) -> CXString;
1704     /// Only available on `libclang` 3.8 and later.
1705     #[cfg(feature = "gte_clang_3_8")]
1706     pub fn clang_CompileCommand_getMappedSourcePath(command: CXCompileCommand, index: c_uint) -> CXString;
1707     pub fn clang_CompileCommand_getNumArgs(command: CXCompileCommand) -> c_uint;
1708     pub fn clang_CompileCommand_getNumMappedSources(command: CXCompileCommand) -> c_uint;
1709     pub fn clang_CompileCommands_dispose(command: CXCompileCommands);
1710     pub fn clang_CompileCommands_getCommand(command: CXCompileCommands, index: c_uint) -> CXCompileCommand;
1711     pub fn clang_CompileCommands_getSize(command: CXCompileCommands) -> c_uint;
1712     /// Only available on `libclang` 3.9 and later.
1713     #[cfg(feature = "gte_clang_3_9")]
1714     pub fn clang_Cursor_Evaluate(cursor: CXCursor) -> CXEvalResult;
1715     pub fn clang_Cursor_getArgument(cursor: CXCursor, index: c_uint) -> CXCursor;
1716     pub fn clang_Cursor_getBriefCommentText(cursor: CXCursor) -> CXString;
1717     /// Only available on `libclang` 3.8 and later.
1718     #[cfg(feature = "gte_clang_3_8")]
1719     pub fn clang_Cursor_getCXXManglings(cursor: CXCursor) -> *mut CXStringSet;
1720     pub fn clang_Cursor_getCommentRange(cursor: CXCursor) -> CXSourceRange;
1721     /// Only available on `libclang` 3.6 and later.
1722     #[cfg(feature = "gte_clang_3_6")]
1723     pub fn clang_Cursor_getMangling(cursor: CXCursor) -> CXString;
1724     pub fn clang_Cursor_getModule(cursor: CXCursor) -> CXModule;
1725     pub fn clang_Cursor_getNumArguments(cursor: CXCursor) -> c_int;
1726     /// Only available on `libclang` 3.6 and later.
1727     #[cfg(feature = "gte_clang_3_6")]
1728     pub fn clang_Cursor_getNumTemplateArguments(cursor: CXCursor) -> c_int;
1729     pub fn clang_Cursor_getObjCDeclQualifiers(cursor: CXCursor) -> CXObjCDeclQualifierKind;
1730     /// Only available on `libclang` 6.0 and later.
1731     #[cfg(feature = "gte_clang_6_0")]
1732     pub fn clang_Cursor_getObjCManglings(cursor: CXCursor) -> *mut CXStringSet;
1733     pub fn clang_Cursor_getObjCPropertyAttributes(cursor: CXCursor, reserved: c_uint) -> CXObjCPropertyAttrKind;
1734     /// Only available on `libclang` 8.0 and later.
1735     #[cfg(feature = "gte_clang_8_0")]
1736     pub fn clang_Cursor_getObjCPropertyGetterName(cursor: CXCursor) -> CXString;
1737     /// Only available on `libclang` 8.0 and later.
1738     #[cfg(feature = "gte_clang_8_0")]
1739     pub fn clang_Cursor_getObjCPropertySetterName(cursor: CXCursor) -> CXString;
1740     pub fn clang_Cursor_getObjCSelectorIndex(cursor: CXCursor) -> c_int;
1741     /// Only available on `libclang` 3.7 and later.
1742     #[cfg(feature = "gte_clang_3_7")]
1743     pub fn clang_Cursor_getOffsetOfField(cursor: CXCursor) -> c_longlong;
1744     /// Only available on `libclang` 9.0 and later.
1745     #[cfg(feature = "gte_clang_9_0")]
1746     pub fn clang_Cursor_isAnonymousRecordDecl(cursor: CXCursor) -> c_uint;
1747     /// Only available on `libclang` 9.0 and later.
1748     #[cfg(feature = "gte_clang_9_0")]
1749     pub fn clang_Cursor_isInlineNamespace(cursor: CXCursor) -> c_uint;
1750     pub fn clang_Cursor_getRawCommentText(cursor: CXCursor) -> CXString;
1751     pub fn clang_Cursor_getReceiverType(cursor: CXCursor) -> CXType;
1752     pub fn clang_Cursor_getSpellingNameRange(cursor: CXCursor, index: c_uint, reserved: c_uint) -> CXSourceRange;
1753     /// Only available on `libclang` 3.6 and later.
1754     #[cfg(feature = "gte_clang_3_6")]
1755     pub fn clang_Cursor_getStorageClass(cursor: CXCursor) -> CX_StorageClass;
1756     /// Only available on `libclang` 3.6 and later.
1757     #[cfg(feature = "gte_clang_3_6")]
1758     pub fn clang_Cursor_getTemplateArgumentKind(cursor: CXCursor, index: c_uint) -> CXTemplateArgumentKind;
1759     /// Only available on `libclang` 3.6 and later.
1760     #[cfg(feature = "gte_clang_3_6")]
1761     pub fn clang_Cursor_getTemplateArgumentType(cursor: CXCursor, index: c_uint) -> CXType;
1762     /// Only available on `libclang` 3.6 and later.
1763     #[cfg(feature = "gte_clang_3_6")]
1764     pub fn clang_Cursor_getTemplateArgumentUnsignedValue(cursor: CXCursor, index: c_uint) -> c_ulonglong;
1765     /// Only available on `libclang` 3.6 and later.
1766     #[cfg(feature = "gte_clang_3_6")]
1767     pub fn clang_Cursor_getTemplateArgumentValue(cursor: CXCursor, index: c_uint) -> c_longlong;
1768     pub fn clang_Cursor_getTranslationUnit(cursor: CXCursor) -> CXTranslationUnit;
1769     /// Only available on `libclang` 3.9 and later.
1770     #[cfg(feature = "gte_clang_3_9")]
1771     pub fn clang_Cursor_hasAttrs(cursor: CXCursor) -> c_uint;
1772     /// Only available on `libclang` 3.7 and later.
1773     #[cfg(feature = "gte_clang_3_7")]
1774     pub fn clang_Cursor_isAnonymous(cursor: CXCursor) -> c_uint;
1775     pub fn clang_Cursor_isBitField(cursor: CXCursor) -> c_uint;
1776     pub fn clang_Cursor_isDynamicCall(cursor: CXCursor) -> c_int;
1777     /// Only available on `libclang` 5.0 and later.
1778     #[cfg(feature = "gte_clang_5_0")]
1779     pub fn clang_Cursor_isExternalSymbol(cursor: CXCursor, language: *mut CXString, from: *mut CXString, generated: *mut c_uint) -> c_uint;
1780     /// Only available on `libclang` 3.9 and later.
1781     #[cfg(feature = "gte_clang_3_9")]
1782     pub fn clang_Cursor_isFunctionInlined(cursor: CXCursor) -> c_uint;
1783     /// Only available on `libclang` 3.9 and later.
1784     #[cfg(feature = "gte_clang_3_9")]
1785     pub fn clang_Cursor_isMacroBuiltin(cursor: CXCursor) -> c_uint;
1786     /// Only available on `libclang` 3.9 and later.
1787     #[cfg(feature = "gte_clang_3_9")]
1788     pub fn clang_Cursor_isMacroFunctionLike(cursor: CXCursor) -> c_uint;
1789     pub fn clang_Cursor_isNull(cursor: CXCursor) -> c_int;
1790     pub fn clang_Cursor_isObjCOptional(cursor: CXCursor) -> c_uint;
1791     pub fn clang_Cursor_isVariadic(cursor: CXCursor) -> c_uint;
1792     /// Only available on `libclang` 5.0 and later.
1793     #[cfg(feature = "gte_clang_5_0")]
1794     pub fn clang_EnumDecl_isScoped(cursor: CXCursor) -> c_uint;
1795     /// Only available on `libclang` 3.9 and later.
1796     #[cfg(feature = "gte_clang_3_9")]
1797     pub fn clang_EvalResult_dispose(result: CXEvalResult);
1798     /// Only available on `libclang` 3.9 and later.
1799     #[cfg(feature = "gte_clang_3_9")]
1800     pub fn clang_EvalResult_getAsDouble(result: CXEvalResult) -> libc::c_double;
1801     /// Only available on `libclang` 3.9 and later.
1802     #[cfg(feature = "gte_clang_3_9")]
1803     pub fn clang_EvalResult_getAsInt(result: CXEvalResult) -> c_int;
1804     /// Only available on `libclang` 4.0 and later.
1805     #[cfg(feature = "gte_clang_4_0")]
1806     pub fn clang_EvalResult_getAsLongLong(result: CXEvalResult) -> c_longlong;
1807     /// Only available on `libclang` 3.9 and later.
1808     #[cfg(feature = "gte_clang_3_9")]
1809     pub fn clang_EvalResult_getAsStr(result: CXEvalResult) -> *const c_char;
1810     /// Only available on `libclang` 4.0 and later.
1811     #[cfg(feature = "gte_clang_4_0")]
1812     pub fn clang_EvalResult_getAsUnsigned(result: CXEvalResult) -> c_ulonglong;
1813     /// Only available on `libclang` 3.9 and later.
1814     #[cfg(feature = "gte_clang_3_9")]
1815     pub fn clang_EvalResult_getKind(result: CXEvalResult) -> CXEvalResultKind;
1816     /// Only available on `libclang` 4.0 and later.
1817     #[cfg(feature = "gte_clang_4_0")]
1818     pub fn clang_EvalResult_isUnsignedInt(result: CXEvalResult) -> c_uint;
1819     /// Only available on `libclang` 3.6 and later.
1820     #[cfg(feature = "gte_clang_3_6")]
1821     pub fn clang_File_isEqual(left: CXFile, right: CXFile) -> c_int;
1822     /// Only available on `libclang` 7.0 and later.
1823     #[cfg(feature = "gte_clang_7_0")]
1824     pub fn clang_File_tryGetRealPathName(file: CXFile) -> CXString;
1825     pub fn clang_IndexAction_create(index: CXIndex) -> CXIndexAction;
1826     pub fn clang_IndexAction_dispose(index: CXIndexAction);
1827     pub fn clang_Location_isFromMainFile(location: CXSourceLocation) -> c_int;
1828     pub fn clang_Location_isInSystemHeader(location: CXSourceLocation) -> c_int;
1829     pub fn clang_Module_getASTFile(module: CXModule) -> CXFile;
1830     pub fn clang_Module_getFullName(module: CXModule) -> CXString;
1831     pub fn clang_Module_getName(module: CXModule) -> CXString;
1832     pub fn clang_Module_getNumTopLevelHeaders(tu: CXTranslationUnit, module: CXModule) -> c_uint;
1833     pub fn clang_Module_getParent(module: CXModule) -> CXModule;
1834     pub fn clang_Module_getTopLevelHeader(tu: CXTranslationUnit, module: CXModule, index: c_uint) -> CXFile;
1835     pub fn clang_Module_isSystem(module: CXModule) -> c_int;
1836     /// Only available on `libclang` 7.0 and later.
1837     #[cfg(feature = "gte_clang_7_0")]
1838     pub fn clang_PrintingPolicy_dispose(policy: CXPrintingPolicy);
1839     /// Only available on `libclang` 7.0 and later.
1840     #[cfg(feature = "gte_clang_7_0")]
1841     pub fn clang_PrintingPolicy_getProperty(policy: CXPrintingPolicy, property: CXPrintingPolicyProperty) -> c_uint;
1842     /// Only available on `libclang` 7.0 and later.
1843     #[cfg(feature = "gte_clang_7_0")]
1844     pub fn clang_PrintingPolicy_setProperty(policy: CXPrintingPolicy, property: CXPrintingPolicyProperty, value: c_uint);
1845     pub fn clang_Range_isNull(range: CXSourceRange) -> c_int;
1846     /// Only available on `libclang` 5.0 and later.
1847     #[cfg(feature = "gte_clang_5_0")]
1848     pub fn clang_TargetInfo_dispose(info: CXTargetInfo);
1849     /// Only available on `libclang` 5.0 and later.
1850     #[cfg(feature = "gte_clang_5_0")]
1851     pub fn clang_TargetInfo_getPointerWidth(info: CXTargetInfo) -> c_int;
1852     /// Only available on `libclang` 5.0 and later.
1853     #[cfg(feature = "gte_clang_5_0")]
1854     pub fn clang_TargetInfo_getTriple(info: CXTargetInfo) -> CXString;
1855     pub fn clang_Type_getAlignOf(type_: CXType) -> c_longlong;
1856     pub fn clang_Type_getCXXRefQualifier(type_: CXType) -> CXRefQualifierKind;
1857     pub fn clang_Type_getClassType(type_: CXType) -> CXType;
1858     /// Only available on `libclang` 3.9 and later.
1859     #[cfg(feature = "gte_clang_3_9")]
1860     pub fn clang_Type_getNamedType(type_: CXType) -> CXType;
1861     pub fn clang_Type_getNumTemplateArguments(type_: CXType) -> c_int;
1862     /// Only available on `libclang` 8.0 and later.
1863     #[cfg(feature = "gte_clang_8_0")]
1864     pub fn clang_Type_getObjCObjectBaseType(type_: CXType) -> CXType;
1865     /// Only available on `libclang` 8.0 and later.
1866     #[cfg(feature = "gte_clang_8_0")]
1867     pub fn clang_Type_getNumObjCProtocolRefs(type_: CXType) -> c_uint;
1868     /// Only available on `libclang` 8.0 and later.
1869     #[cfg(feature = "gte_clang_8_0")]
1870     pub fn clang_Type_getObjCProtocolDecl(type_: CXType, index: c_uint) -> CXCursor;
1871     /// Only available on `libclang` 8.0 and later.
1872     #[cfg(feature = "gte_clang_8_0")]
1873     pub fn clang_Type_getNumObjCTypeArgs(type_: CXType) -> c_uint;
1874     /// Only available on `libclang` 8.0 and later.
1875     #[cfg(feature = "gte_clang_8_0")]
1876     pub fn clang_Type_getObjCTypeArg(type_: CXType, index: c_uint) -> CXType;
1877     /// Only available on `libclang` 3.9 and later.
1878     #[cfg(feature = "gte_clang_3_9")]
1879     pub fn clang_Type_getObjCEncoding(type_: CXType) -> CXString;
1880     pub fn clang_Type_getOffsetOf(type_: CXType, field: *const c_char) -> c_longlong;
1881     /// Only available on `libclang` 8.0 and later.
1882     #[cfg(feature = "gte_clang_8_0")]
1883     pub fn clang_Type_getModifiedType(type_: CXType) -> CXType;
1884     pub fn clang_Type_getSizeOf(type_: CXType) -> c_longlong;
1885     pub fn clang_Type_getTemplateArgumentAsType(type_: CXType, index: c_uint) -> CXType;
1886     /// Only available on `libclang` 5.0 and later.
1887     #[cfg(feature = "gte_clang_5_0")]
1888     pub fn clang_Type_isTransparentTagTypedef(type_: CXType) -> c_uint;
1889     /// Only available on `libclang` 8.0 and later.
1890     #[cfg(feature = "gte_clang_8_0")]
1891     pub fn clang_Type_getNullability(type_: CXType) -> CXTypeNullabilityKind;
1892     /// Only available on `libclang` 3.7 and later.
1893     #[cfg(feature = "gte_clang_3_7")]
1894     pub fn clang_Type_visitFields(type_: CXType, visitor: CXFieldVisitor, data: CXClientData) -> CXVisitorResult;
1895     pub fn clang_annotateTokens(tu: CXTranslationUnit, tokens: *mut CXToken, n_tokens: c_uint, cursors: *mut CXCursor);
1896     pub fn clang_codeCompleteAt(tu: CXTranslationUnit, file: *const c_char, line: c_uint, column: c_uint, unsaved: *mut CXUnsavedFile, n_unsaved: c_uint, flags: CXCodeComplete_Flags) -> *mut CXCodeCompleteResults;
1897     pub fn clang_codeCompleteGetContainerKind(results: *mut CXCodeCompleteResults, incomplete: *mut c_uint) -> CXCursorKind;
1898     pub fn clang_codeCompleteGetContainerUSR(results: *mut CXCodeCompleteResults) -> CXString;
1899     pub fn clang_codeCompleteGetContexts(results: *mut CXCodeCompleteResults) -> c_ulonglong;
1900     pub fn clang_codeCompleteGetDiagnostic(results: *mut CXCodeCompleteResults, index: c_uint) -> CXDiagnostic;
1901     pub fn clang_codeCompleteGetNumDiagnostics(results: *mut CXCodeCompleteResults) -> c_uint;
1902     pub fn clang_codeCompleteGetObjCSelector(results: *mut CXCodeCompleteResults) -> CXString;
1903     pub fn clang_constructUSR_ObjCCategory(class: *const c_char, category: *const c_char) -> CXString;
1904     pub fn clang_constructUSR_ObjCClass(class: *const c_char) -> CXString;
1905     pub fn clang_constructUSR_ObjCIvar(name: *const c_char, usr: CXString) -> CXString;
1906     pub fn clang_constructUSR_ObjCMethod(name: *const c_char, instance: c_uint, usr: CXString) -> CXString;
1907     pub fn clang_constructUSR_ObjCProperty(property: *const c_char, usr: CXString) -> CXString;
1908     pub fn clang_constructUSR_ObjCProtocol(protocol: *const c_char) -> CXString;
1909     pub fn clang_createCXCursorSet() -> CXCursorSet;
1910     pub fn clang_createIndex(exclude: c_int, display: c_int) -> CXIndex;
1911     pub fn clang_createTranslationUnit(index: CXIndex, file: *const c_char) -> CXTranslationUnit;
1912     pub fn clang_createTranslationUnit2(index: CXIndex, file: *const c_char, tu: *mut CXTranslationUnit) -> CXErrorCode;
1913     pub fn clang_createTranslationUnitFromSourceFile(index: CXIndex, file: *const c_char, n_arguments: c_int, arguments: *const *const c_char, n_unsaved: c_uint, unsaved: *mut CXUnsavedFile) -> CXTranslationUnit;
1914     pub fn clang_defaultCodeCompleteOptions() -> CXCodeComplete_Flags;
1915     pub fn clang_defaultDiagnosticDisplayOptions() -> CXDiagnosticDisplayOptions;
1916     pub fn clang_defaultEditingTranslationUnitOptions() -> CXTranslationUnit_Flags;
1917     pub fn clang_defaultReparseOptions(tu: CXTranslationUnit) -> CXReparse_Flags;
1918     pub fn clang_defaultSaveOptions(tu: CXTranslationUnit) -> CXSaveTranslationUnit_Flags;
1919     pub fn clang_disposeCXCursorSet(set: CXCursorSet);
1920     pub fn clang_disposeCXPlatformAvailability(availability: *mut CXPlatformAvailability);
1921     pub fn clang_disposeCXTUResourceUsage(usage: CXTUResourceUsage);
1922     pub fn clang_disposeCodeCompleteResults(results: *mut CXCodeCompleteResults);
1923     pub fn clang_disposeDiagnostic(diagnostic: CXDiagnostic);
1924     pub fn clang_disposeDiagnosticSet(diagnostic: CXDiagnosticSet);
1925     pub fn clang_disposeIndex(index: CXIndex);
1926     pub fn clang_disposeOverriddenCursors(cursors: *mut CXCursor);
1927     pub fn clang_disposeSourceRangeList(list: *mut CXSourceRangeList);
1928     pub fn clang_disposeString(string: CXString);
1929     /// Only available on `libclang` 3.8 and later.
1930     #[cfg(feature = "gte_clang_3_8")]
1931     pub fn clang_disposeStringSet(set: *mut CXStringSet);
1932     pub fn clang_disposeTokens(tu: CXTranslationUnit, tokens: *mut CXToken, n_tokens: c_uint);
1933     pub fn clang_disposeTranslationUnit(tu: CXTranslationUnit);
1934     pub fn clang_enableStackTraces();
1935     pub fn clang_equalCursors(left: CXCursor, right: CXCursor) -> c_uint;
1936     pub fn clang_equalLocations(left: CXSourceLocation, right: CXSourceLocation) -> c_uint;
1937     pub fn clang_equalRanges(left: CXSourceRange, right: CXSourceRange) -> c_uint;
1938     pub fn clang_equalTypes(left: CXType, right: CXType) -> c_uint;
1939     pub fn clang_executeOnThread(function: extern fn(*mut c_void), data: *mut c_void, stack: c_uint);
1940     pub fn clang_findIncludesInFile(tu: CXTranslationUnit, file: CXFile, cursor: CXCursorAndRangeVisitor) -> CXResult;
1941     pub fn clang_findReferencesInFile(cursor: CXCursor, file: CXFile, visitor: CXCursorAndRangeVisitor) -> CXResult;
1942     pub fn clang_formatDiagnostic(diagnostic: CXDiagnostic, flags: CXDiagnosticDisplayOptions) -> CXString;
1943     /// Only available on `libclang` 3.7 and later.
1944     #[cfg(feature = "gte_clang_3_7")]
1945     pub fn clang_free(buffer: *mut c_void);
1946     /// Only available on `libclang` 5.0 and later.
1947     #[cfg(feature = "gte_clang_5_0")]
1948     pub fn clang_getAddressSpace(type_: CXType) -> c_uint;
1949     /// Only available on `libclang` 4.0 and later.
1950     #[cfg(feature = "gte_clang_4_0")]
1951     pub fn clang_getAllSkippedRanges(tu: CXTranslationUnit) -> *mut CXSourceRangeList;
1952     pub fn clang_getArgType(type_: CXType, index: c_uint) -> CXType;
1953     pub fn clang_getArrayElementType(type_: CXType) -> CXType;
1954     pub fn clang_getArraySize(type_: CXType) -> c_longlong;
1955     pub fn clang_getCString(string: CXString) -> *const c_char;
1956     pub fn clang_getCXTUResourceUsage(tu: CXTranslationUnit) -> CXTUResourceUsage;
1957     pub fn clang_getCXXAccessSpecifier(cursor: CXCursor) -> CX_CXXAccessSpecifier;
1958     pub fn clang_getCanonicalCursor(cursor: CXCursor) -> CXCursor;
1959     pub fn clang_getCanonicalType(type_: CXType) -> CXType;
1960     pub fn clang_getChildDiagnostics(diagnostic: CXDiagnostic) -> CXDiagnosticSet;
1961     pub fn clang_getClangVersion() -> CXString;
1962     pub fn clang_getCompletionAnnotation(string: CXCompletionString, index: c_uint) -> CXString;
1963     pub fn clang_getCompletionAvailability(string: CXCompletionString) -> CXAvailabilityKind;
1964     pub fn clang_getCompletionBriefComment(string: CXCompletionString) -> CXString;
1965     pub fn clang_getCompletionChunkCompletionString(string: CXCompletionString, index: c_uint) -> CXCompletionString;
1966     pub fn clang_getCompletionChunkKind(string: CXCompletionString, index: c_uint) -> CXCompletionChunkKind;
1967     pub fn clang_getCompletionChunkText(string: CXCompletionString, index: c_uint) -> CXString;
1968     /// Only available on `libclang` 7.0 and later.
1969     #[cfg(feature = "gte_clang_7_0")]
1970     pub fn clang_getCompletionFixIt(results: *mut CXCodeCompleteResults, completion_index: c_uint, fixit_index: c_uint, range: *mut CXSourceRange) -> CXString;
1971     pub fn clang_getCompletionNumAnnotations(string: CXCompletionString) -> c_uint;
1972     /// Only available on `libclang` 7.0 and later.
1973     #[cfg(feature = "gte_clang_7_0")]
1974     pub fn clang_getCompletionNumFixIts(results: *mut CXCodeCompleteResults, completion_index: c_uint) -> c_uint;
1975     pub fn clang_getCompletionParent(string: CXCompletionString, kind: *mut CXCursorKind) -> CXString;
1976     pub fn clang_getCompletionPriority(string: CXCompletionString) -> c_uint;
1977     pub fn clang_getCursor(tu: CXTranslationUnit, location: CXSourceLocation) -> CXCursor;
1978     pub fn clang_getCursorAvailability(cursor: CXCursor) -> CXAvailabilityKind;
1979     pub fn clang_getCursorCompletionString(cursor: CXCursor) -> CXCompletionString;
1980     pub fn clang_getCursorDefinition(cursor: CXCursor) -> CXCursor;
1981     pub fn clang_getCursorDisplayName(cursor: CXCursor) -> CXString;
1982     /// Only available on `libclang` 5.0 and later.
1983     #[cfg(feature = "gte_clang_5_0")]
1984     pub fn clang_getCursorExceptionSpecificationType(cursor: CXCursor) -> CXCursor_ExceptionSpecificationKind;
1985     pub fn clang_getCursorExtent(cursor: CXCursor) -> CXSourceRange;
1986     pub fn clang_getCursorKind(cursor: CXCursor) -> CXCursorKind;
1987     pub fn clang_getCursorKindSpelling(kind: CXCursorKind) -> CXString;
1988     pub fn clang_getCursorLanguage(cursor: CXCursor) -> CXLanguageKind;
1989     pub fn clang_getCursorLexicalParent(cursor: CXCursor) -> CXCursor;
1990     pub fn clang_getCursorLinkage(cursor: CXCursor) -> CXLinkageKind;
1991     pub fn clang_getCursorLocation(cursor: CXCursor) -> CXSourceLocation;
1992     pub fn clang_getCursorPlatformAvailability(cursor: CXCursor, deprecated: *mut c_int, deprecated_message: *mut CXString, unavailable: *mut c_int, unavailable_message: *mut CXString, availability: *mut CXPlatformAvailability, n_availability: c_int) -> c_int;
1993     /// Only available on `libclang` 7.0 and later.
1994     #[cfg(feature = "gte_clang_7_0")]
1995     pub fn clang_getCursorPrettyPrinted(cursor: CXCursor, policy: CXPrintingPolicy) -> CXString;
1996     /// Only available on `libclang` 7.0 and later.
1997     #[cfg(feature = "gte_clang_7_0")]
1998     pub fn clang_getCursorPrintingPolicy(cursor: CXCursor) -> CXPrintingPolicy;
1999     pub fn clang_getCursorReferenceNameRange(cursor: CXCursor, flags: CXNameRefFlags, index: c_uint) -> CXSourceRange;
2000     pub fn clang_getCursorReferenced(cursor: CXCursor) -> CXCursor;
2001     pub fn clang_getCursorResultType(cursor: CXCursor) -> CXType;
2002     pub fn clang_getCursorSemanticParent(cursor: CXCursor) -> CXCursor;
2003     pub fn clang_getCursorSpelling(cursor: CXCursor) -> CXString;
2004     /// Only available on `libclang` 6.0 and later.
2005     #[cfg(feature = "gte_clang_6_0")]
2006     pub fn clang_getCursorTLSKind(cursor: CXCursor) -> CXTLSKind;
2007     pub fn clang_getCursorType(cursor: CXCursor) -> CXType;
2008     pub fn clang_getCursorUSR(cursor: CXCursor) -> CXString;
2009     /// Only available on `libclang` 3.8 and later.
2010     #[cfg(feature = "gte_clang_3_8")]
2011     pub fn clang_getCursorVisibility(cursor: CXCursor) -> CXVisibilityKind;
2012     pub fn clang_getDeclObjCTypeEncoding(cursor: CXCursor) -> CXString;
2013     pub fn clang_getDefinitionSpellingAndExtent(cursor: CXCursor, start: *mut *const c_char, end: *mut *const c_char, start_line: *mut c_uint, start_column: *mut c_uint, end_line: *mut c_uint, end_column: *mut c_uint);
2014     pub fn clang_getDiagnostic(tu: CXTranslationUnit, index: c_uint) -> CXDiagnostic;
2015     pub fn clang_getDiagnosticCategory(diagnostic: CXDiagnostic) -> c_uint;
2016     pub fn clang_getDiagnosticCategoryName(category: c_uint) -> CXString;
2017     pub fn clang_getDiagnosticCategoryText(diagnostic: CXDiagnostic) -> CXString;
2018     pub fn clang_getDiagnosticFixIt(diagnostic: CXDiagnostic, index: c_uint, range: *mut CXSourceRange) -> CXString;
2019     pub fn clang_getDiagnosticInSet(diagnostic: CXDiagnosticSet, index: c_uint) -> CXDiagnostic;
2020     pub fn clang_getDiagnosticLocation(diagnostic: CXDiagnostic) -> CXSourceLocation;
2021     pub fn clang_getDiagnosticNumFixIts(diagnostic: CXDiagnostic) -> c_uint;
2022     pub fn clang_getDiagnosticNumRanges(diagnostic: CXDiagnostic) -> c_uint;
2023     pub fn clang_getDiagnosticOption(diagnostic: CXDiagnostic, option: *mut CXString) -> CXString;
2024     pub fn clang_getDiagnosticRange(diagnostic: CXDiagnostic, index: c_uint) -> CXSourceRange;
2025     pub fn clang_getDiagnosticSetFromTU(tu: CXTranslationUnit) -> CXDiagnosticSet;
2026     pub fn clang_getDiagnosticSeverity(diagnostic: CXDiagnostic) -> CXDiagnosticSeverity;
2027     pub fn clang_getDiagnosticSpelling(diagnostic: CXDiagnostic) -> CXString;
2028     pub fn clang_getElementType(type_: CXType) -> CXType;
2029     pub fn clang_getEnumConstantDeclUnsignedValue(cursor: CXCursor) -> c_ulonglong;
2030     pub fn clang_getEnumConstantDeclValue(cursor: CXCursor) -> c_longlong;
2031     pub fn clang_getEnumDeclIntegerType(cursor: CXCursor) -> CXType;
2032     /// Only available on `libclang` 5.0 and later.
2033     #[cfg(feature = "gte_clang_5_0")]
2034     pub fn clang_getExceptionSpecificationType(type_: CXType) -> CXCursor_ExceptionSpecificationKind;
2035     pub fn clang_getExpansionLocation(location: CXSourceLocation, file: *mut CXFile, line: *mut c_uint, column: *mut c_uint, offset: *mut c_uint);
2036     pub fn clang_getFieldDeclBitWidth(cursor: CXCursor) -> c_int;
2037     pub fn clang_getFile(tu: CXTranslationUnit, file: *const c_char) -> CXFile;
2038     /// Only available on `libclang` 6.0 and later.
2039     #[cfg(feature = "gte_clang_6_0")]
2040     pub fn clang_getFileContents(tu: CXTranslationUnit, file: CXFile, size: *mut size_t) -> *const c_char;
2041     pub fn clang_getFileLocation(location: CXSourceLocation, file: *mut CXFile, line: *mut c_uint, column: *mut c_uint, offset: *mut c_uint);
2042     pub fn clang_getFileName(file: CXFile) -> CXString;
2043     pub fn clang_getFileTime(file: CXFile) -> time_t;
2044     pub fn clang_getFileUniqueID(file: CXFile, id: *mut CXFileUniqueID) -> c_int;
2045     pub fn clang_getFunctionTypeCallingConv(type_: CXType) -> CXCallingConv;
2046     pub fn clang_getIBOutletCollectionType(cursor: CXCursor) -> CXType;
2047     pub fn clang_getIncludedFile(cursor: CXCursor) -> CXFile;
2048     pub fn clang_getInclusions(tu: CXTranslationUnit, visitor: CXInclusionVisitor, data: CXClientData);
2049     pub fn clang_getInstantiationLocation(location: CXSourceLocation, file: *mut CXFile, line: *mut c_uint, column: *mut c_uint, offset: *mut c_uint);
2050     pub fn clang_getLocation(tu: CXTranslationUnit, file: CXFile, line: c_uint, column: c_uint) -> CXSourceLocation;
2051     pub fn clang_getLocationForOffset(tu: CXTranslationUnit, file: CXFile, offset: c_uint) -> CXSourceLocation;
2052     pub fn clang_getModuleForFile(tu: CXTranslationUnit, file: CXFile) -> CXModule;
2053     pub fn clang_getNullCursor() -> CXCursor;
2054     pub fn clang_getNullLocation() -> CXSourceLocation;
2055     pub fn clang_getNullRange() -> CXSourceRange;
2056     pub fn clang_getNumArgTypes(type_: CXType) -> c_int;
2057     pub fn clang_getNumCompletionChunks(string: CXCompletionString) -> c_uint;
2058     pub fn clang_getNumDiagnostics(tu: CXTranslationUnit) -> c_uint;
2059     pub fn clang_getNumDiagnosticsInSet(diagnostic: CXDiagnosticSet) -> c_uint;
2060     pub fn clang_getNumElements(type_: CXType) -> c_longlong;
2061     pub fn clang_getNumOverloadedDecls(cursor: CXCursor) -> c_uint;
2062     pub fn clang_getOverloadedDecl(cursor: CXCursor, index: c_uint) -> CXCursor;
2063     pub fn clang_getOverriddenCursors(cursor: CXCursor, cursors: *mut *mut CXCursor, n_cursors: *mut c_uint);
2064     pub fn clang_getPointeeType(type_: CXType) -> CXType;
2065     pub fn clang_getPresumedLocation(location: CXSourceLocation, file: *mut CXString, line: *mut c_uint, column: *mut c_uint);
2066     pub fn clang_getRange(start: CXSourceLocation, end: CXSourceLocation) -> CXSourceRange;
2067     pub fn clang_getRangeEnd(range: CXSourceRange) -> CXSourceLocation;
2068     pub fn clang_getRangeStart(range: CXSourceRange) -> CXSourceLocation;
2069     pub fn clang_getRemappings(file: *const c_char) -> CXRemapping;
2070     pub fn clang_getRemappingsFromFileList(files: *mut *const c_char, n_files: c_uint) -> CXRemapping;
2071     pub fn clang_getResultType(type_: CXType) -> CXType;
2072     pub fn clang_getSkippedRanges(tu: CXTranslationUnit, file: CXFile) -> *mut CXSourceRangeList;
2073     pub fn clang_getSpecializedCursorTemplate(cursor: CXCursor) -> CXCursor;
2074     pub fn clang_getSpellingLocation(location: CXSourceLocation, file: *mut CXFile, line: *mut c_uint, column: *mut c_uint, offset: *mut c_uint);
2075     pub fn clang_getTUResourceUsageName(kind: CXTUResourceUsageKind) -> *const c_char;
2076     /// Only available on `libclang` 5.0 and later.
2077     #[cfg(feature = "gte_clang_5_0")]
2078     pub fn clang_getTranslationUnitTargetInfo(tu: CXTranslationUnit) -> CXTargetInfo;
2079     pub fn clang_getTemplateCursorKind(cursor: CXCursor) -> CXCursorKind;
2080     pub fn clang_getTokenExtent(tu: CXTranslationUnit, token: CXToken) -> CXSourceRange;
2081     pub fn clang_getTokenKind(token: CXToken) -> CXTokenKind;
2082     pub fn clang_getTokenLocation(tu: CXTranslationUnit, token: CXToken) -> CXSourceLocation;
2083     pub fn clang_getTokenSpelling(tu: CXTranslationUnit, token: CXToken) -> CXString;
2084     pub fn clang_getTranslationUnitCursor(tu: CXTranslationUnit) -> CXCursor;
2085     pub fn clang_getTranslationUnitSpelling(tu: CXTranslationUnit) -> CXString;
2086     pub fn clang_getTypeDeclaration(type_: CXType) -> CXCursor;
2087     pub fn clang_getTypeKindSpelling(type_: CXTypeKind) -> CXString;
2088     pub fn clang_getTypeSpelling(type_: CXType) -> CXString;
2089     pub fn clang_getTypedefDeclUnderlyingType(cursor: CXCursor) -> CXType;
2090     /// Only available on `libclang` 5.0 and later.
2091     #[cfg(feature = "gte_clang_5_0")]
2092     pub fn clang_getTypedefName(type_: CXType) -> CXString;
2093     pub fn clang_hashCursor(cursor: CXCursor) -> c_uint;
2094     pub fn clang_indexLoc_getCXSourceLocation(location: CXIdxLoc) -> CXSourceLocation;
2095     pub fn clang_indexLoc_getFileLocation(location: CXIdxLoc, index_file: *mut CXIdxClientFile, file: *mut CXFile, line: *mut c_uint, column: *mut c_uint, offset: *mut c_uint);
2096     pub fn clang_indexSourceFile(index: CXIndexAction, data: CXClientData, callbacks: *mut IndexerCallbacks, n_callbacks: c_uint, index_flags: CXIndexOptFlags, file: *const c_char, arguments: *const *const c_char, n_arguments: c_int, unsaved: *mut CXUnsavedFile, n_unsaved: c_uint, tu: *mut CXTranslationUnit, tu_flags: CXTranslationUnit_Flags) -> CXErrorCode;
2097     /// Only available on `libclang` 3.8 and later.
2098     #[cfg(feature = "gte_clang_3_8")]
2099     pub fn clang_indexSourceFileFullArgv(index: CXIndexAction, data: CXClientData, callbacks: *mut IndexerCallbacks, n_callbacks: c_uint, index_flags: CXIndexOptFlags, file: *const c_char, arguments: *const *const c_char, n_arguments: c_int, unsaved: *mut CXUnsavedFile, n_unsaved: c_uint, tu: *mut CXTranslationUnit, tu_flags: CXTranslationUnit_Flags) -> CXErrorCode;
2100     pub fn clang_indexTranslationUnit(index: CXIndexAction, data: CXClientData, callbacks: *mut IndexerCallbacks, n_callbacks: c_uint, flags: CXIndexOptFlags, tu: CXTranslationUnit) -> c_int;
2101     pub fn clang_index_getCXXClassDeclInfo(info: *const CXIdxDeclInfo) -> *const CXIdxCXXClassDeclInfo;
2102     pub fn clang_index_getClientContainer(info: *const CXIdxContainerInfo) -> CXIdxClientContainer;
2103     pub fn clang_index_getClientEntity(info: *const CXIdxEntityInfo) -> CXIdxClientEntity;
2104     pub fn clang_index_getIBOutletCollectionAttrInfo(info: *const CXIdxAttrInfo) -> *const CXIdxIBOutletCollectionAttrInfo;
2105     pub fn clang_index_getObjCCategoryDeclInfo(info: *const CXIdxDeclInfo) -> *const CXIdxObjCCategoryDeclInfo;
2106     pub fn clang_index_getObjCContainerDeclInfo(info: *const CXIdxDeclInfo) -> *const CXIdxObjCContainerDeclInfo;
2107     pub fn clang_index_getObjCInterfaceDeclInfo(info: *const CXIdxDeclInfo) -> *const CXIdxObjCInterfaceDeclInfo;
2108     pub fn clang_index_getObjCPropertyDeclInfo(info: *const CXIdxDeclInfo) -> *const CXIdxObjCPropertyDeclInfo;
2109     pub fn clang_index_getObjCProtocolRefListInfo(info: *const CXIdxDeclInfo) -> *const CXIdxObjCProtocolRefListInfo;
2110     pub fn clang_index_isEntityObjCContainerKind(info: CXIdxEntityKind) -> c_int;
2111     pub fn clang_index_setClientContainer(info: *const CXIdxContainerInfo, container: CXIdxClientContainer);
2112     pub fn clang_index_setClientEntity(info: *const CXIdxEntityInfo, entity: CXIdxClientEntity);
2113     pub fn clang_isAttribute(kind: CXCursorKind) -> c_uint;
2114     pub fn clang_isConstQualifiedType(type_: CXType) -> c_uint;
2115     pub fn clang_isCursorDefinition(cursor: CXCursor) -> c_uint;
2116     pub fn clang_isDeclaration(kind: CXCursorKind) -> c_uint;
2117     pub fn clang_isExpression(kind: CXCursorKind) -> c_uint;
2118     pub fn clang_isFileMultipleIncludeGuarded(tu: CXTranslationUnit, file: CXFile) -> c_uint;
2119     pub fn clang_isFunctionTypeVariadic(type_: CXType) -> c_uint;
2120     pub fn clang_isInvalid(kind: CXCursorKind) -> c_uint;
2121     /// Only available on `libclang` 7.0 and later.
2122     #[cfg(feature = "gte_clang_7_0")]
2123     pub fn clang_isInvalidDeclaration(cursor: CXCursor) -> c_uint;
2124     pub fn clang_isPODType(type_: CXType) -> c_uint;
2125     pub fn clang_isPreprocessing(kind: CXCursorKind) -> c_uint;
2126     pub fn clang_isReference(kind: CXCursorKind) -> c_uint;
2127     pub fn clang_isRestrictQualifiedType(type_: CXType) -> c_uint;
2128     pub fn clang_isStatement(kind: CXCursorKind) -> c_uint;
2129     pub fn clang_isTranslationUnit(kind: CXCursorKind) -> c_uint;
2130     pub fn clang_isUnexposed(kind: CXCursorKind) -> c_uint;
2131     pub fn clang_isVirtualBase(cursor: CXCursor) -> c_uint;
2132     pub fn clang_isVolatileQualifiedType(type_: CXType) -> c_uint;
2133     pub fn clang_loadDiagnostics(file: *const c_char, error: *mut CXLoadDiag_Error, message: *mut CXString) -> CXDiagnosticSet;
2134     pub fn clang_parseTranslationUnit(index: CXIndex, file: *const c_char, arguments: *const *const c_char, n_arguments: c_int, unsaved: *mut CXUnsavedFile, n_unsaved: c_uint, flags: CXTranslationUnit_Flags) -> CXTranslationUnit;
2135     pub fn clang_parseTranslationUnit2(index: CXIndex, file: *const c_char, arguments: *const *const c_char, n_arguments: c_int, unsaved: *mut CXUnsavedFile, n_unsaved: c_uint, flags: CXTranslationUnit_Flags, tu: *mut CXTranslationUnit) -> CXErrorCode;
2136     /// Only available on `libclang` 3.8 and later.
2137     #[cfg(feature = "gte_clang_3_8")]
2138     pub fn clang_parseTranslationUnit2FullArgv(index: CXIndex, file: *const c_char, arguments: *const *const c_char, n_arguments: c_int, unsaved: *mut CXUnsavedFile, n_unsaved: c_uint, flags: CXTranslationUnit_Flags, tu: *mut CXTranslationUnit) -> CXErrorCode;
2139     pub fn clang_remap_dispose(remapping: CXRemapping);
2140     pub fn clang_remap_getFilenames(remapping: CXRemapping, index: c_uint, original: *mut CXString, transformed: *mut CXString);
2141     pub fn clang_remap_getNumFiles(remapping: CXRemapping) -> c_uint;
2142     pub fn clang_reparseTranslationUnit(tu: CXTranslationUnit, n_unsaved: c_uint, unsaved: *mut CXUnsavedFile, flags: CXReparse_Flags) -> CXErrorCode;
2143     pub fn clang_saveTranslationUnit(tu: CXTranslationUnit, file: *const c_char, options: CXSaveTranslationUnit_Flags) -> CXSaveError;
2144     pub fn clang_sortCodeCompletionResults(results: *mut CXCompletionResult, n_results: c_uint);
2145     /// Only available on `libclang` 5.0 and later.
2146     #[cfg(feature = "gte_clang_5_0")]
2147     pub fn clang_suspendTranslationUnit(tu: CXTranslationUnit) -> c_uint;
2148     pub fn clang_toggleCrashRecovery(recovery: c_uint);
2149     pub fn clang_tokenize(tu: CXTranslationUnit, range: CXSourceRange, tokens: *mut *mut CXToken, n_tokens: *mut c_uint);
2150     pub fn clang_visitChildren(cursor: CXCursor, visitor: CXCursorVisitor, data: CXClientData) -> c_uint;
2151 
2152     // Documentation
2153     pub fn clang_BlockCommandComment_getArgText(comment: CXComment, index: c_uint) -> CXString;
2154     pub fn clang_BlockCommandComment_getCommandName(comment: CXComment) -> CXString;
2155     pub fn clang_BlockCommandComment_getNumArgs(comment: CXComment) -> c_uint;
2156     pub fn clang_BlockCommandComment_getParagraph(comment: CXComment) -> CXComment;
2157     pub fn clang_Comment_getChild(comment: CXComment, index: c_uint) -> CXComment;
2158     pub fn clang_Comment_getKind(comment: CXComment) -> CXCommentKind;
2159     pub fn clang_Comment_getNumChildren(comment: CXComment) -> c_uint;
2160     pub fn clang_Comment_isWhitespace(comment: CXComment) -> c_uint;
2161     pub fn clang_Cursor_getParsedComment(C: CXCursor) -> CXComment;
2162     pub fn clang_FullComment_getAsHTML(comment: CXComment) -> CXString;
2163     pub fn clang_FullComment_getAsXML(comment: CXComment) -> CXString;
2164     pub fn clang_HTMLStartTagComment_isSelfClosing(comment: CXComment) -> c_uint;
2165     pub fn clang_HTMLStartTag_getAttrName(comment: CXComment, index: c_uint) -> CXString;
2166     pub fn clang_HTMLStartTag_getAttrValue(comment: CXComment, index: c_uint) -> CXString;
2167     pub fn clang_HTMLStartTag_getNumAttrs(comment: CXComment) -> c_uint;
2168     pub fn clang_HTMLTagComment_getAsString(comment: CXComment) -> CXString;
2169     pub fn clang_HTMLTagComment_getTagName(comment: CXComment) -> CXString;
2170     pub fn clang_InlineCommandComment_getArgText(comment: CXComment, index: c_uint) -> CXString;
2171     pub fn clang_InlineCommandComment_getCommandName(comment: CXComment) -> CXString;
2172     pub fn clang_InlineCommandComment_getNumArgs(comment: CXComment) -> c_uint;
2173     pub fn clang_InlineCommandComment_getRenderKind(comment: CXComment) -> CXCommentInlineCommandRenderKind;
2174     pub fn clang_InlineContentComment_hasTrailingNewline(comment: CXComment) -> c_uint;
2175     pub fn clang_ParamCommandComment_getDirection(comment: CXComment) -> CXCommentParamPassDirection;
2176     pub fn clang_ParamCommandComment_getParamIndex(comment: CXComment) -> c_uint;
2177     pub fn clang_ParamCommandComment_getParamName(comment: CXComment) -> CXString;
2178     pub fn clang_ParamCommandComment_isDirectionExplicit(comment: CXComment) -> c_uint;
2179     pub fn clang_ParamCommandComment_isParamIndexValid(comment: CXComment) -> c_uint;
2180     pub fn clang_TParamCommandComment_getDepth(comment: CXComment) -> c_uint;
2181     pub fn clang_TParamCommandComment_getIndex(comment: CXComment, depth: c_uint) -> c_uint;
2182     pub fn clang_TParamCommandComment_getParamName(comment: CXComment) -> CXString;
2183     pub fn clang_TParamCommandComment_isParamPositionValid(comment: CXComment) -> c_uint;
2184     pub fn clang_TextComment_getText(comment: CXComment) -> CXString;
2185     pub fn clang_VerbatimBlockLineComment_getText(comment: CXComment) -> CXString;
2186     pub fn clang_VerbatimLineComment_getText(comment: CXComment) -> CXString;
2187 }
2188