forked from ziglang/zig
-
Notifications
You must be signed in to change notification settings - Fork 0
/
clang.zig
1928 lines (1618 loc) · 61.7 KB
/
clang.zig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
const std = @import("std");
pub const builtin = @import("builtin");
pub const SourceLocation = extern struct {
ID: c_uint,
pub const eq = ZigClangSourceLocation_eq;
extern fn ZigClangSourceLocation_eq(a: SourceLocation, b: SourceLocation) bool;
};
pub const QualType = extern struct {
ptr: ?*anyopaque,
pub const getCanonicalType = ZigClangQualType_getCanonicalType;
extern fn ZigClangQualType_getCanonicalType(QualType) QualType;
pub const getTypePtr = ZigClangQualType_getTypePtr;
extern fn ZigClangQualType_getTypePtr(QualType) *const Type;
pub const getTypeClass = ZigClangQualType_getTypeClass;
extern fn ZigClangQualType_getTypeClass(QualType) TypeClass;
pub const addConst = ZigClangQualType_addConst;
extern fn ZigClangQualType_addConst(*QualType) void;
pub const eq = ZigClangQualType_eq;
extern fn ZigClangQualType_eq(QualType, arg1: QualType) bool;
pub const isConstQualified = ZigClangQualType_isConstQualified;
extern fn ZigClangQualType_isConstQualified(QualType) bool;
pub const isVolatileQualified = ZigClangQualType_isVolatileQualified;
extern fn ZigClangQualType_isVolatileQualified(QualType) bool;
pub const isRestrictQualified = ZigClangQualType_isRestrictQualified;
extern fn ZigClangQualType_isRestrictQualified(QualType) bool;
};
pub const APValueLValueBase = extern struct {
Ptr: ?*anyopaque,
CallIndex: c_uint,
Version: c_uint,
pub const dyn_cast_Expr = ZigClangAPValueLValueBase_dyn_cast_Expr;
extern fn ZigClangAPValueLValueBase_dyn_cast_Expr(APValueLValueBase) ?*const Expr;
};
pub const APValueKind = enum(c_int) {
None,
Indeterminate,
Int,
Float,
FixedPoint,
ComplexInt,
ComplexFloat,
LValue,
Vector,
Array,
Struct,
Union,
MemberPointer,
AddrLabelDiff,
};
pub const APValue = extern struct {
Kind: APValueKind,
Data: if (builtin.os.tag == .windows and builtin.abi == .msvc) [52]u8 else [68]u8,
pub const getKind = ZigClangAPValue_getKind;
extern fn ZigClangAPValue_getKind(*const APValue) APValueKind;
pub const getInt = ZigClangAPValue_getInt;
extern fn ZigClangAPValue_getInt(*const APValue) *const APSInt;
pub const getArrayInitializedElts = ZigClangAPValue_getArrayInitializedElts;
extern fn ZigClangAPValue_getArrayInitializedElts(*const APValue) c_uint;
pub const getArraySize = ZigClangAPValue_getArraySize;
extern fn ZigClangAPValue_getArraySize(*const APValue) c_uint;
pub const getLValueBase = ZigClangAPValue_getLValueBase;
extern fn ZigClangAPValue_getLValueBase(*const APValue) APValueLValueBase;
};
pub const ExprEvalResult = extern struct {
HasSideEffects: bool,
HasUndefinedBehavior: bool,
SmallVectorImpl: ?*anyopaque,
Val: APValue,
};
pub const AbstractConditionalOperator = opaque {
pub const getCond = ZigClangAbstractConditionalOperator_getCond;
extern fn ZigClangAbstractConditionalOperator_getCond(*const AbstractConditionalOperator) *const Expr;
pub const getTrueExpr = ZigClangAbstractConditionalOperator_getTrueExpr;
extern fn ZigClangAbstractConditionalOperator_getTrueExpr(*const AbstractConditionalOperator) *const Expr;
pub const getFalseExpr = ZigClangAbstractConditionalOperator_getFalseExpr;
extern fn ZigClangAbstractConditionalOperator_getFalseExpr(*const AbstractConditionalOperator) *const Expr;
};
pub const APFloat = opaque {
pub const toString = ZigClangAPFloat_toString;
extern fn ZigClangAPFloat_toString(*const APFloat, precision: c_uint, maxPadding: c_uint, truncateZero: bool) [*:0]const u8;
};
pub const APFloatBaseSemantics = enum(c_int) {
IEEEhalf,
BFloat,
IEEEsingle,
IEEEdouble,
x86DoubleExtended,
IEEEquad,
PPCDoubleDouble,
};
pub const APInt = opaque {
pub fn getLimitedValue(self: *const APInt, comptime T: type) T {
return @truncate(T, ZigClangAPInt_getLimitedValue(self, std.math.maxInt(T)));
}
extern fn ZigClangAPInt_getLimitedValue(*const APInt, limit: u64) u64;
};
pub const APSInt = opaque {
pub const isSigned = ZigClangAPSInt_isSigned;
extern fn ZigClangAPSInt_isSigned(*const APSInt) bool;
pub const isNegative = ZigClangAPSInt_isNegative;
extern fn ZigClangAPSInt_isNegative(*const APSInt) bool;
pub const negate = ZigClangAPSInt_negate;
extern fn ZigClangAPSInt_negate(*const APSInt) *const APSInt;
pub const free = ZigClangAPSInt_free;
extern fn ZigClangAPSInt_free(*const APSInt) void;
pub const getRawData = ZigClangAPSInt_getRawData;
extern fn ZigClangAPSInt_getRawData(*const APSInt) [*:0]const u64;
pub const getNumWords = ZigClangAPSInt_getNumWords;
extern fn ZigClangAPSInt_getNumWords(*const APSInt) c_uint;
pub const lessThanEqual = ZigClangAPSInt_lessThanEqual;
extern fn ZigClangAPSInt_lessThanEqual(*const APSInt, rhs: u64) bool;
};
pub const ASTContext = opaque {
pub const getPointerType = ZigClangASTContext_getPointerType;
extern fn ZigClangASTContext_getPointerType(*const ASTContext, T: QualType) QualType;
};
pub const ASTUnit = opaque {
pub const delete = ZigClangASTUnit_delete;
extern fn ZigClangASTUnit_delete(*ASTUnit) void;
pub const getASTContext = ZigClangASTUnit_getASTContext;
extern fn ZigClangASTUnit_getASTContext(*ASTUnit) *ASTContext;
pub const getSourceManager = ZigClangASTUnit_getSourceManager;
extern fn ZigClangASTUnit_getSourceManager(*ASTUnit) *SourceManager;
pub const visitLocalTopLevelDecls = ZigClangASTUnit_visitLocalTopLevelDecls;
extern fn ZigClangASTUnit_visitLocalTopLevelDecls(
*ASTUnit,
context: ?*anyopaque,
Fn: ?*const fn (?*anyopaque, *const Decl) callconv(.C) bool,
) bool;
pub const getLocalPreprocessingEntities_begin = ZigClangASTUnit_getLocalPreprocessingEntities_begin;
extern fn ZigClangASTUnit_getLocalPreprocessingEntities_begin(*ASTUnit) PreprocessingRecord.iterator;
pub const getLocalPreprocessingEntities_end = ZigClangASTUnit_getLocalPreprocessingEntities_end;
extern fn ZigClangASTUnit_getLocalPreprocessingEntities_end(*ASTUnit) PreprocessingRecord.iterator;
};
pub const ArraySubscriptExpr = opaque {
pub const getBase = ZigClangArraySubscriptExpr_getBase;
extern fn ZigClangArraySubscriptExpr_getBase(*const ArraySubscriptExpr) *const Expr;
pub const getIdx = ZigClangArraySubscriptExpr_getIdx;
extern fn ZigClangArraySubscriptExpr_getIdx(*const ArraySubscriptExpr) *const Expr;
};
pub const ArrayType = opaque {
pub const getElementType = ZigClangArrayType_getElementType;
extern fn ZigClangArrayType_getElementType(*const ArrayType) QualType;
};
pub const ASTRecordLayout = opaque {
pub const getFieldOffset = ZigClangASTRecordLayout_getFieldOffset;
extern fn ZigClangASTRecordLayout_getFieldOffset(*const ASTRecordLayout, c_uint) u64;
pub const getAlignment = ZigClangASTRecordLayout_getAlignment;
extern fn ZigClangASTRecordLayout_getAlignment(*const ASTRecordLayout) i64;
};
pub const AttributedType = opaque {
pub const getEquivalentType = ZigClangAttributedType_getEquivalentType;
extern fn ZigClangAttributedType_getEquivalentType(*const AttributedType) QualType;
};
pub const BinaryOperator = opaque {
pub const getOpcode = ZigClangBinaryOperator_getOpcode;
extern fn ZigClangBinaryOperator_getOpcode(*const BinaryOperator) BO;
pub const getBeginLoc = ZigClangBinaryOperator_getBeginLoc;
extern fn ZigClangBinaryOperator_getBeginLoc(*const BinaryOperator) SourceLocation;
pub const getLHS = ZigClangBinaryOperator_getLHS;
extern fn ZigClangBinaryOperator_getLHS(*const BinaryOperator) *const Expr;
pub const getRHS = ZigClangBinaryOperator_getRHS;
extern fn ZigClangBinaryOperator_getRHS(*const BinaryOperator) *const Expr;
pub const getType = ZigClangBinaryOperator_getType;
extern fn ZigClangBinaryOperator_getType(*const BinaryOperator) QualType;
};
pub const BinaryConditionalOperator = opaque {};
pub const BreakStmt = opaque {};
pub const BuiltinType = opaque {
pub const getKind = ZigClangBuiltinType_getKind;
extern fn ZigClangBuiltinType_getKind(*const BuiltinType) BuiltinTypeKind;
};
pub const CStyleCastExpr = opaque {
pub const getBeginLoc = ZigClangCStyleCastExpr_getBeginLoc;
extern fn ZigClangCStyleCastExpr_getBeginLoc(*const CStyleCastExpr) SourceLocation;
pub const getSubExpr = ZigClangCStyleCastExpr_getSubExpr;
extern fn ZigClangCStyleCastExpr_getSubExpr(*const CStyleCastExpr) *const Expr;
pub const getType = ZigClangCStyleCastExpr_getType;
extern fn ZigClangCStyleCastExpr_getType(*const CStyleCastExpr) QualType;
};
pub const CallExpr = opaque {
pub const getCallee = ZigClangCallExpr_getCallee;
extern fn ZigClangCallExpr_getCallee(*const CallExpr) *const Expr;
pub const getNumArgs = ZigClangCallExpr_getNumArgs;
extern fn ZigClangCallExpr_getNumArgs(*const CallExpr) c_uint;
pub const getArgs = ZigClangCallExpr_getArgs;
extern fn ZigClangCallExpr_getArgs(*const CallExpr) [*]const *const Expr;
};
pub const CaseStmt = opaque {
pub const getLHS = ZigClangCaseStmt_getLHS;
extern fn ZigClangCaseStmt_getLHS(*const CaseStmt) *const Expr;
pub const getRHS = ZigClangCaseStmt_getRHS;
extern fn ZigClangCaseStmt_getRHS(*const CaseStmt) ?*const Expr;
pub const getBeginLoc = ZigClangCaseStmt_getBeginLoc;
extern fn ZigClangCaseStmt_getBeginLoc(*const CaseStmt) SourceLocation;
pub const getSubStmt = ZigClangCaseStmt_getSubStmt;
extern fn ZigClangCaseStmt_getSubStmt(*const CaseStmt) *const Stmt;
};
pub const CastExpr = opaque {
pub const getCastKind = ZigClangCastExpr_getCastKind;
extern fn ZigClangCastExpr_getCastKind(*const CastExpr) CK;
pub const getTargetFieldForToUnionCast = ZigClangCastExpr_getTargetFieldForToUnionCast;
extern fn ZigClangCastExpr_getTargetFieldForToUnionCast(*const CastExpr, QualType, QualType) ?*const FieldDecl;
};
pub const CharacterLiteral = opaque {
pub const getBeginLoc = ZigClangCharacterLiteral_getBeginLoc;
extern fn ZigClangCharacterLiteral_getBeginLoc(*const CharacterLiteral) SourceLocation;
pub const getKind = ZigClangCharacterLiteral_getKind;
extern fn ZigClangCharacterLiteral_getKind(*const CharacterLiteral) CharacterLiteral_CharacterKind;
pub const getValue = ZigClangCharacterLiteral_getValue;
extern fn ZigClangCharacterLiteral_getValue(*const CharacterLiteral) c_uint;
};
pub const ChooseExpr = opaque {
pub const getChosenSubExpr = ZigClangChooseExpr_getChosenSubExpr;
extern fn ZigClangChooseExpr_getChosenSubExpr(*const ChooseExpr) *const Expr;
};
pub const CompoundAssignOperator = opaque {
pub const getType = ZigClangCompoundAssignOperator_getType;
extern fn ZigClangCompoundAssignOperator_getType(*const CompoundAssignOperator) QualType;
pub const getComputationLHSType = ZigClangCompoundAssignOperator_getComputationLHSType;
extern fn ZigClangCompoundAssignOperator_getComputationLHSType(*const CompoundAssignOperator) QualType;
pub const getComputationResultType = ZigClangCompoundAssignOperator_getComputationResultType;
extern fn ZigClangCompoundAssignOperator_getComputationResultType(*const CompoundAssignOperator) QualType;
pub const getBeginLoc = ZigClangCompoundAssignOperator_getBeginLoc;
extern fn ZigClangCompoundAssignOperator_getBeginLoc(*const CompoundAssignOperator) SourceLocation;
pub const getOpcode = ZigClangCompoundAssignOperator_getOpcode;
extern fn ZigClangCompoundAssignOperator_getOpcode(*const CompoundAssignOperator) BO;
pub const getLHS = ZigClangCompoundAssignOperator_getLHS;
extern fn ZigClangCompoundAssignOperator_getLHS(*const CompoundAssignOperator) *const Expr;
pub const getRHS = ZigClangCompoundAssignOperator_getRHS;
extern fn ZigClangCompoundAssignOperator_getRHS(*const CompoundAssignOperator) *const Expr;
};
pub const CompoundLiteralExpr = opaque {
pub const getInitializer = ZigClangCompoundLiteralExpr_getInitializer;
extern fn ZigClangCompoundLiteralExpr_getInitializer(*const CompoundLiteralExpr) *const Expr;
};
pub const CompoundStmt = opaque {
pub const body_begin = ZigClangCompoundStmt_body_begin;
extern fn ZigClangCompoundStmt_body_begin(*const CompoundStmt) ConstBodyIterator;
pub const body_end = ZigClangCompoundStmt_body_end;
extern fn ZigClangCompoundStmt_body_end(*const CompoundStmt) ConstBodyIterator;
pub const ConstBodyIterator = [*]const *Stmt;
};
pub const ConditionalOperator = opaque {};
pub const ConstantArrayType = opaque {
pub const getElementType = ZigClangConstantArrayType_getElementType;
extern fn ZigClangConstantArrayType_getElementType(*const ConstantArrayType) QualType;
pub const getSize = ZigClangConstantArrayType_getSize;
extern fn ZigClangConstantArrayType_getSize(*const ConstantArrayType) *const APInt;
};
pub const ConstantExpr = opaque {};
pub const ContinueStmt = opaque {};
pub const ConvertVectorExpr = opaque {
pub const getSrcExpr = ZigClangConvertVectorExpr_getSrcExpr;
extern fn ZigClangConvertVectorExpr_getSrcExpr(*const ConvertVectorExpr) *const Expr;
pub const getTypeSourceInfo_getType = ZigClangConvertVectorExpr_getTypeSourceInfo_getType;
extern fn ZigClangConvertVectorExpr_getTypeSourceInfo_getType(*const ConvertVectorExpr) QualType;
};
pub const DecayedType = opaque {
pub const getDecayedType = ZigClangDecayedType_getDecayedType;
extern fn ZigClangDecayedType_getDecayedType(*const DecayedType) QualType;
};
pub const Decl = opaque {
pub const getLocation = ZigClangDecl_getLocation;
extern fn ZigClangDecl_getLocation(*const Decl) SourceLocation;
pub const castToNamedDecl = ZigClangDecl_castToNamedDecl;
extern fn ZigClangDecl_castToNamedDecl(decl: *const Decl) ?*const NamedDecl;
pub const getKind = ZigClangDecl_getKind;
extern fn ZigClangDecl_getKind(decl: *const Decl) DeclKind;
pub const getDeclKindName = ZigClangDecl_getDeclKindName;
extern fn ZigClangDecl_getDeclKindName(decl: *const Decl) [*:0]const u8;
};
pub const DeclRefExpr = opaque {
pub const getDecl = ZigClangDeclRefExpr_getDecl;
extern fn ZigClangDeclRefExpr_getDecl(*const DeclRefExpr) *const ValueDecl;
pub const getFoundDecl = ZigClangDeclRefExpr_getFoundDecl;
extern fn ZigClangDeclRefExpr_getFoundDecl(*const DeclRefExpr) *const NamedDecl;
};
pub const DeclStmt = opaque {
pub const decl_begin = ZigClangDeclStmt_decl_begin;
extern fn ZigClangDeclStmt_decl_begin(*const DeclStmt) const_decl_iterator;
pub const decl_end = ZigClangDeclStmt_decl_end;
extern fn ZigClangDeclStmt_decl_end(*const DeclStmt) const_decl_iterator;
pub const const_decl_iterator = [*]const *Decl;
};
pub const DefaultStmt = opaque {
pub const getSubStmt = ZigClangDefaultStmt_getSubStmt;
extern fn ZigClangDefaultStmt_getSubStmt(*const DefaultStmt) *const Stmt;
};
pub const DiagnosticOptions = opaque {};
pub const DiagnosticsEngine = opaque {};
pub const DoStmt = opaque {
pub const getCond = ZigClangDoStmt_getCond;
extern fn ZigClangDoStmt_getCond(*const DoStmt) *const Expr;
pub const getBody = ZigClangDoStmt_getBody;
extern fn ZigClangDoStmt_getBody(*const DoStmt) *const Stmt;
};
pub const ElaboratedType = opaque {
pub const getNamedType = ZigClangElaboratedType_getNamedType;
extern fn ZigClangElaboratedType_getNamedType(*const ElaboratedType) QualType;
};
pub const EnumConstantDecl = opaque {
pub const getInitVal = ZigClangEnumConstantDecl_getInitVal;
extern fn ZigClangEnumConstantDecl_getInitVal(*const EnumConstantDecl) *const APSInt;
};
pub const EnumDecl = opaque {
pub const getCanonicalDecl = ZigClangEnumDecl_getCanonicalDecl;
extern fn ZigClangEnumDecl_getCanonicalDecl(*const EnumDecl) ?*const TagDecl;
pub const getIntegerType = ZigClangEnumDecl_getIntegerType;
extern fn ZigClangEnumDecl_getIntegerType(*const EnumDecl) QualType;
pub const getDefinition = ZigClangEnumDecl_getDefinition;
extern fn ZigClangEnumDecl_getDefinition(*const EnumDecl) ?*const EnumDecl;
pub const getLocation = ZigClangEnumDecl_getLocation;
extern fn ZigClangEnumDecl_getLocation(*const EnumDecl) SourceLocation;
pub const enumerator_begin = ZigClangEnumDecl_enumerator_begin;
extern fn ZigClangEnumDecl_enumerator_begin(*const EnumDecl) enumerator_iterator;
pub const enumerator_end = ZigClangEnumDecl_enumerator_end;
extern fn ZigClangEnumDecl_enumerator_end(*const EnumDecl) enumerator_iterator;
pub const enumerator_iterator = extern struct {
ptr: *anyopaque,
pub const next = ZigClangEnumDecl_enumerator_iterator_next;
extern fn ZigClangEnumDecl_enumerator_iterator_next(enumerator_iterator) enumerator_iterator;
pub const deref = ZigClangEnumDecl_enumerator_iterator_deref;
extern fn ZigClangEnumDecl_enumerator_iterator_deref(enumerator_iterator) *const EnumConstantDecl;
pub const neq = ZigClangEnumDecl_enumerator_iterator_neq;
extern fn ZigClangEnumDecl_enumerator_iterator_neq(enumerator_iterator, enumerator_iterator) bool;
};
};
pub const EnumType = opaque {
pub const getDecl = ZigClangEnumType_getDecl;
extern fn ZigClangEnumType_getDecl(*const EnumType) *const EnumDecl;
};
pub const Expr = opaque {
pub const getStmtClass = ZigClangExpr_getStmtClass;
extern fn ZigClangExpr_getStmtClass(*const Expr) StmtClass;
pub const getType = ZigClangExpr_getType;
extern fn ZigClangExpr_getType(*const Expr) QualType;
pub const getBeginLoc = ZigClangExpr_getBeginLoc;
extern fn ZigClangExpr_getBeginLoc(*const Expr) SourceLocation;
pub const evaluateAsConstantExpr = ZigClangExpr_EvaluateAsConstantExpr;
extern fn ZigClangExpr_EvaluateAsConstantExpr(*const Expr, *ExprEvalResult, Expr_ConstantExprKind, *const ASTContext) bool;
};
pub const FieldDecl = opaque {
pub const getCanonicalDecl = ZigClangFieldDecl_getCanonicalDecl;
extern fn ZigClangFieldDecl_getCanonicalDecl(*const FieldDecl) ?*const FieldDecl;
pub const getAlignedAttribute = ZigClangFieldDecl_getAlignedAttribute;
extern fn ZigClangFieldDecl_getAlignedAttribute(*const FieldDecl, *const ASTContext) c_uint;
pub const getPackedAttribute = ZigClangFieldDecl_getPackedAttribute;
extern fn ZigClangFieldDecl_getPackedAttribute(*const FieldDecl) bool;
pub const isAnonymousStructOrUnion = ZigClangFieldDecl_isAnonymousStructOrUnion;
extern fn ZigClangFieldDecl_isAnonymousStructOrUnion(*const FieldDecl) bool;
pub const isBitField = ZigClangFieldDecl_isBitField;
extern fn ZigClangFieldDecl_isBitField(*const FieldDecl) bool;
pub const getType = ZigClangFieldDecl_getType;
extern fn ZigClangFieldDecl_getType(*const FieldDecl) QualType;
pub const getLocation = ZigClangFieldDecl_getLocation;
extern fn ZigClangFieldDecl_getLocation(*const FieldDecl) SourceLocation;
pub const getParent = ZigClangFieldDecl_getParent;
extern fn ZigClangFieldDecl_getParent(*const FieldDecl) ?*const RecordDecl;
pub const getFieldIndex = ZigClangFieldDecl_getFieldIndex;
extern fn ZigClangFieldDecl_getFieldIndex(*const FieldDecl) c_uint;
};
pub const FileID = opaque {};
pub const FloatingLiteral = opaque {
pub const getValueAsApproximateDouble = ZigClangFloatingLiteral_getValueAsApproximateDouble;
extern fn ZigClangFloatingLiteral_getValueAsApproximateDouble(*const FloatingLiteral) f64;
pub const getBeginLoc = ZigClangFloatingLiteral_getBeginLoc;
extern fn ZigClangFloatingLiteral_getBeginLoc(*const FloatingLiteral) SourceLocation;
pub const getRawSemantics = ZigClangFloatingLiteral_getRawSemantics;
extern fn ZigClangFloatingLiteral_getRawSemantics(*const FloatingLiteral) APFloatBaseSemantics;
};
pub const ForStmt = opaque {
pub const getInit = ZigClangForStmt_getInit;
extern fn ZigClangForStmt_getInit(*const ForStmt) ?*const Stmt;
pub const getCond = ZigClangForStmt_getCond;
extern fn ZigClangForStmt_getCond(*const ForStmt) ?*const Expr;
pub const getInc = ZigClangForStmt_getInc;
extern fn ZigClangForStmt_getInc(*const ForStmt) ?*const Expr;
pub const getBody = ZigClangForStmt_getBody;
extern fn ZigClangForStmt_getBody(*const ForStmt) *const Stmt;
};
pub const FullSourceLoc = opaque {};
pub const FunctionDecl = opaque {
pub const getType = ZigClangFunctionDecl_getType;
extern fn ZigClangFunctionDecl_getType(*const FunctionDecl) QualType;
pub const getLocation = ZigClangFunctionDecl_getLocation;
extern fn ZigClangFunctionDecl_getLocation(*const FunctionDecl) SourceLocation;
pub const hasBody = ZigClangFunctionDecl_hasBody;
extern fn ZigClangFunctionDecl_hasBody(*const FunctionDecl) bool;
pub const getStorageClass = ZigClangFunctionDecl_getStorageClass;
extern fn ZigClangFunctionDecl_getStorageClass(*const FunctionDecl) StorageClass;
pub const getParamDecl = ZigClangFunctionDecl_getParamDecl;
extern fn ZigClangFunctionDecl_getParamDecl(*const FunctionDecl, i: c_uint) *const ParmVarDecl;
pub const getBody = ZigClangFunctionDecl_getBody;
extern fn ZigClangFunctionDecl_getBody(*const FunctionDecl) *const Stmt;
pub const doesDeclarationForceExternallyVisibleDefinition = ZigClangFunctionDecl_doesDeclarationForceExternallyVisibleDefinition;
extern fn ZigClangFunctionDecl_doesDeclarationForceExternallyVisibleDefinition(*const FunctionDecl) bool;
pub const isThisDeclarationADefinition = ZigClangFunctionDecl_isThisDeclarationADefinition;
extern fn ZigClangFunctionDecl_isThisDeclarationADefinition(*const FunctionDecl) bool;
pub const doesThisDeclarationHaveABody = ZigClangFunctionDecl_doesThisDeclarationHaveABody;
extern fn ZigClangFunctionDecl_doesThisDeclarationHaveABody(*const FunctionDecl) bool;
pub const isInlineSpecified = ZigClangFunctionDecl_isInlineSpecified;
extern fn ZigClangFunctionDecl_isInlineSpecified(*const FunctionDecl) bool;
pub const hasAlwaysInlineAttr = ZigClangFunctionDecl_hasAlwaysInlineAttr;
extern fn ZigClangFunctionDecl_hasAlwaysInlineAttr(*const FunctionDecl) bool;
pub const isDefined = ZigClangFunctionDecl_isDefined;
extern fn ZigClangFunctionDecl_isDefined(*const FunctionDecl) bool;
pub const getDefinition = ZigClangFunctionDecl_getDefinition;
extern fn ZigClangFunctionDecl_getDefinition(*const FunctionDecl) ?*const FunctionDecl;
pub const getSectionAttribute = ZigClangFunctionDecl_getSectionAttribute;
extern fn ZigClangFunctionDecl_getSectionAttribute(*const FunctionDecl, len: *usize) ?[*]const u8;
pub const getCanonicalDecl = ZigClangFunctionDecl_getCanonicalDecl;
extern fn ZigClangFunctionDecl_getCanonicalDecl(*const FunctionDecl) ?*const FunctionDecl;
pub const getAlignedAttribute = ZigClangFunctionDecl_getAlignedAttribute;
extern fn ZigClangFunctionDecl_getAlignedAttribute(*const FunctionDecl, *const ASTContext) c_uint;
};
pub const FunctionProtoType = opaque {
pub const isVariadic = ZigClangFunctionProtoType_isVariadic;
extern fn ZigClangFunctionProtoType_isVariadic(*const FunctionProtoType) bool;
pub const getNumParams = ZigClangFunctionProtoType_getNumParams;
extern fn ZigClangFunctionProtoType_getNumParams(*const FunctionProtoType) c_uint;
pub const getParamType = ZigClangFunctionProtoType_getParamType;
extern fn ZigClangFunctionProtoType_getParamType(*const FunctionProtoType, i: c_uint) QualType;
pub const getReturnType = ZigClangFunctionProtoType_getReturnType;
extern fn ZigClangFunctionProtoType_getReturnType(*const FunctionProtoType) QualType;
};
pub const FunctionType = opaque {
pub const getNoReturnAttr = ZigClangFunctionType_getNoReturnAttr;
extern fn ZigClangFunctionType_getNoReturnAttr(*const FunctionType) bool;
pub const getCallConv = ZigClangFunctionType_getCallConv;
extern fn ZigClangFunctionType_getCallConv(*const FunctionType) CallingConv;
pub const getReturnType = ZigClangFunctionType_getReturnType;
extern fn ZigClangFunctionType_getReturnType(*const FunctionType) QualType;
};
pub const GenericSelectionExpr = opaque {
pub const getResultExpr = ZigClangGenericSelectionExpr_getResultExpr;
extern fn ZigClangGenericSelectionExpr_getResultExpr(*const GenericSelectionExpr) *const Expr;
};
pub const IfStmt = opaque {
pub const getThen = ZigClangIfStmt_getThen;
extern fn ZigClangIfStmt_getThen(*const IfStmt) *const Stmt;
pub const getElse = ZigClangIfStmt_getElse;
extern fn ZigClangIfStmt_getElse(*const IfStmt) ?*const Stmt;
pub const getCond = ZigClangIfStmt_getCond;
extern fn ZigClangIfStmt_getCond(*const IfStmt) *const Stmt;
};
pub const ImplicitCastExpr = opaque {
pub const getBeginLoc = ZigClangImplicitCastExpr_getBeginLoc;
extern fn ZigClangImplicitCastExpr_getBeginLoc(*const ImplicitCastExpr) SourceLocation;
pub const getCastKind = ZigClangImplicitCastExpr_getCastKind;
extern fn ZigClangImplicitCastExpr_getCastKind(*const ImplicitCastExpr) CK;
pub const getSubExpr = ZigClangImplicitCastExpr_getSubExpr;
extern fn ZigClangImplicitCastExpr_getSubExpr(*const ImplicitCastExpr) *const Expr;
};
pub const IncompleteArrayType = opaque {
pub const getElementType = ZigClangIncompleteArrayType_getElementType;
extern fn ZigClangIncompleteArrayType_getElementType(*const IncompleteArrayType) QualType;
};
pub const IntegerLiteral = opaque {
pub const EvaluateAsInt = ZigClangIntegerLiteral_EvaluateAsInt;
extern fn ZigClangIntegerLiteral_EvaluateAsInt(*const IntegerLiteral, *ExprEvalResult, *const ASTContext) bool;
pub const getBeginLoc = ZigClangIntegerLiteral_getBeginLoc;
extern fn ZigClangIntegerLiteral_getBeginLoc(*const IntegerLiteral) SourceLocation;
pub const getSignum = ZigClangIntegerLiteral_getSignum;
extern fn ZigClangIntegerLiteral_getSignum(*const IntegerLiteral, *c_int, *const ASTContext) bool;
};
/// This is just used as a namespace for a static method on clang's Lexer class; we don't directly
/// deal with Lexer objects
pub const Lexer = struct {
pub const getLocForEndOfToken = ZigClangLexer_getLocForEndOfToken;
extern fn ZigClangLexer_getLocForEndOfToken(SourceLocation, *const SourceManager, *const ASTUnit) SourceLocation;
};
pub const MacroDefinitionRecord = opaque {
pub const getName_getNameStart = ZigClangMacroDefinitionRecord_getName_getNameStart;
extern fn ZigClangMacroDefinitionRecord_getName_getNameStart(*const MacroDefinitionRecord) [*:0]const u8;
pub const getSourceRange_getBegin = ZigClangMacroDefinitionRecord_getSourceRange_getBegin;
extern fn ZigClangMacroDefinitionRecord_getSourceRange_getBegin(*const MacroDefinitionRecord) SourceLocation;
pub const getSourceRange_getEnd = ZigClangMacroDefinitionRecord_getSourceRange_getEnd;
extern fn ZigClangMacroDefinitionRecord_getSourceRange_getEnd(*const MacroDefinitionRecord) SourceLocation;
};
pub const MacroQualifiedType = opaque {
pub const getModifiedType = ZigClangMacroQualifiedType_getModifiedType;
extern fn ZigClangMacroQualifiedType_getModifiedType(*const MacroQualifiedType) QualType;
};
pub const TypeOfType = opaque {
pub const getUnderlyingType = ZigClangTypeOfType_getUnderlyingType;
extern fn ZigClangTypeOfType_getUnderlyingType(*const TypeOfType) QualType;
};
pub const TypeOfExprType = opaque {
pub const getUnderlyingExpr = ZigClangTypeOfExprType_getUnderlyingExpr;
extern fn ZigClangTypeOfExprType_getUnderlyingExpr(*const TypeOfExprType) *const Expr;
};
pub const OffsetOfNode = opaque {
pub const getKind = ZigClangOffsetOfNode_getKind;
extern fn ZigClangOffsetOfNode_getKind(*const OffsetOfNode) OffsetOfNode_Kind;
pub const getArrayExprIndex = ZigClangOffsetOfNode_getArrayExprIndex;
extern fn ZigClangOffsetOfNode_getArrayExprIndex(*const OffsetOfNode) c_uint;
pub const getField = ZigClangOffsetOfNode_getField;
extern fn ZigClangOffsetOfNode_getField(*const OffsetOfNode) *FieldDecl;
};
pub const OffsetOfExpr = opaque {
pub const getNumComponents = ZigClangOffsetOfExpr_getNumComponents;
extern fn ZigClangOffsetOfExpr_getNumComponents(*const OffsetOfExpr) c_uint;
pub const getNumExpressions = ZigClangOffsetOfExpr_getNumExpressions;
extern fn ZigClangOffsetOfExpr_getNumExpressions(*const OffsetOfExpr) c_uint;
pub const getIndexExpr = ZigClangOffsetOfExpr_getIndexExpr;
extern fn ZigClangOffsetOfExpr_getIndexExpr(*const OffsetOfExpr, idx: c_uint) *const Expr;
pub const getComponent = ZigClangOffsetOfExpr_getComponent;
extern fn ZigClangOffsetOfExpr_getComponent(*const OffsetOfExpr, idx: c_uint) *const OffsetOfNode;
pub const getBeginLoc = ZigClangOffsetOfExpr_getBeginLoc;
extern fn ZigClangOffsetOfExpr_getBeginLoc(*const OffsetOfExpr) SourceLocation;
};
pub const MemberExpr = opaque {
pub const getBase = ZigClangMemberExpr_getBase;
extern fn ZigClangMemberExpr_getBase(*const MemberExpr) *const Expr;
pub const isArrow = ZigClangMemberExpr_isArrow;
extern fn ZigClangMemberExpr_isArrow(*const MemberExpr) bool;
pub const getMemberDecl = ZigClangMemberExpr_getMemberDecl;
extern fn ZigClangMemberExpr_getMemberDecl(*const MemberExpr) *const ValueDecl;
};
pub const NamedDecl = opaque {
pub const getName_bytes_begin = ZigClangNamedDecl_getName_bytes_begin;
extern fn ZigClangNamedDecl_getName_bytes_begin(decl: *const NamedDecl) [*:0]const u8;
};
pub const None = opaque {};
pub const OpaqueValueExpr = opaque {
pub const getSourceExpr = ZigClangOpaqueValueExpr_getSourceExpr;
extern fn ZigClangOpaqueValueExpr_getSourceExpr(*const OpaqueValueExpr) ?*const Expr;
};
pub const PCHContainerOperations = opaque {};
pub const ParenExpr = opaque {
pub const getSubExpr = ZigClangParenExpr_getSubExpr;
extern fn ZigClangParenExpr_getSubExpr(*const ParenExpr) *const Expr;
};
pub const ParenType = opaque {
pub const getInnerType = ZigClangParenType_getInnerType;
extern fn ZigClangParenType_getInnerType(*const ParenType) QualType;
};
pub const ParmVarDecl = opaque {
pub const getOriginalType = ZigClangParmVarDecl_getOriginalType;
extern fn ZigClangParmVarDecl_getOriginalType(*const ParmVarDecl) QualType;
};
pub const PointerType = opaque {};
pub const PredefinedExpr = opaque {
pub const getFunctionName = ZigClangPredefinedExpr_getFunctionName;
extern fn ZigClangPredefinedExpr_getFunctionName(*const PredefinedExpr) *const StringLiteral;
};
pub const PreprocessedEntity = opaque {
pub const getKind = ZigClangPreprocessedEntity_getKind;
extern fn ZigClangPreprocessedEntity_getKind(*const PreprocessedEntity) PreprocessedEntity_EntityKind;
};
pub const PreprocessingRecord = opaque {
pub const iterator = extern struct {
I: c_int,
Self: *PreprocessingRecord,
pub const deref = ZigClangPreprocessingRecord_iterator_deref;
extern fn ZigClangPreprocessingRecord_iterator_deref(iterator) *PreprocessedEntity;
};
};
pub const RecordDecl = opaque {
pub const getCanonicalDecl = ZigClangRecordDecl_getCanonicalDecl;
extern fn ZigClangRecordDecl_getCanonicalDecl(*const RecordDecl) ?*const TagDecl;
pub const isUnion = ZigClangRecordDecl_isUnion;
extern fn ZigClangRecordDecl_isUnion(*const RecordDecl) bool;
pub const isStruct = ZigClangRecordDecl_isStruct;
extern fn ZigClangRecordDecl_isStruct(*const RecordDecl) bool;
pub const isAnonymousStructOrUnion = ZigClangRecordDecl_isAnonymousStructOrUnion;
extern fn ZigClangRecordDecl_isAnonymousStructOrUnion(record_decl: ?*const RecordDecl) bool;
pub const getPackedAttribute = ZigClangRecordDecl_getPackedAttribute;
extern fn ZigClangRecordDecl_getPackedAttribute(*const RecordDecl) bool;
pub const getDefinition = ZigClangRecordDecl_getDefinition;
extern fn ZigClangRecordDecl_getDefinition(*const RecordDecl) ?*const RecordDecl;
pub const getLocation = ZigClangRecordDecl_getLocation;
extern fn ZigClangRecordDecl_getLocation(*const RecordDecl) SourceLocation;
pub const getASTRecordLayout = ZigClangRecordDecl_getASTRecordLayout;
extern fn ZigClangRecordDecl_getASTRecordLayout(*const RecordDecl, *const ASTContext) *const ASTRecordLayout;
pub const field_begin = ZigClangRecordDecl_field_begin;
extern fn ZigClangRecordDecl_field_begin(*const RecordDecl) field_iterator;
pub const field_end = ZigClangRecordDecl_field_end;
extern fn ZigClangRecordDecl_field_end(*const RecordDecl) field_iterator;
pub const field_iterator = extern struct {
ptr: *anyopaque,
pub const next = ZigClangRecordDecl_field_iterator_next;
extern fn ZigClangRecordDecl_field_iterator_next(field_iterator) field_iterator;
pub const deref = ZigClangRecordDecl_field_iterator_deref;
extern fn ZigClangRecordDecl_field_iterator_deref(field_iterator) *const FieldDecl;
pub const neq = ZigClangRecordDecl_field_iterator_neq;
extern fn ZigClangRecordDecl_field_iterator_neq(field_iterator, field_iterator) bool;
};
};
pub const RecordType = opaque {
pub const getDecl = ZigClangRecordType_getDecl;
extern fn ZigClangRecordType_getDecl(*const RecordType) *const RecordDecl;
};
pub const ReturnStmt = opaque {
pub const getRetValue = ZigClangReturnStmt_getRetValue;
extern fn ZigClangReturnStmt_getRetValue(*const ReturnStmt) ?*const Expr;
};
pub const ShuffleVectorExpr = opaque {
pub const getNumSubExprs = ZigClangShuffleVectorExpr_getNumSubExprs;
extern fn ZigClangShuffleVectorExpr_getNumSubExprs(*const ShuffleVectorExpr) c_uint;
pub const getExpr = ZigClangShuffleVectorExpr_getExpr;
extern fn ZigClangShuffleVectorExpr_getExpr(*const ShuffleVectorExpr, c_uint) *const Expr;
};
pub const SourceManager = opaque {
pub const getSpellingLoc = ZigClangSourceManager_getSpellingLoc;
extern fn ZigClangSourceManager_getSpellingLoc(*const SourceManager, Loc: SourceLocation) SourceLocation;
pub const getFilename = ZigClangSourceManager_getFilename;
extern fn ZigClangSourceManager_getFilename(*const SourceManager, SpellingLoc: SourceLocation) ?[*:0]const u8;
pub const getSpellingLineNumber = ZigClangSourceManager_getSpellingLineNumber;
extern fn ZigClangSourceManager_getSpellingLineNumber(*const SourceManager, Loc: SourceLocation) c_uint;
pub const getSpellingColumnNumber = ZigClangSourceManager_getSpellingColumnNumber;
extern fn ZigClangSourceManager_getSpellingColumnNumber(*const SourceManager, Loc: SourceLocation) c_uint;
pub const getCharacterData = ZigClangSourceManager_getCharacterData;
extern fn ZigClangSourceManager_getCharacterData(*const SourceManager, SL: SourceLocation) [*:0]const u8;
};
pub const SourceRange = opaque {};
pub const Stmt = opaque {
pub const getBeginLoc = ZigClangStmt_getBeginLoc;
extern fn ZigClangStmt_getBeginLoc(*const Stmt) SourceLocation;
pub const getStmtClass = ZigClangStmt_getStmtClass;
extern fn ZigClangStmt_getStmtClass(*const Stmt) StmtClass;
pub const classof_Expr = ZigClangStmt_classof_Expr;
extern fn ZigClangStmt_classof_Expr(*const Stmt) bool;
};
pub const StmtExpr = opaque {
pub const getSubStmt = ZigClangStmtExpr_getSubStmt;
extern fn ZigClangStmtExpr_getSubStmt(*const StmtExpr) *const CompoundStmt;
};
pub const StringLiteral = opaque {
pub const getKind = ZigClangStringLiteral_getKind;
extern fn ZigClangStringLiteral_getKind(*const StringLiteral) CharacterLiteral_CharacterKind;
pub const getCodeUnit = ZigClangStringLiteral_getCodeUnit;
extern fn ZigClangStringLiteral_getCodeUnit(*const StringLiteral, usize) u32;
pub const getLength = ZigClangStringLiteral_getLength;
extern fn ZigClangStringLiteral_getLength(*const StringLiteral) c_uint;
pub const getCharByteWidth = ZigClangStringLiteral_getCharByteWidth;
extern fn ZigClangStringLiteral_getCharByteWidth(*const StringLiteral) c_uint;
pub const getString_bytes_begin_size = ZigClangStringLiteral_getString_bytes_begin_size;
extern fn ZigClangStringLiteral_getString_bytes_begin_size(*const StringLiteral, *usize) [*]const u8;
};
pub const StringRef = opaque {};
pub const SwitchStmt = opaque {
pub const getConditionVariableDeclStmt = ZigClangSwitchStmt_getConditionVariableDeclStmt;
extern fn ZigClangSwitchStmt_getConditionVariableDeclStmt(*const SwitchStmt) ?*const DeclStmt;
pub const getCond = ZigClangSwitchStmt_getCond;
extern fn ZigClangSwitchStmt_getCond(*const SwitchStmt) *const Expr;
pub const getBody = ZigClangSwitchStmt_getBody;
extern fn ZigClangSwitchStmt_getBody(*const SwitchStmt) *const Stmt;
pub const isAllEnumCasesCovered = ZigClangSwitchStmt_isAllEnumCasesCovered;
extern fn ZigClangSwitchStmt_isAllEnumCasesCovered(*const SwitchStmt) bool;
};
pub const TagDecl = opaque {
pub const isThisDeclarationADefinition = ZigClangTagDecl_isThisDeclarationADefinition;
extern fn ZigClangTagDecl_isThisDeclarationADefinition(*const TagDecl) bool;
};
pub const Type = opaque {
pub const getTypeClass = ZigClangType_getTypeClass;
extern fn ZigClangType_getTypeClass(*const Type) TypeClass;
pub const getPointeeType = ZigClangType_getPointeeType;
extern fn ZigClangType_getPointeeType(*const Type) QualType;
pub const isVoidType = ZigClangType_isVoidType;
extern fn ZigClangType_isVoidType(*const Type) bool;
pub const isConstantArrayType = ZigClangType_isConstantArrayType;
extern fn ZigClangType_isConstantArrayType(*const Type) bool;
pub const isRecordType = ZigClangType_isRecordType;
extern fn ZigClangType_isRecordType(*const Type) bool;
pub const isVectorType = ZigClangType_isVectorType;
extern fn ZigClangType_isVectorType(*const Type) bool;
pub const isIncompleteOrZeroLengthArrayType = ZigClangType_isIncompleteOrZeroLengthArrayType;
extern fn ZigClangType_isIncompleteOrZeroLengthArrayType(*const Type, *const ASTContext) bool;
pub const isArrayType = ZigClangType_isArrayType;
extern fn ZigClangType_isArrayType(*const Type) bool;
pub const isBooleanType = ZigClangType_isBooleanType;
extern fn ZigClangType_isBooleanType(*const Type) bool;
pub const getTypeClassName = ZigClangType_getTypeClassName;
extern fn ZigClangType_getTypeClassName(*const Type) [*:0]const u8;
pub const getAsArrayTypeUnsafe = ZigClangType_getAsArrayTypeUnsafe;
extern fn ZigClangType_getAsArrayTypeUnsafe(*const Type) *const ArrayType;
pub const getAsRecordType = ZigClangType_getAsRecordType;
extern fn ZigClangType_getAsRecordType(*const Type) ?*const RecordType;
pub const getAsUnionType = ZigClangType_getAsUnionType;
extern fn ZigClangType_getAsUnionType(*const Type) ?*const RecordType;
};
pub const TypedefNameDecl = opaque {
pub const getUnderlyingType = ZigClangTypedefNameDecl_getUnderlyingType;
extern fn ZigClangTypedefNameDecl_getUnderlyingType(*const TypedefNameDecl) QualType;
pub const getCanonicalDecl = ZigClangTypedefNameDecl_getCanonicalDecl;
extern fn ZigClangTypedefNameDecl_getCanonicalDecl(*const TypedefNameDecl) ?*const TypedefNameDecl;
pub const getLocation = ZigClangTypedefNameDecl_getLocation;
extern fn ZigClangTypedefNameDecl_getLocation(*const TypedefNameDecl) SourceLocation;
};
pub const FileScopeAsmDecl = opaque {
pub const getAsmString = ZigClangFileScopeAsmDecl_getAsmString;
extern fn ZigClangFileScopeAsmDecl_getAsmString(*const FileScopeAsmDecl) *const StringLiteral;
};
pub const TypedefType = opaque {
pub const getDecl = ZigClangTypedefType_getDecl;
extern fn ZigClangTypedefType_getDecl(*const TypedefType) *const TypedefNameDecl;
};
pub const UnaryExprOrTypeTraitExpr = opaque {
pub const getTypeOfArgument = ZigClangUnaryExprOrTypeTraitExpr_getTypeOfArgument;
extern fn ZigClangUnaryExprOrTypeTraitExpr_getTypeOfArgument(*const UnaryExprOrTypeTraitExpr) QualType;
pub const getBeginLoc = ZigClangUnaryExprOrTypeTraitExpr_getBeginLoc;
extern fn ZigClangUnaryExprOrTypeTraitExpr_getBeginLoc(*const UnaryExprOrTypeTraitExpr) SourceLocation;
pub const getKind = ZigClangUnaryExprOrTypeTraitExpr_getKind;
extern fn ZigClangUnaryExprOrTypeTraitExpr_getKind(*const UnaryExprOrTypeTraitExpr) UnaryExprOrTypeTrait_Kind;
};
pub const UnaryOperator = opaque {
pub const getOpcode = ZigClangUnaryOperator_getOpcode;
extern fn ZigClangUnaryOperator_getOpcode(*const UnaryOperator) UO;
pub const getType = ZigClangUnaryOperator_getType;
extern fn ZigClangUnaryOperator_getType(*const UnaryOperator) QualType;
pub const getSubExpr = ZigClangUnaryOperator_getSubExpr;
extern fn ZigClangUnaryOperator_getSubExpr(*const UnaryOperator) *const Expr;
pub const getBeginLoc = ZigClangUnaryOperator_getBeginLoc;
extern fn ZigClangUnaryOperator_getBeginLoc(*const UnaryOperator) SourceLocation;
};
pub const ValueDecl = opaque {
pub const getType = ZigClangValueDecl_getType;
extern fn ZigClangValueDecl_getType(*const ValueDecl) QualType;
};
pub const VarDecl = opaque {
pub const getLocation = ZigClangVarDecl_getLocation;
extern fn ZigClangVarDecl_getLocation(*const VarDecl) SourceLocation;
pub const hasInit = ZigClangVarDecl_hasInit;
extern fn ZigClangVarDecl_hasInit(*const VarDecl) bool;
pub const getStorageClass = ZigClangVarDecl_getStorageClass;
extern fn ZigClangVarDecl_getStorageClass(*const VarDecl) StorageClass;