| ... | ... | @@ -1,5 +1,6 @@ |
| 1 | 1 | pub const struct_ZigClangAPValue = @OpaqueType(); |
| 2 | 2 | pub const struct_ZigClangAPSInt = @OpaqueType(); |
| 3 | pub const struct_ZigClangAPFloat = @OpaqueType(); |
| 3 | 4 | pub const struct_ZigClangASTContext = @OpaqueType(); |
| 4 | 5 | pub const struct_ZigClangASTUnit = @OpaqueType(); |
| 5 | 6 | pub const struct_ZigClangArraySubscriptExpr = @OpaqueType(); |
| ... | ... | @@ -12,7 +13,7 @@ pub const struct_ZigClangCStyleCastExpr = @OpaqueType(); |
| 12 | 13 | pub const struct_ZigClangCallExpr = @OpaqueType(); |
| 13 | 14 | pub const struct_ZigClangCaseStmt = @OpaqueType(); |
| 14 | 15 | pub const struct_ZigClangCompoundAssignOperator = @OpaqueType(); |
| 15 | | pub const ZigClangCompoundStmt = @OpaqueType(); |
| 16 | pub const struct_ZigClangCompoundStmt = @OpaqueType(); |
| 16 | 17 | pub const struct_ZigClangConditionalOperator = @OpaqueType(); |
| 17 | 18 | pub const struct_ZigClangConstantArrayType = @OpaqueType(); |
| 18 | 19 | pub const struct_ZigClangContinueStmt = @OpaqueType(); |
| ... | ... | @@ -33,7 +34,7 @@ pub const struct_ZigClangFieldDecl = @OpaqueType(); |
| 33 | 34 | pub const struct_ZigClangFileID = @OpaqueType(); |
| 34 | 35 | pub const struct_ZigClangForStmt = @OpaqueType(); |
| 35 | 36 | pub const struct_ZigClangFullSourceLoc = @OpaqueType(); |
| 36 | | pub const ZigClangFunctionDecl = @OpaqueType(); |
| 37 | pub const struct_ZigClangFunctionDecl = @OpaqueType(); |
| 37 | 38 | pub const struct_ZigClangFunctionProtoType = @OpaqueType(); |
| 38 | 39 | pub const struct_ZigClangIfStmt = @OpaqueType(); |
| 39 | 40 | pub const struct_ZigClangImplicitCastExpr = @OpaqueType(); |
| ... | ... | @@ -68,7 +69,8 @@ pub const struct_ZigClangUnaryOperator = @OpaqueType(); |
| 68 | 69 | pub const struct_ZigClangValueDecl = @OpaqueType(); |
| 69 | 70 | pub const struct_ZigClangVarDecl = @OpaqueType(); |
| 70 | 71 | pub const struct_ZigClangWhileStmt = @OpaqueType(); |
| 71 | | pub const ZigClangFunctionType = @OpaqueType(); |
| 72 | pub const struct_ZigClangFunctionType = @OpaqueType(); |
| 73 | pub const struct_ZigClangPredefinedExpr = @OpaqueType(); |
| 72 | 74 | |
| 73 | 75 | pub const ZigClangBO = extern enum { |
| 74 | 76 | PtrMemD, |
| ... | ... | @@ -450,186 +452,6 @@ pub const ZigClangAPValueKind = extern enum { |
| 450 | 452 | AddrLabelDiff, |
| 451 | 453 | }; |
| 452 | 454 | |
| 453 | | pub extern fn ZigClangSourceManager_getSpellingLoc(arg0: ?*const struct_ZigClangSourceManager, Loc: struct_ZigClangSourceLocation) struct_ZigClangSourceLocation; |
| 454 | | pub extern fn ZigClangSourceManager_getFilename(self: *const struct_ZigClangSourceManager, SpellingLoc: struct_ZigClangSourceLocation) ?[*]const u8; |
| 455 | | pub extern fn ZigClangSourceManager_getSpellingLineNumber(arg0: ?*const struct_ZigClangSourceManager, Loc: struct_ZigClangSourceLocation) c_uint; |
| 456 | | pub extern fn ZigClangSourceManager_getSpellingColumnNumber(arg0: ?*const struct_ZigClangSourceManager, Loc: struct_ZigClangSourceLocation) c_uint; |
| 457 | | pub extern fn ZigClangSourceManager_getCharacterData(arg0: ?*const struct_ZigClangSourceManager, SL: struct_ZigClangSourceLocation) [*c]const u8; |
| 458 | | pub extern fn ZigClangASTContext_getPointerType(arg0: ?*const struct_ZigClangASTContext, T: struct_ZigClangQualType) struct_ZigClangQualType; |
| 459 | | pub extern fn ZigClangASTUnit_getASTContext(arg0: ?*struct_ZigClangASTUnit) ?*struct_ZigClangASTContext; |
| 460 | | pub extern fn ZigClangASTUnit_getSourceManager(self: *struct_ZigClangASTUnit) *struct_ZigClangSourceManager; |
| 461 | | pub extern fn ZigClangASTUnit_visitLocalTopLevelDecls(self: *struct_ZigClangASTUnit, context: ?*c_void, Fn: ?extern fn (?*c_void, *const struct_ZigClangDecl) bool) bool; |
| 462 | | pub extern fn ZigClangRecordType_getDecl(record_ty: ?*const struct_ZigClangRecordType) ?*const struct_ZigClangRecordDecl; |
| 463 | | pub extern fn ZigClangEnumType_getDecl(record_ty: ?*const struct_ZigClangEnumType) ?*const struct_ZigClangEnumDecl; |
| 464 | | pub extern fn ZigClangRecordDecl_getCanonicalDecl(record_decl: ?*const struct_ZigClangRecordDecl) ?*const struct_ZigClangTagDecl; |
| 465 | | pub extern fn ZigClangEnumDecl_getCanonicalDecl(arg0: ?*const struct_ZigClangEnumDecl) ?*const struct_ZigClangTagDecl; |
| 466 | | pub extern fn ZigClangTypedefNameDecl_getCanonicalDecl(arg0: ?*const struct_ZigClangTypedefNameDecl) ?*const struct_ZigClangTypedefNameDecl; |
| 467 | | pub extern fn ZigClangRecordDecl_getDefinition(arg0: ?*const struct_ZigClangRecordDecl) ?*const struct_ZigClangRecordDecl; |
| 468 | | pub extern fn ZigClangEnumDecl_getDefinition(arg0: ?*const struct_ZigClangEnumDecl) ?*const struct_ZigClangEnumDecl; |
| 469 | | pub extern fn ZigClangRecordDecl_getLocation(arg0: ?*const struct_ZigClangRecordDecl) struct_ZigClangSourceLocation; |
| 470 | | pub extern fn ZigClangEnumDecl_getLocation(arg0: ?*const struct_ZigClangEnumDecl) struct_ZigClangSourceLocation; |
| 471 | | pub extern fn ZigClangTypedefNameDecl_getLocation(arg0: ?*const struct_ZigClangTypedefNameDecl) struct_ZigClangSourceLocation; |
| 472 | | pub extern fn ZigClangDecl_getLocation(self: *const ZigClangDecl) ZigClangSourceLocation; |
| 473 | | pub extern fn ZigClangRecordDecl_isUnion(record_decl: ?*const struct_ZigClangRecordDecl) bool; |
| 474 | | pub extern fn ZigClangRecordDecl_isStruct(record_decl: ?*const struct_ZigClangRecordDecl) bool; |
| 475 | | pub extern fn ZigClangRecordDecl_isAnonymousStructOrUnion(record_decl: ?*const struct_ZigClangRecordDecl) bool; |
| 476 | | pub extern fn ZigClangEnumDecl_getIntegerType(arg0: ?*const struct_ZigClangEnumDecl) struct_ZigClangQualType; |
| 477 | | pub extern fn ZigClangDecl_getName_bytes_begin(decl: ?*const struct_ZigClangDecl) [*c]const u8; |
| 478 | | pub extern fn ZigClangSourceLocation_eq(a: struct_ZigClangSourceLocation, b: struct_ZigClangSourceLocation) bool; |
| 479 | | pub extern fn ZigClangTypedefType_getDecl(arg0: ?*const struct_ZigClangTypedefType) ?*const struct_ZigClangTypedefNameDecl; |
| 480 | | pub extern fn ZigClangTypedefNameDecl_getUnderlyingType(arg0: ?*const struct_ZigClangTypedefNameDecl) struct_ZigClangQualType; |
| 481 | | pub extern fn ZigClangQualType_getCanonicalType(arg0: struct_ZigClangQualType) struct_ZigClangQualType; |
| 482 | | pub extern fn ZigClangQualType_getTypePtr(self: struct_ZigClangQualType) *const struct_ZigClangType; |
| 483 | | pub extern fn ZigClangQualType_addConst(arg0: [*c]struct_ZigClangQualType) void; |
| 484 | | pub extern fn ZigClangQualType_eq(arg0: struct_ZigClangQualType, arg1: struct_ZigClangQualType) bool; |
| 485 | | pub extern fn ZigClangQualType_isConstQualified(arg0: struct_ZigClangQualType) bool; |
| 486 | | pub extern fn ZigClangQualType_isVolatileQualified(arg0: struct_ZigClangQualType) bool; |
| 487 | | pub extern fn ZigClangQualType_isRestrictQualified(arg0: struct_ZigClangQualType) bool; |
| 488 | | pub extern fn ZigClangType_getTypeClass(self: ?*const struct_ZigClangType) ZigClangTypeClass; |
| 489 | | pub extern fn ZigClangType_isVoidType(self: ?*const struct_ZigClangType) bool; |
| 490 | | pub extern fn ZigClangType_getTypeClassName(self: *const struct_ZigClangType) [*]const u8; |
| 491 | | pub extern fn ZigClangStmt_getBeginLoc(self: *const struct_ZigClangStmt) struct_ZigClangSourceLocation; |
| 492 | | pub extern fn ZigClangStmt_getStmtClass(self: ?*const struct_ZigClangStmt) ZigClangStmtClass; |
| 493 | | pub extern fn ZigClangStmt_classof_Expr(self: ?*const struct_ZigClangStmt) bool; |
| 494 | | pub extern fn ZigClangExpr_getStmtClass(self: ?*const struct_ZigClangExpr) ZigClangStmtClass; |
| 495 | | pub extern fn ZigClangExpr_getType(self: ?*const struct_ZigClangExpr) struct_ZigClangQualType; |
| 496 | | pub extern fn ZigClangExpr_getBeginLoc(self: *const struct_ZigClangExpr) struct_ZigClangSourceLocation; |
| 497 | | pub extern fn ZigClangAPValue_getKind(self: ?*const struct_ZigClangAPValue) ZigClangAPValueKind; |
| 498 | | pub extern fn ZigClangAPValue_getInt(self: ?*const struct_ZigClangAPValue) ?*const struct_ZigClangAPSInt; |
| 499 | | pub extern fn ZigClangAPValue_getArrayInitializedElts(self: ?*const struct_ZigClangAPValue) c_uint; |
| 500 | | pub extern fn ZigClangAPValue_getArrayInitializedElt(self: ?*const struct_ZigClangAPValue, i: c_uint) ?*const struct_ZigClangAPValue; |
| 501 | | pub extern fn ZigClangAPValue_getArrayFiller(self: ?*const struct_ZigClangAPValue) ?*const struct_ZigClangAPValue; |
| 502 | | pub extern fn ZigClangAPValue_getArraySize(self: ?*const struct_ZigClangAPValue) c_uint; |
| 503 | | pub extern fn ZigClangAPValue_getLValueBase(self: ?*const struct_ZigClangAPValue) struct_ZigClangAPValueLValueBase; |
| 504 | | pub extern fn ZigClangAPSInt_isSigned(self: ?*const struct_ZigClangAPSInt) bool; |
| 505 | | pub extern fn ZigClangAPSInt_isNegative(self: ?*const struct_ZigClangAPSInt) bool; |
| 506 | | pub extern fn ZigClangAPSInt_negate(self: ?*const struct_ZigClangAPSInt) ?*const struct_ZigClangAPSInt; |
| 507 | | pub extern fn ZigClangAPSInt_free(self: ?*const struct_ZigClangAPSInt) void; |
| 508 | | pub extern fn ZigClangAPSInt_getRawData(self: ?*const struct_ZigClangAPSInt) [*c]const u64; |
| 509 | | pub extern fn ZigClangAPSInt_getNumWords(self: ?*const struct_ZigClangAPSInt) c_uint; |
| 510 | | pub extern fn ZigClangAPValueLValueBase_dyn_cast_Expr(self: struct_ZigClangAPValueLValueBase) ?*const struct_ZigClangExpr; |
| 511 | | pub extern fn ZigClangASTUnit_delete(arg0: ?*struct_ZigClangASTUnit) void; |
| 512 | | |
| 513 | | pub extern fn ZigClangFunctionDecl_getType(self: *const ZigClangFunctionDecl) struct_ZigClangQualType; |
| 514 | | pub extern fn ZigClangFunctionDecl_getLocation(self: *const ZigClangFunctionDecl) struct_ZigClangSourceLocation; |
| 515 | | pub extern fn ZigClangFunctionDecl_hasBody(self: *const ZigClangFunctionDecl) bool; |
| 516 | | pub extern fn ZigClangFunctionDecl_getStorageClass(self: *const ZigClangFunctionDecl) ZigClangStorageClass; |
| 517 | | pub extern fn ZigClangFunctionDecl_getParamDecl(self: *const ZigClangFunctionDecl, i: c_uint) *const struct_ZigClangParmVarDecl; |
| 518 | | pub extern fn ZigClangFunctionDecl_getBody(self: *const ZigClangFunctionDecl) *const struct_ZigClangStmt; |
| 519 | | |
| 520 | | pub extern fn ZigClangBuiltinType_getKind(self: *const struct_ZigClangBuiltinType) ZigClangBuiltinTypeKind; |
| 521 | | |
| 522 | | pub extern fn ZigClangFunctionType_getNoReturnAttr(self: *const ZigClangFunctionType) bool; |
| 523 | | pub extern fn ZigClangFunctionType_getCallConv(self: *const ZigClangFunctionType) ZigClangCallingConv; |
| 524 | | pub extern fn ZigClangFunctionType_getReturnType(self: *const ZigClangFunctionType) ZigClangQualType; |
| 525 | | |
| 526 | | pub extern fn ZigClangFunctionProtoType_isVariadic(self: *const struct_ZigClangFunctionProtoType) bool; |
| 527 | | pub extern fn ZigClangFunctionProtoType_getNumParams(self: *const struct_ZigClangFunctionProtoType) c_uint; |
| 528 | | pub extern fn ZigClangFunctionProtoType_getParamType(self: *const struct_ZigClangFunctionProtoType, i: c_uint) ZigClangQualType; |
| 529 | | |
| 530 | | pub const ZigClangSourceLocation = struct_ZigClangSourceLocation; |
| 531 | | pub const ZigClangQualType = struct_ZigClangQualType; |
| 532 | | pub const ZigClangAPValueLValueBase = struct_ZigClangAPValueLValueBase; |
| 533 | | pub const ZigClangAPValue = struct_ZigClangAPValue; |
| 534 | | pub const ZigClangAPSInt = struct_ZigClangAPSInt; |
| 535 | | pub const ZigClangASTContext = struct_ZigClangASTContext; |
| 536 | | pub const ZigClangASTUnit = struct_ZigClangASTUnit; |
| 537 | | pub const ZigClangArraySubscriptExpr = struct_ZigClangArraySubscriptExpr; |
| 538 | | pub const ZigClangArrayType = struct_ZigClangArrayType; |
| 539 | | pub const ZigClangAttributedType = struct_ZigClangAttributedType; |
| 540 | | pub const ZigClangBinaryOperator = struct_ZigClangBinaryOperator; |
| 541 | | pub const ZigClangBreakStmt = struct_ZigClangBreakStmt; |
| 542 | | pub const ZigClangBuiltinType = struct_ZigClangBuiltinType; |
| 543 | | pub const ZigClangCStyleCastExpr = struct_ZigClangCStyleCastExpr; |
| 544 | | pub const ZigClangCallExpr = struct_ZigClangCallExpr; |
| 545 | | pub const ZigClangCaseStmt = struct_ZigClangCaseStmt; |
| 546 | | pub const ZigClangCompoundAssignOperator = struct_ZigClangCompoundAssignOperator; |
| 547 | | pub const ZigClangConditionalOperator = struct_ZigClangConditionalOperator; |
| 548 | | pub const ZigClangConstantArrayType = struct_ZigClangConstantArrayType; |
| 549 | | pub const ZigClangContinueStmt = struct_ZigClangContinueStmt; |
| 550 | | pub const ZigClangDecayedType = struct_ZigClangDecayedType; |
| 551 | | pub const ZigClangDecl = struct_ZigClangDecl; |
| 552 | | pub const ZigClangDeclRefExpr = struct_ZigClangDeclRefExpr; |
| 553 | | pub const ZigClangDeclStmt = struct_ZigClangDeclStmt; |
| 554 | | pub const ZigClangDefaultStmt = struct_ZigClangDefaultStmt; |
| 555 | | pub const ZigClangDiagnosticOptions = struct_ZigClangDiagnosticOptions; |
| 556 | | pub const ZigClangDiagnosticsEngine = struct_ZigClangDiagnosticsEngine; |
| 557 | | pub const ZigClangDoStmt = struct_ZigClangDoStmt; |
| 558 | | pub const ZigClangElaboratedType = struct_ZigClangElaboratedType; |
| 559 | | pub const ZigClangEnumConstantDecl = struct_ZigClangEnumConstantDecl; |
| 560 | | pub const ZigClangEnumDecl = struct_ZigClangEnumDecl; |
| 561 | | pub const ZigClangEnumType = struct_ZigClangEnumType; |
| 562 | | pub const ZigClangExpr = struct_ZigClangExpr; |
| 563 | | pub const ZigClangFieldDecl = struct_ZigClangFieldDecl; |
| 564 | | pub const ZigClangFileID = struct_ZigClangFileID; |
| 565 | | pub const ZigClangForStmt = struct_ZigClangForStmt; |
| 566 | | pub const ZigClangFullSourceLoc = struct_ZigClangFullSourceLoc; |
| 567 | | pub const ZigClangFunctionProtoType = struct_ZigClangFunctionProtoType; |
| 568 | | pub const ZigClangIfStmt = struct_ZigClangIfStmt; |
| 569 | | pub const ZigClangImplicitCastExpr = struct_ZigClangImplicitCastExpr; |
| 570 | | pub const ZigClangIncompleteArrayType = struct_ZigClangIncompleteArrayType; |
| 571 | | pub const ZigClangIntegerLiteral = struct_ZigClangIntegerLiteral; |
| 572 | | pub const ZigClangMacroDefinitionRecord = struct_ZigClangMacroDefinitionRecord; |
| 573 | | pub const ZigClangMemberExpr = struct_ZigClangMemberExpr; |
| 574 | | pub const ZigClangNamedDecl = struct_ZigClangNamedDecl; |
| 575 | | pub const ZigClangNone = struct_ZigClangNone; |
| 576 | | pub const ZigClangPCHContainerOperations = struct_ZigClangPCHContainerOperations; |
| 577 | | pub const ZigClangParenExpr = struct_ZigClangParenExpr; |
| 578 | | pub const ZigClangParenType = struct_ZigClangParenType; |
| 579 | | pub const ZigClangParmVarDecl = struct_ZigClangParmVarDecl; |
| 580 | | pub const ZigClangPointerType = struct_ZigClangPointerType; |
| 581 | | pub const ZigClangPreprocessedEntity = struct_ZigClangPreprocessedEntity; |
| 582 | | pub const ZigClangRecordDecl = struct_ZigClangRecordDecl; |
| 583 | | pub const ZigClangRecordType = struct_ZigClangRecordType; |
| 584 | | pub const ZigClangReturnStmt = struct_ZigClangReturnStmt; |
| 585 | | pub const ZigClangSkipFunctionBodiesScope = struct_ZigClangSkipFunctionBodiesScope; |
| 586 | | pub const ZigClangSourceManager = struct_ZigClangSourceManager; |
| 587 | | pub const ZigClangSourceRange = struct_ZigClangSourceRange; |
| 588 | | pub const ZigClangStmt = struct_ZigClangStmt; |
| 589 | | pub const ZigClangStringLiteral = struct_ZigClangStringLiteral; |
| 590 | | pub const ZigClangStringRef = struct_ZigClangStringRef; |
| 591 | | pub const ZigClangSwitchStmt = struct_ZigClangSwitchStmt; |
| 592 | | pub const ZigClangTagDecl = struct_ZigClangTagDecl; |
| 593 | | pub const ZigClangType = struct_ZigClangType; |
| 594 | | pub const ZigClangTypedefNameDecl = struct_ZigClangTypedefNameDecl; |
| 595 | | pub const ZigClangTypedefType = struct_ZigClangTypedefType; |
| 596 | | pub const ZigClangUnaryExprOrTypeTraitExpr = struct_ZigClangUnaryExprOrTypeTraitExpr; |
| 597 | | pub const ZigClangUnaryOperator = struct_ZigClangUnaryOperator; |
| 598 | | pub const ZigClangValueDecl = struct_ZigClangValueDecl; |
| 599 | | pub const ZigClangVarDecl = struct_ZigClangVarDecl; |
| 600 | | pub const ZigClangWhileStmt = struct_ZigClangWhileStmt; |
| 601 | | |
| 602 | | pub const struct_ZigClangSourceLocation = extern struct { |
| 603 | | ID: c_uint, |
| 604 | | }; |
| 605 | | |
| 606 | | pub const Stage2ErrorMsg = extern struct { |
| 607 | | filename_ptr: ?[*]const u8, |
| 608 | | filename_len: usize, |
| 609 | | msg_ptr: [*]const u8, |
| 610 | | msg_len: usize, |
| 611 | | // valid until the ASTUnit is freed |
| 612 | | source: ?[*]const u8, |
| 613 | | // 0 based |
| 614 | | line: c_uint, |
| 615 | | // 0 based |
| 616 | | column: c_uint, |
| 617 | | // byte offset into source |
| 618 | | offset: c_uint, |
| 619 | | }; |
| 620 | | pub extern fn ZigClangErrorMsg_delete(ptr: [*c]Stage2ErrorMsg, len: usize) void; |
| 621 | | |
| 622 | | pub extern fn ZigClangLoadFromCommandLine( |
| 623 | | args_begin: [*]?[*]const u8, |
| 624 | | args_end: [*]?[*]const u8, |
| 625 | | errors_ptr: *[*]Stage2ErrorMsg, |
| 626 | | errors_len: *usize, |
| 627 | | resources_path: [*c]const u8, |
| 628 | | ) ?*ZigClangASTUnit; |
| 629 | | |
| 630 | | pub extern fn ZigClangDecl_getKind(decl: *const ZigClangDecl) ZigClangDeclKind; |
| 631 | | pub extern fn ZigClangDecl_getDeclKindName(decl: *const struct_ZigClangDecl) [*]const u8; |
| 632 | | |
| 633 | 455 | pub const ZigClangDeclKind = extern enum { |
| 634 | 456 | AccessSpec, |
| 635 | 457 | Block, |
| ... | ... | @@ -707,10 +529,6 @@ pub const ZigClangDeclKind = extern enum { |
| 707 | 529 | TranslationUnit, |
| 708 | 530 | }; |
| 709 | 531 | |
| 710 | | pub const struct_ZigClangQualType = extern struct { |
| 711 | | ptr: ?*c_void, |
| 712 | | }; |
| 713 | | |
| 714 | 532 | pub const ZigClangBuiltinTypeKind = extern enum { |
| 715 | 533 | OCLImage1dRO, |
| 716 | 534 | OCLImage1dArrayRO, |
| ... | ... | @@ -860,6 +678,218 @@ pub const ZigClangStorageClass = extern enum { |
| 860 | 678 | Register, |
| 861 | 679 | }; |
| 862 | 680 | |
| 681 | pub const ZigClangAPFloat_roundingMode = extern enum { |
| 682 | NearestTiesToEven, |
| 683 | TowardPositive, |
| 684 | TowardNegative, |
| 685 | TowardZero, |
| 686 | NearestTiesToAway, |
| 687 | }; |
| 688 | |
| 689 | pub const ZigClangStringLiteral_StringKind = extern enum { |
| 690 | Ascii, |
| 691 | Wide, |
| 692 | UTF8, |
| 693 | UTF16, |
| 694 | UTF32, |
| 695 | }; |
| 696 | |
| 697 | pub extern fn ZigClangSourceManager_getSpellingLoc(self: ?*const struct_ZigClangSourceManager, Loc: struct_ZigClangSourceLocation) struct_ZigClangSourceLocation; |
| 698 | pub extern fn ZigClangSourceManager_getFilename(self: *const struct_ZigClangSourceManager, SpellingLoc: struct_ZigClangSourceLocation) ?[*]const u8; |
| 699 | pub extern fn ZigClangSourceManager_getSpellingLineNumber(self: ?*const struct_ZigClangSourceManager, Loc: struct_ZigClangSourceLocation) c_uint; |
| 700 | pub extern fn ZigClangSourceManager_getSpellingColumnNumber(self: ?*const struct_ZigClangSourceManager, Loc: struct_ZigClangSourceLocation) c_uint; |
| 701 | pub extern fn ZigClangSourceManager_getCharacterData(self: ?*const struct_ZigClangSourceManager, SL: struct_ZigClangSourceLocation) [*c]const u8; |
| 702 | pub extern fn ZigClangASTContext_getPointerType(self: ?*const struct_ZigClangASTContext, T: struct_ZigClangQualType) struct_ZigClangQualType; |
| 703 | pub extern fn ZigClangASTUnit_getASTContext(self: ?*struct_ZigClangASTUnit) ?*struct_ZigClangASTContext; |
| 704 | pub extern fn ZigClangASTUnit_getSourceManager(self: *struct_ZigClangASTUnit) *struct_ZigClangSourceManager; |
| 705 | pub extern fn ZigClangASTUnit_visitLocalTopLevelDecls(self: *struct_ZigClangASTUnit, context: ?*c_void, Fn: ?extern fn (?*c_void, *const struct_ZigClangDecl) bool) bool; |
| 706 | pub extern fn ZigClangRecordType_getDecl(record_ty: ?*const struct_ZigClangRecordType) ?*const struct_ZigClangRecordDecl; |
| 707 | pub extern fn ZigClangEnumType_getDecl(record_ty: ?*const struct_ZigClangEnumType) ?*const struct_ZigClangEnumDecl; |
| 708 | pub extern fn ZigClangRecordDecl_getCanonicalDecl(record_decl: ?*const struct_ZigClangRecordDecl) ?*const struct_ZigClangTagDecl; |
| 709 | pub extern fn ZigClangEnumDecl_getCanonicalDecl(self: ?*const struct_ZigClangEnumDecl) ?*const struct_ZigClangTagDecl; |
| 710 | pub extern fn ZigClangTypedefNameDecl_getCanonicalDecl(self: ?*const struct_ZigClangTypedefNameDecl) ?*const struct_ZigClangTypedefNameDecl; |
| 711 | pub extern fn ZigClangRecordDecl_getDefinition(self: ?*const struct_ZigClangRecordDecl) ?*const struct_ZigClangRecordDecl; |
| 712 | pub extern fn ZigClangEnumDecl_getDefinition(self: ?*const struct_ZigClangEnumDecl) ?*const struct_ZigClangEnumDecl; |
| 713 | pub extern fn ZigClangRecordDecl_getLocation(self: ?*const struct_ZigClangRecordDecl) struct_ZigClangSourceLocation; |
| 714 | pub extern fn ZigClangEnumDecl_getLocation(self: ?*const struct_ZigClangEnumDecl) struct_ZigClangSourceLocation; |
| 715 | pub extern fn ZigClangTypedefNameDecl_getLocation(self: ?*const struct_ZigClangTypedefNameDecl) struct_ZigClangSourceLocation; |
| 716 | pub extern fn ZigClangDecl_getLocation(self: *const ZigClangDecl) ZigClangSourceLocation; |
| 717 | pub extern fn ZigClangRecordDecl_isUnion(record_decl: ?*const struct_ZigClangRecordDecl) bool; |
| 718 | pub extern fn ZigClangRecordDecl_isStruct(record_decl: ?*const struct_ZigClangRecordDecl) bool; |
| 719 | pub extern fn ZigClangRecordDecl_isAnonymousStructOrUnion(record_decl: ?*const struct_ZigClangRecordDecl) bool; |
| 720 | pub extern fn ZigClangEnumDecl_getIntegerType(self: ?*const struct_ZigClangEnumDecl) struct_ZigClangQualType; |
| 721 | pub extern fn ZigClangDecl_getName_bytes_begin(decl: ?*const struct_ZigClangDecl) [*c]const u8; |
| 722 | pub extern fn ZigClangSourceLocation_eq(a: struct_ZigClangSourceLocation, b: struct_ZigClangSourceLocation) bool; |
| 723 | pub extern fn ZigClangTypedefType_getDecl(self: ?*const struct_ZigClangTypedefType) ?*const struct_ZigClangTypedefNameDecl; |
| 724 | pub extern fn ZigClangTypedefNameDecl_getUnderlyingType(self: ?*const struct_ZigClangTypedefNameDecl) struct_ZigClangQualType; |
| 725 | pub extern fn ZigClangQualType_getCanonicalType(self: struct_ZigClangQualType) struct_ZigClangQualType; |
| 726 | pub extern fn ZigClangQualType_getTypePtr(self: struct_ZigClangQualType) *const struct_ZigClangType; |
| 727 | pub extern fn ZigClangQualType_addConst(self: [*c]struct_ZigClangQualType) void; |
| 728 | pub extern fn ZigClangQualType_eq(self: struct_ZigClangQualType, arg1: struct_ZigClangQualType) bool; |
| 729 | pub extern fn ZigClangQualType_isConstQualified(self: struct_ZigClangQualType) bool; |
| 730 | pub extern fn ZigClangQualType_isVolatileQualified(self: struct_ZigClangQualType) bool; |
| 731 | pub extern fn ZigClangQualType_isRestrictQualified(self: struct_ZigClangQualType) bool; |
| 732 | pub extern fn ZigClangType_getTypeClass(self: ?*const struct_ZigClangType) ZigClangTypeClass; |
| 733 | pub extern fn ZigClangType_isVoidType(self: ?*const struct_ZigClangType) bool; |
| 734 | pub extern fn ZigClangType_getTypeClassName(self: *const struct_ZigClangType) [*]const u8; |
| 735 | pub extern fn ZigClangStmt_getBeginLoc(self: *const struct_ZigClangStmt) struct_ZigClangSourceLocation; |
| 736 | pub extern fn ZigClangStmt_getStmtClass(self: ?*const struct_ZigClangStmt) ZigClangStmtClass; |
| 737 | pub extern fn ZigClangStmt_classof_Expr(self: ?*const struct_ZigClangStmt) bool; |
| 738 | pub extern fn ZigClangExpr_getStmtClass(self: ?*const struct_ZigClangExpr) ZigClangStmtClass; |
| 739 | pub extern fn ZigClangExpr_getType(self: ?*const struct_ZigClangExpr) struct_ZigClangQualType; |
| 740 | pub extern fn ZigClangExpr_getBeginLoc(self: *const struct_ZigClangExpr) struct_ZigClangSourceLocation; |
| 741 | pub extern fn ZigClangAPValue_getKind(self: ?*const struct_ZigClangAPValue) ZigClangAPValueKind; |
| 742 | pub extern fn ZigClangAPValue_getInt(self: ?*const struct_ZigClangAPValue) ?*const struct_ZigClangAPSInt; |
| 743 | pub extern fn ZigClangAPValue_getArrayInitializedElts(self: ?*const struct_ZigClangAPValue) c_uint; |
| 744 | pub extern fn ZigClangAPValue_getArrayInitializedElt(self: ?*const struct_ZigClangAPValue, i: c_uint) ?*const struct_ZigClangAPValue; |
| 745 | pub extern fn ZigClangAPValue_getArrayFiller(self: ?*const struct_ZigClangAPValue) ?*const struct_ZigClangAPValue; |
| 746 | pub extern fn ZigClangAPValue_getArraySize(self: ?*const struct_ZigClangAPValue) c_uint; |
| 747 | pub extern fn ZigClangAPValue_getLValueBase(self: ?*const struct_ZigClangAPValue) struct_ZigClangAPValueLValueBase; |
| 748 | pub extern fn ZigClangAPSInt_isSigned(self: ?*const struct_ZigClangAPSInt) bool; |
| 749 | pub extern fn ZigClangAPSInt_isNegative(self: ?*const struct_ZigClangAPSInt) bool; |
| 750 | pub extern fn ZigClangAPSInt_negate(self: ?*const struct_ZigClangAPSInt) ?*const struct_ZigClangAPSInt; |
| 751 | pub extern fn ZigClangAPSInt_free(self: ?*const struct_ZigClangAPSInt) void; |
| 752 | pub extern fn ZigClangAPSInt_getRawData(self: ?*const struct_ZigClangAPSInt) [*c]const u64; |
| 753 | pub extern fn ZigClangAPSInt_getNumWords(self: ?*const struct_ZigClangAPSInt) c_uint; |
| 754 | pub extern fn ZigClangAPValueLValueBase_dyn_cast_Expr(self: struct_ZigClangAPValueLValueBase) ?*const struct_ZigClangExpr; |
| 755 | pub extern fn ZigClangASTUnit_delete(self: ?*struct_ZigClangASTUnit) void; |
| 756 | |
| 757 | pub extern fn ZigClangFunctionDecl_getType(self: *const ZigClangFunctionDecl) struct_ZigClangQualType; |
| 758 | pub extern fn ZigClangFunctionDecl_getLocation(self: *const ZigClangFunctionDecl) struct_ZigClangSourceLocation; |
| 759 | pub extern fn ZigClangFunctionDecl_hasBody(self: *const ZigClangFunctionDecl) bool; |
| 760 | pub extern fn ZigClangFunctionDecl_getStorageClass(self: *const ZigClangFunctionDecl) ZigClangStorageClass; |
| 761 | pub extern fn ZigClangFunctionDecl_getParamDecl(self: *const ZigClangFunctionDecl, i: c_uint) *const struct_ZigClangParmVarDecl; |
| 762 | pub extern fn ZigClangFunctionDecl_getBody(self: *const ZigClangFunctionDecl) *const struct_ZigClangStmt; |
| 763 | |
| 764 | pub extern fn ZigClangBuiltinType_getKind(self: *const struct_ZigClangBuiltinType) ZigClangBuiltinTypeKind; |
| 765 | |
| 766 | pub extern fn ZigClangFunctionType_getNoReturnAttr(self: *const ZigClangFunctionType) bool; |
| 767 | pub extern fn ZigClangFunctionType_getCallConv(self: *const ZigClangFunctionType) ZigClangCallingConv; |
| 768 | pub extern fn ZigClangFunctionType_getReturnType(self: *const ZigClangFunctionType) ZigClangQualType; |
| 769 | |
| 770 | pub extern fn ZigClangFunctionProtoType_isVariadic(self: *const struct_ZigClangFunctionProtoType) bool; |
| 771 | pub extern fn ZigClangFunctionProtoType_getNumParams(self: *const struct_ZigClangFunctionProtoType) c_uint; |
| 772 | pub extern fn ZigClangFunctionProtoType_getParamType(self: *const struct_ZigClangFunctionProtoType, i: c_uint) ZigClangQualType; |
| 773 | |
| 774 | pub const ZigClangSourceLocation = struct_ZigClangSourceLocation; |
| 775 | pub const ZigClangQualType = struct_ZigClangQualType; |
| 776 | pub const ZigClangAPValueLValueBase = struct_ZigClangAPValueLValueBase; |
| 777 | pub const ZigClangAPValue = struct_ZigClangAPValue; |
| 778 | pub const ZigClangAPSInt = struct_ZigClangAPSInt; |
| 779 | pub const ZigClangAPFloat = struct_ZigClangAPFloat; |
| 780 | pub const ZigClangASTContext = struct_ZigClangASTContext; |
| 781 | pub const ZigClangASTUnit = struct_ZigClangASTUnit; |
| 782 | pub const ZigClangArraySubscriptExpr = struct_ZigClangArraySubscriptExpr; |
| 783 | pub const ZigClangArrayType = struct_ZigClangArrayType; |
| 784 | pub const ZigClangAttributedType = struct_ZigClangAttributedType; |
| 785 | pub const ZigClangBinaryOperator = struct_ZigClangBinaryOperator; |
| 786 | pub const ZigClangBreakStmt = struct_ZigClangBreakStmt; |
| 787 | pub const ZigClangBuiltinType = struct_ZigClangBuiltinType; |
| 788 | pub const ZigClangCStyleCastExpr = struct_ZigClangCStyleCastExpr; |
| 789 | pub const ZigClangCallExpr = struct_ZigClangCallExpr; |
| 790 | pub const ZigClangCaseStmt = struct_ZigClangCaseStmt; |
| 791 | pub const ZigClangCompoundAssignOperator = struct_ZigClangCompoundAssignOperator; |
| 792 | pub const ZigClangCompoundStmt = struct_ZigClangCompoundStmt; |
| 793 | pub const ZigClangConditionalOperator = struct_ZigClangConditionalOperator; |
| 794 | pub const ZigClangConstantArrayType = struct_ZigClangConstantArrayType; |
| 795 | pub const ZigClangContinueStmt = struct_ZigClangContinueStmt; |
| 796 | pub const ZigClangDecayedType = struct_ZigClangDecayedType; |
| 797 | pub const ZigClangDecl = struct_ZigClangDecl; |
| 798 | pub const ZigClangDeclRefExpr = struct_ZigClangDeclRefExpr; |
| 799 | pub const ZigClangDeclStmt = struct_ZigClangDeclStmt; |
| 800 | pub const ZigClangDefaultStmt = struct_ZigClangDefaultStmt; |
| 801 | pub const ZigClangDiagnosticOptions = struct_ZigClangDiagnosticOptions; |
| 802 | pub const ZigClangDiagnosticsEngine = struct_ZigClangDiagnosticsEngine; |
| 803 | pub const ZigClangDoStmt = struct_ZigClangDoStmt; |
| 804 | pub const ZigClangElaboratedType = struct_ZigClangElaboratedType; |
| 805 | pub const ZigClangEnumConstantDecl = struct_ZigClangEnumConstantDecl; |
| 806 | pub const ZigClangEnumDecl = struct_ZigClangEnumDecl; |
| 807 | pub const ZigClangEnumType = struct_ZigClangEnumType; |
| 808 | pub const ZigClangExpr = struct_ZigClangExpr; |
| 809 | pub const ZigClangFieldDecl = struct_ZigClangFieldDecl; |
| 810 | pub const ZigClangFileID = struct_ZigClangFileID; |
| 811 | pub const ZigClangForStmt = struct_ZigClangForStmt; |
| 812 | pub const ZigClangFullSourceLoc = struct_ZigClangFullSourceLoc; |
| 813 | pub const ZigClangFunctionDecl = struct_ZigClangFunctionDecl; |
| 814 | pub const ZigClangFunctionProtoType = struct_ZigClangFunctionProtoType; |
| 815 | pub const ZigClangIfStmt = struct_ZigClangIfStmt; |
| 816 | pub const ZigClangImplicitCastExpr = struct_ZigClangImplicitCastExpr; |
| 817 | pub const ZigClangIncompleteArrayType = struct_ZigClangIncompleteArrayType; |
| 818 | pub const ZigClangIntegerLiteral = struct_ZigClangIntegerLiteral; |
| 819 | pub const ZigClangMacroDefinitionRecord = struct_ZigClangMacroDefinitionRecord; |
| 820 | pub const ZigClangMemberExpr = struct_ZigClangMemberExpr; |
| 821 | pub const ZigClangNamedDecl = struct_ZigClangNamedDecl; |
| 822 | pub const ZigClangNone = struct_ZigClangNone; |
| 823 | pub const ZigClangPCHContainerOperations = struct_ZigClangPCHContainerOperations; |
| 824 | pub const ZigClangParenExpr = struct_ZigClangParenExpr; |
| 825 | pub const ZigClangParenType = struct_ZigClangParenType; |
| 826 | pub const ZigClangParmVarDecl = struct_ZigClangParmVarDecl; |
| 827 | pub const ZigClangPointerType = struct_ZigClangPointerType; |
| 828 | pub const ZigClangPreprocessedEntity = struct_ZigClangPreprocessedEntity; |
| 829 | pub const ZigClangRecordDecl = struct_ZigClangRecordDecl; |
| 830 | pub const ZigClangRecordType = struct_ZigClangRecordType; |
| 831 | pub const ZigClangReturnStmt = struct_ZigClangReturnStmt; |
| 832 | pub const ZigClangSkipFunctionBodiesScope = struct_ZigClangSkipFunctionBodiesScope; |
| 833 | pub const ZigClangSourceManager = struct_ZigClangSourceManager; |
| 834 | pub const ZigClangSourceRange = struct_ZigClangSourceRange; |
| 835 | pub const ZigClangStmt = struct_ZigClangStmt; |
| 836 | pub const ZigClangStringLiteral = struct_ZigClangStringLiteral; |
| 837 | pub const ZigClangStringRef = struct_ZigClangStringRef; |
| 838 | pub const ZigClangSwitchStmt = struct_ZigClangSwitchStmt; |
| 839 | pub const ZigClangTagDecl = struct_ZigClangTagDecl; |
| 840 | pub const ZigClangType = struct_ZigClangType; |
| 841 | pub const ZigClangTypedefNameDecl = struct_ZigClangTypedefNameDecl; |
| 842 | pub const ZigClangTypedefType = struct_ZigClangTypedefType; |
| 843 | pub const ZigClangUnaryExprOrTypeTraitExpr = struct_ZigClangUnaryExprOrTypeTraitExpr; |
| 844 | pub const ZigClangUnaryOperator = struct_ZigClangUnaryOperator; |
| 845 | pub const ZigClangValueDecl = struct_ZigClangValueDecl; |
| 846 | pub const ZigClangVarDecl = struct_ZigClangVarDecl; |
| 847 | pub const ZigClangWhileStmt = struct_ZigClangWhileStmt; |
| 848 | pub const ZigClangFunctionType = struct_ZigClangFunctionType; |
| 849 | pub const ZigClangPredefinedExpr = struct_ZigClangPredefinedExpr; |
| 850 | |
| 851 | pub const struct_ZigClangSourceLocation = extern struct { |
| 852 | ID: c_uint, |
| 853 | }; |
| 854 | |
| 855 | pub const Stage2ErrorMsg = extern struct { |
| 856 | filename_ptr: ?[*]const u8, |
| 857 | filename_len: usize, |
| 858 | msg_ptr: [*]const u8, |
| 859 | msg_len: usize, |
| 860 | // valid until the ASTUnit is freed |
| 861 | source: ?[*]const u8, |
| 862 | // 0 based |
| 863 | line: c_uint, |
| 864 | // 0 based |
| 865 | column: c_uint, |
| 866 | // byte offset into source |
| 867 | offset: c_uint, |
| 868 | }; |
| 869 | |
| 870 | pub const struct_ZigClangQualType = extern struct { |
| 871 | ptr: ?*c_void, |
| 872 | }; |
| 873 | |
| 874 | pub const struct_ZigClangAPValueLValueBase = extern struct { |
| 875 | Ptr: ?*c_void, |
| 876 | CallIndex: c_uint, |
| 877 | Version: c_uint, |
| 878 | }; |
| 879 | |
| 880 | pub extern fn ZigClangErrorMsg_delete(ptr: [*c]Stage2ErrorMsg, len: usize) void; |
| 881 | |
| 882 | pub extern fn ZigClangLoadFromCommandLine( |
| 883 | args_begin: [*]?[*]const u8, |
| 884 | args_end: [*]?[*]const u8, |
| 885 | errors_ptr: *[*]Stage2ErrorMsg, |
| 886 | errors_len: *usize, |
| 887 | resources_path: [*c]const u8, |
| 888 | ) ?*ZigClangASTUnit; |
| 889 | |
| 890 | pub extern fn ZigClangDecl_getKind(decl: *const ZigClangDecl) ZigClangDeclKind; |
| 891 | pub extern fn ZigClangDecl_getDeclKindName(decl: *const struct_ZigClangDecl) [*]const u8; |
| 892 | |
| 863 | 893 | pub const ZigClangCompoundStmt_const_body_iterator = [*c]const *struct_ZigClangStmt; |
| 864 | 894 | |
| 865 | 895 | pub extern fn ZigClangCompoundStmt_body_begin(self: *const ZigClangCompoundStmt) ZigClangCompoundStmt_const_body_iterator; |