From 0611009acfcfc69f513ec6a17517ad2ab2f4abf9 Mon Sep 17 00:00:00 2001 From: Anton Sviridov Date: Wed, 31 Jan 2024 22:19:48 +0000 Subject: [PATCH] Use macos arm runner, update base interface to 0.0.24, LLVM 17(!) fixes (#270) * Try out M1 runners * Update base version to 0.0.24 * Base LLVM 17 for discovery, use local bindgen for libclang generation * Regenerate libclang bindings and adjust imports * Handle anonymous types correctly according to LLVM 17 * Handle structs with unnamed fields by excluding them entirely * Don't check formatting of generated sources --- .github/workflows/ci.yml | 84 +- .scalafmt.conf | 3 + build.sbt | 15 +- modules/bindgen/src/main/scala/DefTag.scala | 12 +- .../scala/analysis/BindingGenerator.scala | 3 +- .../main/scala/analysis/ClangDiagnostic.scala | 3 +- .../scala/analysis/ClangTranslationUnit.scala | 5 +- .../main/scala/analysis/ClangVisitor.scala | 14 +- .../scala/analysis/SystemHeaderDetector.scala | 5 - .../scala/analysis/addBuiltinAliases.scala | 6 - .../main/scala/analysis/constructType.scala | 9 +- .../main/scala/analysis/extractMetadata.scala | 5 +- .../src/main/scala/analysis/visitEnum.scala | 8 +- .../main/scala/analysis/visitFunction.scala | 7 +- .../src/main/scala/analysis/visitStruct.scala | 6 +- modules/bindgen/src/main/scala/main.scala | 2 - .../src/main/scala/render/struct.scala | 62 +- .../scala-native/generated/libclang.c | 62 + .../scala/generated/libclang/aliases.scala | 75 +- .../main/scala/generated/libclang/all.scala | 454 - .../generated/libclang/enumerations.scala | 337 +- .../scala/generated/libclang/functions.scala | 7405 +++++++++-------- .../scala/generated/libclang/structs.scala | 250 +- .../src/main/scala/libclang/fluent.scala | 6 - project/plugins.sbt | 2 +- 25 files changed, 4509 insertions(+), 4331 deletions(-) delete mode 100644 modules/libclang/src/main/scala/generated/libclang/all.scala diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6451bf5c..5e3106a0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,16 +10,16 @@ env: JAVA_OPTS: "-Xmx4G" JVM_OPTS: "-Xmx4G" SBT_OPTS: "-Xmx4G" - LLVM_VERSION: 14 + LLVM_VERSION: 17 jobs: macos_build: - name: MacOS + name: MacOS (${{ matrix.OS }}) strategy: fail-fast: true - runs-on: macos-12 - env: - LLVM_VERSION: 14 + matrix: + OS: ["macos-12", "macos-14"] + runs-on: ${{ matrix.OS }} steps: - uses: actions/checkout@v3 with: @@ -31,6 +31,11 @@ jobs: java-version: '17' cache: 'sbt' + - name: Install SBT + run: | + curl -Lo sbt https://raw.githubusercontent.com/sbt/sbt/1.9.x/sbt && \ + chmod +x sbt + - name: Install LLVM run: brew install llvm@$LLVM_VERSION @@ -41,61 +46,23 @@ jobs: - name: Sets env vars for LLVM run: | - echo "LLVM_BIN=/usr/local/opt/llvm@$LLVM_VERSION/bin" >> $GITHUB_ENV + if [ $(arch) == "arm64" ]; then + echo "LLVM_BIN=/opt/homebrew/opt/llvm@$LLVM_VERSION/bin" >> $GITHUB_ENV + else + echo "LLVM_BIN=/usr/local/opt/llvm@$LLVM_VERSION/bin" >> $GITHUB_ENV + fi + - name: CI and build the binary - run: sbt ci buildPlatformBinary + run: ./sbt ci buildPlatformBinary - name: Upload artifacts uses: actions/upload-artifact@v4 with: path: bin/sn-bindgen-* - name: macos-intel-binaries + name: ${{ matrix.os }}-binaries if-no-files-found: error - macos_arm_build: - name: MacOS (Arm64) - strategy: - fail-fast: true - runs-on: macos-aarch64 - if: startsWith(github.ref, 'refs/tags/v') - continue-on-error: true - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - - uses: actions/setup-java@v3 - with: - distribution: 'temurin' - java-version: '17' - cache: 'sbt' - - - name: Install LLVM - run: brew install llvm@$LLVM_VERSION - - - name: Install SBT - run: brew install sbt - - - name: Sets env vars for release - if: startsWith(github.ref, 'refs/tags/v') || (github.ref == 'refs/heads/main') - run: | - echo "SCALANATIVE_MODE=release-fast" >> $GITHUB_ENV - - - name: Sets env vars for LLVM - run: | - echo "LLVM_BIN=/opt/homebrew/opt/llvm@$LLVM_VERSION/bin" >> $GITHUB_ENV - - - name: CI and build the binary - run: sbt ci buildPlatformBinary - - - name: Upload artifacts - uses: actions/upload-artifact@v4 - with: - path: bin/sn-bindgen-* - name: macos-arm-binaries - if-no-files-found: error - linux_build: name: Linux runs-on: ubuntu-20.04 @@ -166,7 +133,7 @@ jobs: runs-on: windows-2019 env: LLVM_BIN: 'C:\Program Files\LLVM\bin' - LLVM_VERSION: "14.0.6" + LLVM_VERSION: "17.0.6" steps: # This step is important to make sure scalafmt # checks don't fail @@ -232,13 +199,12 @@ jobs: release: if: ${{ always() }} - needs: [linux_build, linux_arm64_build, windows_build, macos_build, macos_arm_build] + needs: [linux_build, linux_arm64_build, windows_build, macos_build] name: Release runs-on: ubuntu-20.04 env: BINARIES: binaries/ - LLVM_BIN: /usr/lib/llvm-14/bin - LLVM_VERSION: 14 + LLVM_BIN: /usr/lib/llvm-17/bin steps: - uses: actions/checkout@v3 with: @@ -270,14 +236,11 @@ jobs: ./cs resolve com.indoorvivants:bindgen-interface_3:$(cat version) ./cs resolve com.indoorvivants:bindgen-interface_2.12:$(cat version) ./cs fetch com.indoorvivants:bindgen_native0.4_3:$(cat version) --classifier osx-x86_64 --artifact-type jar - # ./cs fetch com.indoorvivants:bindgen_native0.4_3:$(cat version) --classifier osx-aarch64 --artifact-type jar + ./cs fetch com.indoorvivants:bindgen_native0.4_3:$(cat version) --classifier osx-aarch64 --artifact-type jar ./cs fetch com.indoorvivants:bindgen_native0.4_3:$(cat version) --classifier linux-x86_64 --artifact-type jar ./cs fetch com.indoorvivants:bindgen_native0.4_3:$(cat version) --classifier linux-aarch64 --artifact-type jar ./cs fetch com.indoorvivants:bindgen_native0.4_3:$(cat version) --classifier windows-x86_64 --artifact-type jar - - name: Setup Unix-like - run: ./build/setup_unix.sh - - name: Publish if: startsWith(github.ref, 'refs/tags/v') || (github.ref == 'refs/heads/main') run: | @@ -288,6 +251,9 @@ jobs: SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} + - name: Setup Unix-like + run: ./build/setup_unix.sh + - name: Build site run: sbt buildWebsite diff --git a/.scalafmt.conf b/.scalafmt.conf index c4743881..60219d17 100644 --- a/.scalafmt.conf +++ b/.scalafmt.conf @@ -27,3 +27,6 @@ fileOverride { runner.dialect = scala212source3 } } + +project.excludePaths = ["glob:**/modules/libclang/src/main/scala/generated/**/*.scala"] + diff --git a/build.sbt b/build.sbt index 8806ffbf..ff08084c 100644 --- a/build.sbt +++ b/build.sbt @@ -247,6 +247,7 @@ lazy val libclang = project scalaDir = ((Compile / sourceDirectory).value / "scala" / "generated"), cDir = (Compile / resourceDirectory).value / "scala-native" / "generated" ), + bindgenBinary := (LocalProject("bindgen") / Compile / nativeLink).value, bindgenBindings := { val detected = llvmFolder(nativeConfig.value.clang.toAbsolutePath()).llvmInclude @@ -255,12 +256,10 @@ lazy val libclang = project case head :: tl => val include = new File(head) Seq( - Binding - .builder(include / "clang-c" / "Index.h", "libclang") + Binding(include / "clang-c" / "Index.h", "libclang") .withClangFlags(List(s"-I$head")) .addCImport("clang-c/Index.h") .withMultiFile(true) - .build ) case immutable.Nil => sLog.value.error( @@ -637,18 +636,18 @@ def collectBindings(headersPath: File) = { val multiFileFlag = "--multi-file" val isMultiFile = contents.contains(multiFileFlag) - Binding - .builder(header, pkg.getOrElse(s"lib_test_$name")) + Binding(header, pkg.getOrElse(s"lib_test_$name")) .addCImport(s"$name.h") .withBindgenArguments(contents.filterNot(_ == multiFileFlag)) .withMultiFile(isMultiFile) - .build } } def llvmFolder(clangPath: java.nio.file.Path): LLVMInfo = { import Platform.OS.* + val LLVM_MAJOR_VERSION = "17" + Platform.os match { case MacOS => val detected = @@ -662,9 +661,9 @@ def llvmFolder(clangPath: java.nio.file.Path): LLVMInfo = { val speculative = if (detected.isEmpty) List( - Paths.get("/usr/local/opt/llvm@14"), + Paths.get(s"/usr/local/opt/llvm@$LLVM_MAJOR_VERSION"), Paths.get("/usr/local/opt/llvm"), - Paths.get("/opt/homebrew/opt/llvm@14"), + Paths.get(s"/opt/homebrew/opt/llvm@$LLVM_MAJOR_VERSION"), Paths.get("/opt/homebrew/opt/llvm") ) else Nil diff --git a/modules/bindgen/src/main/scala/DefTag.scala b/modules/bindgen/src/main/scala/DefTag.scala index d2d657c4..9fdb8d73 100644 --- a/modules/bindgen/src/main/scala/DefTag.scala +++ b/modules/bindgen/src/main/scala/DefTag.scala @@ -1,16 +1,8 @@ package bindgen -import bindgen.CType.Parameter -import scala.collection.mutable -import scala.collection.mutable.ListBuffer -import scala.scalanative.unsafe.Tag -import scala.scalanative.unsigned.ULong -import Def.* -import CType.* +enum DefTag: + case Union, Alias, Struct, Function, Enum object DefTag: import DefTag.* def all = Set(Union, Alias, Struct, Function, Enum) - -enum DefTag: - case Union, Alias, Struct, Function, Enum diff --git a/modules/bindgen/src/main/scala/analysis/BindingGenerator.scala b/modules/bindgen/src/main/scala/analysis/BindingGenerator.scala index a57726b1..a6f25756 100644 --- a/modules/bindgen/src/main/scala/analysis/BindingGenerator.scala +++ b/modules/bindgen/src/main/scala/analysis/BindingGenerator.scala @@ -1,7 +1,6 @@ package bindgen -import libclang.all.* -import libclang.fluent.* +import libclang.*, fluent.* import scalanative.unsafe.* import scala.util.boundary, boundary.break, boundary.Label diff --git a/modules/bindgen/src/main/scala/analysis/ClangDiagnostic.scala b/modules/bindgen/src/main/scala/analysis/ClangDiagnostic.scala index 9578cf70..b6a29df9 100644 --- a/modules/bindgen/src/main/scala/analysis/ClangDiagnostic.scala +++ b/modules/bindgen/src/main/scala/analysis/ClangDiagnostic.scala @@ -1,7 +1,6 @@ package bindgen -import libclang.all.* -import libclang.fluent.* +import libclang.*, fluent.* import scalanative.unsafe.* import scalanative.unsigned.* diff --git a/modules/bindgen/src/main/scala/analysis/ClangTranslationUnit.scala b/modules/bindgen/src/main/scala/analysis/ClangTranslationUnit.scala index 2a6d46e0..da3e05bf 100644 --- a/modules/bindgen/src/main/scala/analysis/ClangTranslationUnit.scala +++ b/modules/bindgen/src/main/scala/analysis/ClangTranslationUnit.scala @@ -1,7 +1,6 @@ package bindgen -import libclang.all.* -import libclang.fluent.* +import libclang.*, fluent.* import scalanative.unsafe.* import scalanative.unsigned.* import scala.util.boundary, boundary.break, boundary.Label @@ -43,7 +42,7 @@ object ClangTranslationUnit: allClangFlags.size, null, 0.toUInt, - CXTranslationUnit_Flags.CXTranslationUnit_None + CXTranslationUnit_Flags.CXTranslationUnit_None.uint ) boundary: diff --git a/modules/bindgen/src/main/scala/analysis/ClangVisitor.scala b/modules/bindgen/src/main/scala/analysis/ClangVisitor.scala index 59a9ce59..57360152 100644 --- a/modules/bindgen/src/main/scala/analysis/ClangVisitor.scala +++ b/modules/bindgen/src/main/scala/analysis/ClangVisitor.scala @@ -1,12 +1,7 @@ package bindgen -import _root_.libclang.structs.* -import _root_.libclang.enumerations.* -import _root_.libclang.aliases.* -import _root_.libclang.functions.* -import _root_.libclang.fluent.* - import scalanative.unsafe.* +import libclang.*, fluent.* object ClangVisitor: val visitor = @@ -103,7 +98,8 @@ object ClangVisitor: if cursor.kind == CXCursorKind.CXCursor_UnionDecl then val name = clang_getCursorSpelling(cursor).string - if name != "" then + val isAnonymous = clang_Cursor_isAnonymous(cursor).toInt != 0 + if name != "" && !isAnonymous then val en = visitStruct(cursor, name) val union = Def.Union( fields = en.fields.map { case (n, f) => @@ -119,7 +115,9 @@ object ClangVisitor: if cursor.kind == CXCursorKind.CXCursor_StructDecl then val name = cursor.spelling - if name != "" then + val isAnonymous = clang_Cursor_isAnonymous(cursor).toInt != 0 + trace(s"Cursor: [${cursor.spelling}], ${isAnonymous}") + if name != "" && !isAnonymous then val en = visitStruct(cursor, name) binding.add(en, location) end if diff --git a/modules/bindgen/src/main/scala/analysis/SystemHeaderDetector.scala b/modules/bindgen/src/main/scala/analysis/SystemHeaderDetector.scala index 11b026cc..be24a78b 100644 --- a/modules/bindgen/src/main/scala/analysis/SystemHeaderDetector.scala +++ b/modules/bindgen/src/main/scala/analysis/SystemHeaderDetector.scala @@ -1,10 +1,5 @@ package bindgen -import _root_.libclang.structs.* -import _root_.libclang.enumerations.* -import _root_.libclang.aliases.* -import _root_.libclang.functions.* -import _root_.libclang.fluent.* import java.io.FileWriter import java.nio.file.Files import scala.collection.mutable diff --git a/modules/bindgen/src/main/scala/analysis/addBuiltinAliases.scala b/modules/bindgen/src/main/scala/analysis/addBuiltinAliases.scala index c0a2e014..9db6a455 100644 --- a/modules/bindgen/src/main/scala/analysis/addBuiltinAliases.scala +++ b/modules/bindgen/src/main/scala/analysis/addBuiltinAliases.scala @@ -1,11 +1,5 @@ package bindgen -import _root_.libclang.structs.* -import _root_.libclang.enumerations.* -import _root_.libclang.aliases.* -import _root_.libclang.functions.* -import _root_.libclang.fluent.* - import java.io.FileWriter import java.nio.file.Files import scala.collection.mutable diff --git a/modules/bindgen/src/main/scala/analysis/constructType.scala b/modules/bindgen/src/main/scala/analysis/constructType.scala index 5da7471a..81444141 100644 --- a/modules/bindgen/src/main/scala/analysis/constructType.scala +++ b/modules/bindgen/src/main/scala/analysis/constructType.scala @@ -1,16 +1,12 @@ package bindgen -import libclang.functions.* -import libclang.enumerations.* -import libclang.fluent.* - import scala.collection.mutable import scala.scalanative.unsafe.* import scala.scalanative.unsigned.* import scala.util.control.NoStackTrace import scalanative.libc.* -import libclang.structs.CXType +import libclang.*, fluent.* def constructType(typ: CXType)(using Zone, @@ -35,9 +31,10 @@ def constructType(typ: CXType)(using case CXType_Record => val decl = clang_getTypeDeclaration(typ) val name = clang_getCursorSpelling(decl).string + val isAnonymous = clang_Cursor_isAnonymous(decl).toInt != 0 CType.Reference( - if name.isEmpty then Name.Unnamed + if name.isEmpty || isAnonymous then Name.Unnamed else Name.Model(name, extractMetadata(decl)) ) diff --git a/modules/bindgen/src/main/scala/analysis/extractMetadata.scala b/modules/bindgen/src/main/scala/analysis/extractMetadata.scala index 808c8b3b..3d553617 100644 --- a/modules/bindgen/src/main/scala/analysis/extractMetadata.scala +++ b/modules/bindgen/src/main/scala/analysis/extractMetadata.scala @@ -1,10 +1,7 @@ package bindgen -import libclang.structs.CXCursor +import libclang.*, fluent.* import scala.scalanative.unsafe.* -import libclang.functions.* -import libclang.fluent.* -import libclang.aliases.CXFile def extractMetadata(cursor: CXCursor)(using Zone) = val file = stackalloc[CXFile]() diff --git a/modules/bindgen/src/main/scala/analysis/visitEnum.scala b/modules/bindgen/src/main/scala/analysis/visitEnum.scala index cee50361..04b147e1 100644 --- a/modules/bindgen/src/main/scala/analysis/visitEnum.scala +++ b/modules/bindgen/src/main/scala/analysis/visitEnum.scala @@ -1,17 +1,11 @@ package bindgen -import _root_.libclang.structs.* -import _root_.libclang.enumerations.* -import _root_.libclang.aliases.* -import _root_.libclang.functions.* -import _root_.libclang.fluent.* - import scala.scalanative.unsafe.* import scala.scalanative.unsigned.* import scalanative.libc.* import scala.collection.mutable -import libclang.* +import libclang.*, fluent.* def visitEnum(rootCursor: CXCursor, isTypeDef: Boolean)(using Zone, diff --git a/modules/bindgen/src/main/scala/analysis/visitFunction.scala b/modules/bindgen/src/main/scala/analysis/visitFunction.scala index 0ff4b015..e4e90d5f 100644 --- a/modules/bindgen/src/main/scala/analysis/visitFunction.scala +++ b/modules/bindgen/src/main/scala/analysis/visitFunction.scala @@ -1,14 +1,9 @@ package bindgen -import _root_.libclang.structs.* -import _root_.libclang.enumerations.* -import _root_.libclang.aliases.* -import _root_.libclang.functions.* - +import libclang.*, fluent.* import scala.collection.mutable.ListBuffer import scala.scalanative.unsafe.* import scala.scalanative.unsigned.* -import libclang.fluent.* import scalanative.libc.* diff --git a/modules/bindgen/src/main/scala/analysis/visitStruct.scala b/modules/bindgen/src/main/scala/analysis/visitStruct.scala index 0e732f3a..c40cafcd 100644 --- a/modules/bindgen/src/main/scala/analysis/visitStruct.scala +++ b/modules/bindgen/src/main/scala/analysis/visitStruct.scala @@ -1,10 +1,6 @@ package bindgen -import _root_.libclang.structs.* -import _root_.libclang.enumerations.* -import _root_.libclang.aliases.* -import _root_.libclang.functions.* -import _root_.libclang.fluent.* +import libclang.*, fluent.* import scala.collection.mutable.ListBuffer import scala.scalanative.unsafe.* diff --git a/modules/bindgen/src/main/scala/main.scala b/modules/bindgen/src/main/scala/main.scala index 9dbf06e1..397eb071 100644 --- a/modules/bindgen/src/main/scala/main.scala +++ b/modules/bindgen/src/main/scala/main.scala @@ -12,8 +12,6 @@ import scalanative.libc.* import scala.util.Using.apply import scala.util.Using -import libclang.all.* - inline def zone[A](inline f: Zone ?=> A) = Zone.apply(z => f(using z)) object Generate: diff --git a/modules/bindgen/src/main/scala/render/struct.scala b/modules/bindgen/src/main/scala/render/struct.scala index 1f606971..31e35673 100644 --- a/modules/bindgen/src/main/scala/render/struct.scala +++ b/modules/bindgen/src/main/scala/render/struct.scala @@ -94,8 +94,17 @@ def struct(struct: Def.Struct, line: Appender)(using s"def apply()(using Zone): Ptr[$structName] = scala.scalanative.unsafe.alloc[$structName](1)" ) + // Fields with no names aren't accessible via constructors + // or getters/setters + val namedFieldsWithIndex = + struct.fields.zipWithIndex.filter(_._1._1.value.nonEmpty) + val namedFieldsWithOffsets = + struct.fields.zip(fieldOffsets).filter(_._1._1.value.nonEmpty) + val namedFields = namedFieldsWithIndex.map(_._1) + val applyArgList = List.newBuilder[String] - struct.fields.zipWithIndex.map { case ((name, typ), idx) => + + namedFieldsWithIndex.map { case ((name, typ), idx) => val inputType = rewriteRules.get(idx).map(_.newRichType).getOrElse(typ) applyArgList.addOne(s"${getter(name.value)} : ${scalaType(inputType)}") } @@ -109,7 +118,7 @@ def struct(struct: Def.Struct, line: Appender)(using ) nest { line(s"val ____ptr = apply()") - struct.fields.foreach { case (fieldName, _) => + namedFields.foreach { case (fieldName, _) => line( s"(!____ptr).${getter(fieldName.value)} = ${getter(fieldName.value)}" ) @@ -125,33 +134,32 @@ def struct(struct: Def.Struct, line: Appender)(using line(s"extension (struct: $structName)") nest { if !structIsOpaque then - struct.fields.zipWithIndex.foreach { - case ((fieldName, fieldType), idx) => - val setterName = setter(fieldName.value) - val getterName = getter(fieldName.value) - - rewriteRules.get(idx) match - case Some(rewrite) => - val typ = scalaType(rewrite.newRichType) - line( - s"def $getterName : $typ = struct._${idx + 1}.asInstanceOf[$typ]" - ) - line( - s"def $setterName(value: $typ): Unit = !struct.at${idx + 1} = value.asInstanceOf[${scalaType(rewrite.newRawType)}]" - ) - - case None => - val typ = scalaType(fieldType) - line( - s"def $getterName : $typ = struct._${idx + 1}" - ) - line( - s"def $setterName(value: $typ): Unit = !struct.at${idx + 1} = value" - ) - end match + namedFieldsWithIndex.foreach { case ((fieldName, fieldType), idx) => + val setterName = setter(fieldName.value) + val getterName = getter(fieldName.value) + + rewriteRules.get(idx) match + case Some(rewrite) => + val typ = scalaType(rewrite.newRichType) + line( + s"def $getterName : $typ = struct._${idx + 1}.asInstanceOf[$typ]" + ) + line( + s"def $setterName(value: $typ): Unit = !struct.at${idx + 1} = value.asInstanceOf[${scalaType(rewrite.newRawType)}]" + ) + + case None => + val typ = scalaType(fieldType) + line( + s"def $getterName : $typ = struct._${idx + 1}" + ) + line( + s"def $setterName(value: $typ): Unit = !struct.at${idx + 1} = value" + ) + end match } else - struct.fields.zip(fieldOffsets).foreach { + namedFieldsWithOffsets.foreach { case ((fieldName, fieldType), fieldOffset) => val typ = scalaType(fieldType) val setterName = setter(fieldName.value) diff --git a/modules/libclang/src/main/resources/scala-native/generated/libclang.c b/modules/libclang/src/main/resources/scala-native/generated/libclang.c index e41bbd2f..8c524727 100644 --- a/modules/libclang/src/main/resources/scala-native/generated/libclang.c +++ b/modules/libclang/src/main/resources/scala-native/generated/libclang.c @@ -41,11 +41,31 @@ unsigned int __sn_wrap_libclang_clang_CXXMethod_isConst(CXCursor *C) { }; +unsigned int __sn_wrap_libclang_clang_CXXMethod_isCopyAssignmentOperator(CXCursor *C) { + return clang_CXXMethod_isCopyAssignmentOperator(*C); +}; + + unsigned int __sn_wrap_libclang_clang_CXXMethod_isDefaulted(CXCursor *C) { return clang_CXXMethod_isDefaulted(*C); }; +unsigned int __sn_wrap_libclang_clang_CXXMethod_isDeleted(CXCursor *C) { + return clang_CXXMethod_isDeleted(*C); +}; + + +unsigned int __sn_wrap_libclang_clang_CXXMethod_isExplicit(CXCursor *C) { + return clang_CXXMethod_isExplicit(*C); +}; + + +unsigned int __sn_wrap_libclang_clang_CXXMethod_isMoveAssignmentOperator(CXCursor *C) { + return clang_CXXMethod_isMoveAssignmentOperator(*C); +}; + + unsigned int __sn_wrap_libclang_clang_CXXMethod_isPureVirtual(CXCursor *C) { return clang_CXXMethod_isPureVirtual(*C); }; @@ -518,6 +538,11 @@ CXResult __sn_wrap_libclang_clang_findReferencesInFile(CXCursor *cursor, CXFile }; +CXResult __sn_wrap_libclang_clang_findReferencesInFileWithBlock(CXCursor *_0, CXFile _1, CXCursorAndRangeVisitorBlock _2) { + return clang_findReferencesInFileWithBlock(*_0, _1, _2); +}; + + void __sn_wrap_libclang_clang_formatDiagnostic(CXDiagnostic Diagnostic, unsigned int Options, CXString *____return) { CXString ____ret = clang_formatDiagnostic(Diagnostic, Options); memcpy(____return, &____ret, sizeof(CXString)); @@ -546,6 +571,12 @@ long long __sn_wrap_libclang_clang_getArraySize(CXType *T) { }; +void __sn_wrap_libclang_clang_getBinaryOperatorKindSpelling(enum CXBinaryOperatorKind kind, CXString *____return) { + CXString ____ret = clang_getBinaryOperatorKindSpelling(kind); + memcpy(____return, &____ret, sizeof(CXString)); +} + + const char * __sn_wrap_libclang_clang_getCString(CXString *string) { return clang_getCString(*string); }; @@ -621,6 +652,11 @@ enum CXAvailabilityKind __sn_wrap_libclang_clang_getCursorAvailability(CXCursor }; +enum CXBinaryOperatorKind __sn_wrap_libclang_clang_getCursorBinaryOperatorKind(CXCursor *cursor) { + return clang_getCursorBinaryOperatorKind(*cursor); +}; + + CXCompletionString __sn_wrap_libclang_clang_getCursorCompletionString(CXCursor *cursor) { return clang_getCursorCompletionString(*cursor); }; @@ -745,6 +781,11 @@ void __sn_wrap_libclang_clang_getCursorUSR(CXCursor *_0, CXString *____return) { } +enum CXUnaryOperatorKind __sn_wrap_libclang_clang_getCursorUnaryOperatorKind(CXCursor *cursor) { + return clang_getCursorUnaryOperatorKind(*cursor); +}; + + enum CXVisibilityKind __sn_wrap_libclang_clang_getCursorVisibility(CXCursor *cursor) { return clang_getCursorVisibility(*cursor); }; @@ -884,6 +925,12 @@ void __sn_wrap_libclang_clang_getLocationForOffset(CXTranslationUnit tu, CXFile } +void __sn_wrap_libclang_clang_getNonReferenceType(CXType *CT, CXType *____return) { + CXType ____ret = clang_getNonReferenceType(*CT); + memcpy(____return, &____ret, sizeof(CXType)); +} + + void __sn_wrap_libclang_clang_getNullCursor(CXCursor *____return) { CXCursor ____ret = clang_getNullCursor(); memcpy(____return, &____ret, sizeof(CXCursor)); @@ -1049,6 +1096,18 @@ void __sn_wrap_libclang_clang_getTypedefName(CXType *CT, CXString *____return) { } +void __sn_wrap_libclang_clang_getUnaryOperatorKindSpelling(enum CXUnaryOperatorKind kind, CXString *____return) { + CXString ____ret = clang_getUnaryOperatorKindSpelling(kind); + memcpy(____return, &____ret, sizeof(CXString)); +} + + +void __sn_wrap_libclang_clang_getUnqualifiedType(CXType *CT, CXType *____return) { + CXType ____ret = clang_getUnqualifiedType(*CT); + memcpy(____return, &____ret, sizeof(CXType)); +} + + unsigned int __sn_wrap_libclang_clang_hashCursor(CXCursor *_0) { return clang_hashCursor(*_0); }; @@ -1115,3 +1174,6 @@ unsigned int __sn_wrap_libclang_clang_visitChildren(CXCursor *parent, CXCursorVi }; +unsigned int __sn_wrap_libclang_clang_visitChildrenWithBlock(CXCursor *parent, CXCursorVisitorBlock block) { + return clang_visitChildrenWithBlock(*parent, block); +}; \ No newline at end of file diff --git a/modules/libclang/src/main/scala/generated/libclang/aliases.scala b/modules/libclang/src/main/scala/generated/libclang/aliases.scala index bcdb188c..8a56738c 100644 --- a/modules/libclang/src/main/scala/generated/libclang/aliases.scala +++ b/modules/libclang/src/main/scala/generated/libclang/aliases.scala @@ -1,19 +1,14 @@ package libclang -package aliases import _root_.scala.scalanative.unsafe.* import _root_.scala.scalanative.unsigned.* import _root_.scala.scalanative.libc.* import _root_.scala.scalanative.* -import _root_.libclang.enumerations.* -import _root_.libclang.aliases.* -import _root_.libclang.structs.* - /** Opaque pointer representing client data that will be passed through to * various callbacks and visitors. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXClientData = Ptr[Byte] object CXClientData: @@ -23,7 +18,7 @@ object CXClientData: /** A semantic string that describes a code-completion result. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXCompletionString = Ptr[Byte] object CXCompletionString: @@ -31,9 +26,17 @@ object CXCompletionString: inline def apply(inline o: Ptr[Byte]): CXCompletionString = o extension (v: CXCompletionString) inline def value: Ptr[Byte] = v +/** [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +type CXCursorAndRangeVisitorBlock = Unit +object CXCursorAndRangeVisitorBlock: + given _tag: Tag[CXCursorAndRangeVisitorBlock] = Tag.Unit + inline def apply(inline o: Unit): CXCursorAndRangeVisitorBlock = o + extension (v: CXCursorAndRangeVisitorBlock) inline def value: Unit = v + /** A fast container representing a set of CXCursors. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXCursorSet = Ptr[CXCursorSetImpl] object CXCursorSet: @@ -43,24 +46,35 @@ object CXCursorSet: /** Visitor invoked for each cursor found by a traversal. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXCursorVisitor = CFuncPtr3[CXCursor, CXCursor, CXClientData, CXChildVisitResult] object CXCursorVisitor: given _tag: Tag[CXCursorVisitor] = Tag .materializeCFuncPtr3[CXCursor, CXCursor, CXClientData, CXChildVisitResult] + inline def fromPtr(ptr: Ptr[Byte]): CXCursorVisitor = CFuncPtr.fromPtr(ptr) inline def apply( inline o: CFuncPtr3[CXCursor, CXCursor, CXClientData, CXChildVisitResult] ): CXCursorVisitor = o extension (v: CXCursorVisitor) inline def value : CFuncPtr3[CXCursor, CXCursor, CXClientData, CXChildVisitResult] = v + inline def toPtr: Ptr[Byte] = CFuncPtr.toPtr(v) +end CXCursorVisitor + +/** [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +type CXCursorVisitorBlock = Unit +object CXCursorVisitorBlock: + given _tag: Tag[CXCursorVisitorBlock] = Tag.Unit + inline def apply(inline o: Unit): CXCursorVisitorBlock = o + extension (v: CXCursorVisitorBlock) inline def value: Unit = v /** A single diagnostic, containing the diagnostic's severity, location, text, * source ranges, and fix-it hints. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/CXDiagnostic.h */ opaque type CXDiagnostic = Ptr[Byte] object CXDiagnostic: @@ -70,7 +84,7 @@ object CXDiagnostic: /** A group of CXDiagnostics. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/CXDiagnostic.h */ opaque type CXDiagnosticSet = Ptr[Byte] object CXDiagnosticSet: @@ -80,7 +94,7 @@ object CXDiagnosticSet: /** Evaluation result of a cursor * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXEvalResult = Ptr[Byte] object CXEvalResult: @@ -90,21 +104,24 @@ object CXEvalResult: /** Visitor invoked for each field found by a traversal. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXFieldVisitor = CFuncPtr2[CXCursor, CXClientData, CXVisitorResult] object CXFieldVisitor: given _tag: Tag[CXFieldVisitor] = Tag.materializeCFuncPtr2[CXCursor, CXClientData, CXVisitorResult] + inline def fromPtr(ptr: Ptr[Byte]): CXFieldVisitor = CFuncPtr.fromPtr(ptr) inline def apply( inline o: CFuncPtr2[CXCursor, CXClientData, CXVisitorResult] ): CXFieldVisitor = o extension (v: CXFieldVisitor) inline def value: CFuncPtr2[CXCursor, CXClientData, CXVisitorResult] = v + inline def toPtr: Ptr[Byte] = CFuncPtr.toPtr(v) +end CXFieldVisitor /** A particular source file that is part of a translation unit. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/CXFile.h */ opaque type CXFile = Ptr[Byte] object CXFile: @@ -115,7 +132,7 @@ object CXFile: /** The client's data object that is associated with an AST file (PCH or * module). * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXIdxClientASTFile = Ptr[Byte] object CXIdxClientASTFile: @@ -126,7 +143,7 @@ object CXIdxClientASTFile: /** The client's data object that is associated with a semantic container of * entities. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXIdxClientContainer = Ptr[Byte] object CXIdxClientContainer: @@ -136,7 +153,7 @@ object CXIdxClientContainer: /** The client's data object that is associated with a semantic entity. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXIdxClientEntity = Ptr[Byte] object CXIdxClientEntity: @@ -146,7 +163,7 @@ object CXIdxClientEntity: /** The client's data object that is associated with a CXFile. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXIdxClientFile = Ptr[Byte] object CXIdxClientFile: @@ -157,7 +174,7 @@ object CXIdxClientFile: /** Visitor invoked for each file in a translation unit (used with * clang_getInclusions()). * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXInclusionVisitor = CFuncPtr4[CXFile, Ptr[CXSourceLocation], CUnsignedInt, CXClientData, Unit] @@ -165,6 +182,7 @@ object CXInclusionVisitor: given _tag: Tag[CXInclusionVisitor] = Tag.materializeCFuncPtr4[CXFile, Ptr[ CXSourceLocation ], CUnsignedInt, CXClientData, Unit] + inline def fromPtr(ptr: Ptr[Byte]): CXInclusionVisitor = CFuncPtr.fromPtr(ptr) inline def apply( inline o: CFuncPtr4[CXFile, Ptr[ CXSourceLocation @@ -174,12 +192,13 @@ object CXInclusionVisitor: inline def value: CFuncPtr4[CXFile, Ptr[ CXSourceLocation ], CUnsignedInt, CXClientData, Unit] = v + inline def toPtr: Ptr[Byte] = CFuncPtr.toPtr(v) end CXInclusionVisitor /** An "index" that consists of a set of translation units that would typically * be linked together into an executable or library. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXIndex = Ptr[Byte] object CXIndex: @@ -190,7 +209,7 @@ object CXIndex: /** An indexing action/session, to be applied to one or multiple translation * units. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXIndexAction = Ptr[Byte] object CXIndexAction: @@ -200,7 +219,7 @@ object CXIndexAction: /** The functions in this group provide access to information about modules. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXModule = Ptr[Byte] object CXModule: @@ -210,7 +229,7 @@ object CXModule: /** Object encapsulating information about a module.map file. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/BuildSystem.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/BuildSystem.h */ opaque type CXModuleMapDescriptor = Ptr[CXModuleMapDescriptorImpl] object CXModuleMapDescriptor: @@ -225,7 +244,7 @@ object CXModuleMapDescriptor: /** Opaque pointer representing a policy that controls pretty printing for * clang_getCursorPrettyPrinted. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXPrintingPolicy = Ptr[Byte] object CXPrintingPolicy: @@ -235,7 +254,7 @@ object CXPrintingPolicy: /** A remapping of original source files and their translated files. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXRemapping = Ptr[Byte] object CXRemapping: @@ -245,7 +264,7 @@ object CXRemapping: /** An opaque type representing target information for a given translation unit. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXTargetInfo = Ptr[CXTargetInfoImpl] object CXTargetInfo: @@ -256,7 +275,7 @@ object CXTargetInfo: /** A single translation unit, which resides in an index. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXTranslationUnit = Ptr[CXTranslationUnitImpl] object CXTranslationUnit: @@ -269,7 +288,7 @@ object CXTranslationUnit: /** Object encapsulating information about overlaying virtual file/directories * over the real file system. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/BuildSystem.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/BuildSystem.h */ opaque type CXVirtualFileOverlay = Ptr[CXVirtualFileOverlayImpl] object CXVirtualFileOverlay: diff --git a/modules/libclang/src/main/scala/generated/libclang/all.scala b/modules/libclang/src/main/scala/generated/libclang/all.scala deleted file mode 100644 index 4b42294f..00000000 --- a/modules/libclang/src/main/scala/generated/libclang/all.scala +++ /dev/null @@ -1,454 +0,0 @@ -package libclang -package all - -import _root_.scala.scalanative.unsafe.* -import _root_.scala.scalanative.unsigned.* -import _root_.scala.scalanative.libc.* -import _root_.scala.scalanative.* - -export _root_.libclang.enumerations.CXAvailabilityKind -export _root_.libclang.enumerations.CXCallingConv -export _root_.libclang.enumerations.CXChildVisitResult -export _root_.libclang.enumerations.CXCodeComplete_Flags -export _root_.libclang.enumerations.CXCompletionChunkKind -export _root_.libclang.enumerations.CXCompletionContext -export _root_.libclang.enumerations.CXCursorKind -export _root_.libclang.enumerations.CXCursor_ExceptionSpecificationKind -export _root_.libclang.enumerations.CXDiagnosticDisplayOptions -export _root_.libclang.enumerations.CXDiagnosticSeverity -export _root_.libclang.enumerations.CXErrorCode -export _root_.libclang.enumerations.CXEvalResultKind -export _root_.libclang.enumerations.CXGlobalOptFlags -export _root_.libclang.enumerations.CXIdxAttrKind -export _root_.libclang.enumerations.CXIdxDeclInfoFlags -export _root_.libclang.enumerations.CXIdxEntityCXXTemplateKind -export _root_.libclang.enumerations.CXIdxEntityKind -export _root_.libclang.enumerations.CXIdxEntityLanguage -export _root_.libclang.enumerations.CXIdxEntityRefKind -export _root_.libclang.enumerations.CXIdxObjCContainerKind -export _root_.libclang.enumerations.CXIndexOptFlags -export _root_.libclang.enumerations.CXLanguageKind -export _root_.libclang.enumerations.CXLinkageKind -export _root_.libclang.enumerations.CXLoadDiag_Error -export _root_.libclang.enumerations.CXNameRefFlags -export _root_.libclang.enumerations.CXObjCDeclQualifierKind -export _root_.libclang.enumerations.CXObjCPropertyAttrKind -export _root_.libclang.enumerations.CXPrintingPolicyProperty -export _root_.libclang.enumerations.CXRefQualifierKind -export _root_.libclang.enumerations.CXReparse_Flags -export _root_.libclang.enumerations.CXResult -export _root_.libclang.enumerations.CXSaveError -export _root_.libclang.enumerations.CXSaveTranslationUnit_Flags -export _root_.libclang.enumerations.CXSymbolRole -export _root_.libclang.enumerations.CXTLSKind -export _root_.libclang.enumerations.CXTUResourceUsageKind -export _root_.libclang.enumerations.CXTemplateArgumentKind -export _root_.libclang.enumerations.CXTokenKind -export _root_.libclang.enumerations.CXTranslationUnit_Flags -export _root_.libclang.enumerations.CXTypeKind -export _root_.libclang.enumerations.CXTypeLayoutError -export _root_.libclang.enumerations.CXTypeNullabilityKind -export _root_.libclang.enumerations.CXVisibilityKind -export _root_.libclang.enumerations.CXVisitorResult -export _root_.libclang.enumerations.CX_CXXAccessSpecifier -export _root_.libclang.enumerations.CX_StorageClass -export _root_.libclang.aliases.CXClientData -export _root_.libclang.aliases.CXCompletionString -export _root_.libclang.aliases.CXCursorSet -export _root_.libclang.aliases.CXCursorVisitor -export _root_.libclang.aliases.CXDiagnostic -export _root_.libclang.aliases.CXDiagnosticSet -export _root_.libclang.aliases.CXEvalResult -export _root_.libclang.aliases.CXFieldVisitor -export _root_.libclang.aliases.CXFile -export _root_.libclang.aliases.CXIdxClientASTFile -export _root_.libclang.aliases.CXIdxClientContainer -export _root_.libclang.aliases.CXIdxClientEntity -export _root_.libclang.aliases.CXIdxClientFile -export _root_.libclang.aliases.CXInclusionVisitor -export _root_.libclang.aliases.CXIndex -export _root_.libclang.aliases.CXIndexAction -export _root_.libclang.aliases.CXModule -export _root_.libclang.aliases.CXModuleMapDescriptor -export _root_.libclang.aliases.CXPrintingPolicy -export _root_.libclang.aliases.CXRemapping -export _root_.libclang.aliases.CXTargetInfo -export _root_.libclang.aliases.CXTranslationUnit -export _root_.libclang.aliases.CXVirtualFileOverlay -export _root_.libclang.aliases.size_t -export _root_.libclang.aliases.time_t -export _root_.libclang.structs.CXCodeCompleteResults -export _root_.libclang.structs.CXCompletionResult -export _root_.libclang.structs.CXCursor -export _root_.libclang.structs.CXCursorAndRangeVisitor -export _root_.libclang.structs.CXCursorSetImpl -export _root_.libclang.structs.CXFileUniqueID -export _root_.libclang.structs.CXIdxAttrInfo -export _root_.libclang.structs.CXIdxBaseClassInfo -export _root_.libclang.structs.CXIdxCXXClassDeclInfo -export _root_.libclang.structs.CXIdxContainerInfo -export _root_.libclang.structs.CXIdxDeclInfo -export _root_.libclang.structs.CXIdxEntityInfo -export _root_.libclang.structs.CXIdxEntityRefInfo -export _root_.libclang.structs.CXIdxIBOutletCollectionAttrInfo -export _root_.libclang.structs.CXIdxImportedASTFileInfo -export _root_.libclang.structs.CXIdxIncludedFileInfo -export _root_.libclang.structs.CXIdxLoc -export _root_.libclang.structs.CXIdxObjCCategoryDeclInfo -export _root_.libclang.structs.CXIdxObjCContainerDeclInfo -export _root_.libclang.structs.CXIdxObjCInterfaceDeclInfo -export _root_.libclang.structs.CXIdxObjCPropertyDeclInfo -export _root_.libclang.structs.CXIdxObjCProtocolRefInfo -export _root_.libclang.structs.CXIdxObjCProtocolRefListInfo -export _root_.libclang.structs.CXModuleMapDescriptorImpl -export _root_.libclang.structs.CXPlatformAvailability -export _root_.libclang.structs.CXSourceLocation -export _root_.libclang.structs.CXSourceRange -export _root_.libclang.structs.CXSourceRangeList -export _root_.libclang.structs.CXString -export _root_.libclang.structs.CXStringSet -export _root_.libclang.structs.CXTUResourceUsage -export _root_.libclang.structs.CXTUResourceUsageEntry -export _root_.libclang.structs.CXTargetInfoImpl -export _root_.libclang.structs.CXToken -export _root_.libclang.structs.CXTranslationUnitImpl -export _root_.libclang.structs.CXType -export _root_.libclang.structs.CXUnsavedFile -export _root_.libclang.structs.CXVersion -export _root_.libclang.structs.CXVirtualFileOverlayImpl -export _root_.libclang.structs.IndexerCallbacks -export _root_.libclang.functions.clang_CXIndex_getGlobalOptions -export _root_.libclang.functions.clang_CXIndex_setGlobalOptions -export _root_.libclang.functions.clang_CXIndex_setInvocationEmissionPathOption -export _root_.libclang.functions.clang_EvalResult_dispose -export _root_.libclang.functions.clang_EvalResult_getAsDouble -export _root_.libclang.functions.clang_EvalResult_getAsInt -export _root_.libclang.functions.clang_EvalResult_getAsLongLong -export _root_.libclang.functions.clang_EvalResult_getAsStr -export _root_.libclang.functions.clang_EvalResult_getAsUnsigned -export _root_.libclang.functions.clang_EvalResult_getKind -export _root_.libclang.functions.clang_EvalResult_isUnsignedInt -export _root_.libclang.functions.clang_File_isEqual -export _root_.libclang.functions.clang_IndexAction_create -export _root_.libclang.functions.clang_IndexAction_dispose -export _root_.libclang.functions.clang_ModuleMapDescriptor_create -export _root_.libclang.functions.clang_ModuleMapDescriptor_dispose -export _root_.libclang.functions.clang_ModuleMapDescriptor_setFrameworkModuleName -export _root_.libclang.functions.clang_ModuleMapDescriptor_setUmbrellaHeader -export _root_.libclang.functions.clang_ModuleMapDescriptor_writeToBuffer -export _root_.libclang.functions.clang_Module_getASTFile -export _root_.libclang.functions.clang_Module_getNumTopLevelHeaders -export _root_.libclang.functions.clang_Module_getParent -export _root_.libclang.functions.clang_Module_getTopLevelHeader -export _root_.libclang.functions.clang_Module_isSystem -export _root_.libclang.functions.clang_PrintingPolicy_dispose -export _root_.libclang.functions.clang_PrintingPolicy_getProperty -export _root_.libclang.functions.clang_PrintingPolicy_setProperty -export _root_.libclang.functions.clang_TargetInfo_dispose -export _root_.libclang.functions.clang_TargetInfo_getPointerWidth -export _root_.libclang.functions.clang_VirtualFileOverlay_addFileMapping -export _root_.libclang.functions.clang_VirtualFileOverlay_create -export _root_.libclang.functions.clang_VirtualFileOverlay_dispose -export _root_.libclang.functions.clang_VirtualFileOverlay_setCaseSensitivity -export _root_.libclang.functions.clang_VirtualFileOverlay_writeToBuffer -export _root_.libclang.functions.clang_annotateTokens -export _root_.libclang.functions.clang_codeCompleteAt -export _root_.libclang.functions.clang_codeCompleteGetContainerKind -export _root_.libclang.functions.clang_codeCompleteGetContexts -export _root_.libclang.functions.clang_codeCompleteGetDiagnostic -export _root_.libclang.functions.clang_codeCompleteGetNumDiagnostics -export _root_.libclang.functions.clang_createCXCursorSet -export _root_.libclang.functions.clang_createIndex -export _root_.libclang.functions.clang_createTranslationUnit -export _root_.libclang.functions.clang_createTranslationUnit2 -export _root_.libclang.functions.clang_createTranslationUnitFromSourceFile -export _root_.libclang.functions.clang_defaultCodeCompleteOptions -export _root_.libclang.functions.clang_defaultDiagnosticDisplayOptions -export _root_.libclang.functions.clang_defaultEditingTranslationUnitOptions -export _root_.libclang.functions.clang_defaultReparseOptions -export _root_.libclang.functions.clang_defaultSaveOptions -export _root_.libclang.functions.clang_disposeCXCursorSet -export _root_.libclang.functions.clang_disposeCXPlatformAvailability -export _root_.libclang.functions.clang_disposeCodeCompleteResults -export _root_.libclang.functions.clang_disposeDiagnostic -export _root_.libclang.functions.clang_disposeDiagnosticSet -export _root_.libclang.functions.clang_disposeIndex -export _root_.libclang.functions.clang_disposeOverriddenCursors -export _root_.libclang.functions.clang_disposeSourceRangeList -export _root_.libclang.functions.clang_disposeStringSet -export _root_.libclang.functions.clang_disposeTokens -export _root_.libclang.functions.clang_disposeTranslationUnit -export _root_.libclang.functions.clang_enableStackTraces -export _root_.libclang.functions.clang_executeOnThread -export _root_.libclang.functions.clang_free -export _root_.libclang.functions.clang_getAllSkippedRanges -export _root_.libclang.functions.clang_getBuildSessionTimestamp -export _root_.libclang.functions.clang_getChildDiagnostics -export _root_.libclang.functions.clang_getCompletionAvailability -export _root_.libclang.functions.clang_getCompletionChunkCompletionString -export _root_.libclang.functions.clang_getCompletionChunkKind -export _root_.libclang.functions.clang_getCompletionNumAnnotations -export _root_.libclang.functions.clang_getCompletionNumFixIts -export _root_.libclang.functions.clang_getCompletionPriority -export _root_.libclang.functions.clang_getDiagnostic -export _root_.libclang.functions.clang_getDiagnosticCategory -export _root_.libclang.functions.clang_getDiagnosticInSet -export _root_.libclang.functions.clang_getDiagnosticNumFixIts -export _root_.libclang.functions.clang_getDiagnosticNumRanges -export _root_.libclang.functions.clang_getDiagnosticSetFromTU -export _root_.libclang.functions.clang_getDiagnosticSeverity -export _root_.libclang.functions.clang_getFile -export _root_.libclang.functions.clang_getFileContents -export _root_.libclang.functions.clang_getFileTime -export _root_.libclang.functions.clang_getFileUniqueID -export _root_.libclang.functions.clang_getInclusions -export _root_.libclang.functions.clang_getModuleForFile -export _root_.libclang.functions.clang_getNumCompletionChunks -export _root_.libclang.functions.clang_getNumDiagnostics -export _root_.libclang.functions.clang_getNumDiagnosticsInSet -export _root_.libclang.functions.clang_getRemappings -export _root_.libclang.functions.clang_getRemappingsFromFileList -export _root_.libclang.functions.clang_getSkippedRanges -export _root_.libclang.functions.clang_getTUResourceUsageName -export _root_.libclang.functions.clang_getTranslationUnitTargetInfo -export _root_.libclang.functions.clang_indexSourceFile -export _root_.libclang.functions.clang_indexSourceFileFullArgv -export _root_.libclang.functions.clang_indexTranslationUnit -export _root_.libclang.functions.clang_index_getCXXClassDeclInfo -export _root_.libclang.functions.clang_index_getClientContainer -export _root_.libclang.functions.clang_index_getClientEntity -export _root_.libclang.functions.clang_index_getIBOutletCollectionAttrInfo -export _root_.libclang.functions.clang_index_getObjCCategoryDeclInfo -export _root_.libclang.functions.clang_index_getObjCContainerDeclInfo -export _root_.libclang.functions.clang_index_getObjCInterfaceDeclInfo -export _root_.libclang.functions.clang_index_getObjCPropertyDeclInfo -export _root_.libclang.functions.clang_index_getObjCProtocolRefListInfo -export _root_.libclang.functions.clang_index_isEntityObjCContainerKind -export _root_.libclang.functions.clang_index_setClientContainer -export _root_.libclang.functions.clang_index_setClientEntity -export _root_.libclang.functions.clang_isAttribute -export _root_.libclang.functions.clang_isDeclaration -export _root_.libclang.functions.clang_isExpression -export _root_.libclang.functions.clang_isFileMultipleIncludeGuarded -export _root_.libclang.functions.clang_isInvalid -export _root_.libclang.functions.clang_isPreprocessing -export _root_.libclang.functions.clang_isReference -export _root_.libclang.functions.clang_isStatement -export _root_.libclang.functions.clang_isTranslationUnit -export _root_.libclang.functions.clang_isUnexposed -export _root_.libclang.functions.clang_loadDiagnostics -export _root_.libclang.functions.clang_parseTranslationUnit -export _root_.libclang.functions.clang_parseTranslationUnit2 -export _root_.libclang.functions.clang_parseTranslationUnit2FullArgv -export _root_.libclang.functions.clang_remap_dispose -export _root_.libclang.functions.clang_remap_getFilenames -export _root_.libclang.functions.clang_remap_getNumFiles -export _root_.libclang.functions.clang_reparseTranslationUnit -export _root_.libclang.functions.clang_saveTranslationUnit -export _root_.libclang.functions.clang_sortCodeCompletionResults -export _root_.libclang.functions.clang_suspendTranslationUnit -export _root_.libclang.functions.clang_toggleCrashRecovery -export _root_.libclang.functions.clang_CXCursorSet_contains -export _root_.libclang.functions.clang_CXCursorSet_insert -export _root_.libclang.functions.clang_CXXConstructor_isConvertingConstructor -export _root_.libclang.functions.clang_CXXConstructor_isCopyConstructor -export _root_.libclang.functions.clang_CXXConstructor_isDefaultConstructor -export _root_.libclang.functions.clang_CXXConstructor_isMoveConstructor -export _root_.libclang.functions.clang_CXXField_isMutable -export _root_.libclang.functions.clang_CXXMethod_isConst -export _root_.libclang.functions.clang_CXXMethod_isDefaulted -export _root_.libclang.functions.clang_CXXMethod_isPureVirtual -export _root_.libclang.functions.clang_CXXMethod_isStatic -export _root_.libclang.functions.clang_CXXMethod_isVirtual -export _root_.libclang.functions.clang_CXXRecord_isAbstract -export _root_.libclang.functions.clang_Cursor_Evaluate -export _root_.libclang.functions.clang_Cursor_getArgument -export _root_.libclang.functions.clang_Cursor_getBriefCommentText -export _root_.libclang.functions.clang_Cursor_getCXXManglings -export _root_.libclang.functions.clang_Cursor_getCommentRange -export _root_.libclang.functions.clang_Cursor_getMangling -export _root_.libclang.functions.clang_Cursor_getModule -export _root_.libclang.functions.clang_Cursor_getNumArguments -export _root_.libclang.functions.clang_Cursor_getNumTemplateArguments -export _root_.libclang.functions.clang_Cursor_getObjCDeclQualifiers -export _root_.libclang.functions.clang_Cursor_getObjCManglings -export _root_.libclang.functions.clang_Cursor_getObjCPropertyAttributes -export _root_.libclang.functions.clang_Cursor_getObjCPropertyGetterName -export _root_.libclang.functions.clang_Cursor_getObjCPropertySetterName -export _root_.libclang.functions.clang_Cursor_getObjCSelectorIndex -export _root_.libclang.functions.clang_Cursor_getOffsetOfField -export _root_.libclang.functions.clang_Cursor_getRawCommentText -export _root_.libclang.functions.clang_Cursor_getReceiverType -export _root_.libclang.functions.clang_Cursor_getSpellingNameRange -export _root_.libclang.functions.clang_Cursor_getStorageClass -export _root_.libclang.functions.clang_Cursor_getTemplateArgumentKind -export _root_.libclang.functions.clang_Cursor_getTemplateArgumentType -export _root_.libclang.functions.clang_Cursor_getTemplateArgumentUnsignedValue -export _root_.libclang.functions.clang_Cursor_getTemplateArgumentValue -export _root_.libclang.functions.clang_Cursor_getTranslationUnit -export _root_.libclang.functions.clang_Cursor_getVarDeclInitializer -export _root_.libclang.functions.clang_Cursor_hasAttrs -export _root_.libclang.functions.clang_Cursor_hasVarDeclExternalStorage -export _root_.libclang.functions.clang_Cursor_hasVarDeclGlobalStorage -export _root_.libclang.functions.clang_Cursor_isAnonymous -export _root_.libclang.functions.clang_Cursor_isAnonymousRecordDecl -export _root_.libclang.functions.clang_Cursor_isBitField -export _root_.libclang.functions.clang_Cursor_isDynamicCall -export _root_.libclang.functions.clang_Cursor_isExternalSymbol -export _root_.libclang.functions.clang_Cursor_isFunctionInlined -export _root_.libclang.functions.clang_Cursor_isInlineNamespace -export _root_.libclang.functions.clang_Cursor_isMacroBuiltin -export _root_.libclang.functions.clang_Cursor_isMacroFunctionLike -export _root_.libclang.functions.clang_Cursor_isNull -export _root_.libclang.functions.clang_Cursor_isObjCOptional -export _root_.libclang.functions.clang_Cursor_isVariadic -export _root_.libclang.functions.clang_EnumDecl_isScoped -export _root_.libclang.functions.clang_File_tryGetRealPathName -export _root_.libclang.functions.clang_Location_isFromMainFile -export _root_.libclang.functions.clang_Location_isInSystemHeader -export _root_.libclang.functions.clang_Module_getFullName -export _root_.libclang.functions.clang_Module_getName -export _root_.libclang.functions.clang_Range_isNull -export _root_.libclang.functions.clang_TargetInfo_getTriple -export _root_.libclang.functions.clang_Type_getAlignOf -export _root_.libclang.functions.clang_Type_getCXXRefQualifier -export _root_.libclang.functions.clang_Type_getClassType -export _root_.libclang.functions.clang_Type_getModifiedType -export _root_.libclang.functions.clang_Type_getNamedType -export _root_.libclang.functions.clang_Type_getNullability -export _root_.libclang.functions.clang_Type_getNumObjCProtocolRefs -export _root_.libclang.functions.clang_Type_getNumObjCTypeArgs -export _root_.libclang.functions.clang_Type_getNumTemplateArguments -export _root_.libclang.functions.clang_Type_getObjCEncoding -export _root_.libclang.functions.clang_Type_getObjCObjectBaseType -export _root_.libclang.functions.clang_Type_getObjCProtocolDecl -export _root_.libclang.functions.clang_Type_getObjCTypeArg -export _root_.libclang.functions.clang_Type_getOffsetOf -export _root_.libclang.functions.clang_Type_getSizeOf -export _root_.libclang.functions.clang_Type_getTemplateArgumentAsType -export _root_.libclang.functions.clang_Type_getValueType -export _root_.libclang.functions.clang_Type_isTransparentTagTypedef -export _root_.libclang.functions.clang_Type_visitFields -export _root_.libclang.functions.clang_codeCompleteGetContainerUSR -export _root_.libclang.functions.clang_codeCompleteGetObjCSelector -export _root_.libclang.functions.clang_constructUSR_ObjCCategory -export _root_.libclang.functions.clang_constructUSR_ObjCClass -export _root_.libclang.functions.clang_constructUSR_ObjCIvar -export _root_.libclang.functions.clang_constructUSR_ObjCMethod -export _root_.libclang.functions.clang_constructUSR_ObjCProperty -export _root_.libclang.functions.clang_constructUSR_ObjCProtocol -export _root_.libclang.functions.clang_disposeCXTUResourceUsage -export _root_.libclang.functions.clang_disposeString -export _root_.libclang.functions.clang_equalCursors -export _root_.libclang.functions.clang_equalLocations -export _root_.libclang.functions.clang_equalRanges -export _root_.libclang.functions.clang_equalTypes -export _root_.libclang.functions.clang_findIncludesInFile -export _root_.libclang.functions.clang_findReferencesInFile -export _root_.libclang.functions.clang_formatDiagnostic -export _root_.libclang.functions.clang_getAddressSpace -export _root_.libclang.functions.clang_getArgType -export _root_.libclang.functions.clang_getArrayElementType -export _root_.libclang.functions.clang_getArraySize -export _root_.libclang.functions.clang_getCString -export _root_.libclang.functions.clang_getCXTUResourceUsage -export _root_.libclang.functions.clang_getCXXAccessSpecifier -export _root_.libclang.functions.clang_getCanonicalCursor -export _root_.libclang.functions.clang_getCanonicalType -export _root_.libclang.functions.clang_getClangVersion -export _root_.libclang.functions.clang_getCompletionAnnotation -export _root_.libclang.functions.clang_getCompletionBriefComment -export _root_.libclang.functions.clang_getCompletionChunkText -export _root_.libclang.functions.clang_getCompletionFixIt -export _root_.libclang.functions.clang_getCompletionParent -export _root_.libclang.functions.clang_getCursor -export _root_.libclang.functions.clang_getCursorAvailability -export _root_.libclang.functions.clang_getCursorCompletionString -export _root_.libclang.functions.clang_getCursorDefinition -export _root_.libclang.functions.clang_getCursorDisplayName -export _root_.libclang.functions.clang_getCursorExceptionSpecificationType -export _root_.libclang.functions.clang_getCursorExtent -export _root_.libclang.functions.clang_getCursorKind -export _root_.libclang.functions.clang_getCursorKindSpelling -export _root_.libclang.functions.clang_getCursorLanguage -export _root_.libclang.functions.clang_getCursorLexicalParent -export _root_.libclang.functions.clang_getCursorLinkage -export _root_.libclang.functions.clang_getCursorLocation -export _root_.libclang.functions.clang_getCursorPlatformAvailability -export _root_.libclang.functions.clang_getCursorPrettyPrinted -export _root_.libclang.functions.clang_getCursorPrintingPolicy -export _root_.libclang.functions.clang_getCursorReferenceNameRange -export _root_.libclang.functions.clang_getCursorReferenced -export _root_.libclang.functions.clang_getCursorResultType -export _root_.libclang.functions.clang_getCursorSemanticParent -export _root_.libclang.functions.clang_getCursorSpelling -export _root_.libclang.functions.clang_getCursorTLSKind -export _root_.libclang.functions.clang_getCursorType -export _root_.libclang.functions.clang_getCursorUSR -export _root_.libclang.functions.clang_getCursorVisibility -export _root_.libclang.functions.clang_getDeclObjCTypeEncoding -export _root_.libclang.functions.clang_getDefinitionSpellingAndExtent -export _root_.libclang.functions.clang_getDiagnosticCategoryName -export _root_.libclang.functions.clang_getDiagnosticCategoryText -export _root_.libclang.functions.clang_getDiagnosticFixIt -export _root_.libclang.functions.clang_getDiagnosticLocation -export _root_.libclang.functions.clang_getDiagnosticOption -export _root_.libclang.functions.clang_getDiagnosticRange -export _root_.libclang.functions.clang_getDiagnosticSpelling -export _root_.libclang.functions.clang_getElementType -export _root_.libclang.functions.clang_getEnumConstantDeclUnsignedValue -export _root_.libclang.functions.clang_getEnumConstantDeclValue -export _root_.libclang.functions.clang_getEnumDeclIntegerType -export _root_.libclang.functions.clang_getExceptionSpecificationType -export _root_.libclang.functions.clang_getExpansionLocation -export _root_.libclang.functions.clang_getFieldDeclBitWidth -export _root_.libclang.functions.clang_getFileLocation -export _root_.libclang.functions.clang_getFileName -export _root_.libclang.functions.clang_getFunctionTypeCallingConv -export _root_.libclang.functions.clang_getIBOutletCollectionType -export _root_.libclang.functions.clang_getIncludedFile -export _root_.libclang.functions.clang_getInstantiationLocation -export _root_.libclang.functions.clang_getLocation -export _root_.libclang.functions.clang_getLocationForOffset -export _root_.libclang.functions.clang_getNullCursor -export _root_.libclang.functions.clang_getNullLocation -export _root_.libclang.functions.clang_getNullRange -export _root_.libclang.functions.clang_getNumArgTypes -export _root_.libclang.functions.clang_getNumElements -export _root_.libclang.functions.clang_getNumOverloadedDecls -export _root_.libclang.functions.clang_getOverloadedDecl -export _root_.libclang.functions.clang_getOverriddenCursors -export _root_.libclang.functions.clang_getPointeeType -export _root_.libclang.functions.clang_getPresumedLocation -export _root_.libclang.functions.clang_getRange -export _root_.libclang.functions.clang_getRangeEnd -export _root_.libclang.functions.clang_getRangeStart -export _root_.libclang.functions.clang_getResultType -export _root_.libclang.functions.clang_getSpecializedCursorTemplate -export _root_.libclang.functions.clang_getSpellingLocation -export _root_.libclang.functions.clang_getTemplateCursorKind -export _root_.libclang.functions.clang_getToken -export _root_.libclang.functions.clang_getTokenExtent -export _root_.libclang.functions.clang_getTokenKind -export _root_.libclang.functions.clang_getTokenLocation -export _root_.libclang.functions.clang_getTokenSpelling -export _root_.libclang.functions.clang_getTranslationUnitCursor -export _root_.libclang.functions.clang_getTranslationUnitSpelling -export _root_.libclang.functions.clang_getTypeDeclaration -export _root_.libclang.functions.clang_getTypeKindSpelling -export _root_.libclang.functions.clang_getTypeSpelling -export _root_.libclang.functions.clang_getTypedefDeclUnderlyingType -export _root_.libclang.functions.clang_getTypedefName -export _root_.libclang.functions.clang_hashCursor -export _root_.libclang.functions.clang_indexLoc_getCXSourceLocation -export _root_.libclang.functions.clang_indexLoc_getFileLocation -export _root_.libclang.functions.clang_isConstQualifiedType -export _root_.libclang.functions.clang_isCursorDefinition -export _root_.libclang.functions.clang_isFunctionTypeVariadic -export _root_.libclang.functions.clang_isInvalidDeclaration -export _root_.libclang.functions.clang_isPODType -export _root_.libclang.functions.clang_isRestrictQualifiedType -export _root_.libclang.functions.clang_isVirtualBase -export _root_.libclang.functions.clang_isVolatileQualifiedType -export _root_.libclang.functions.clang_tokenize -export _root_.libclang.functions.clang_visitChildren diff --git a/modules/libclang/src/main/scala/generated/libclang/enumerations.scala b/modules/libclang/src/main/scala/generated/libclang/enumerations.scala index 5d03f78d..643d57bd 100644 --- a/modules/libclang/src/main/scala/generated/libclang/enumerations.scala +++ b/modules/libclang/src/main/scala/generated/libclang/enumerations.scala @@ -1,5 +1,4 @@ package libclang -package enumerations import _root_.scala.scalanative.unsafe.* import _root_.scala.scalanative.unsigned.* @@ -22,7 +21,7 @@ private[libclang] trait CEnumU[T](using eq: T =:= UInt): * the use of this entity will result in a warning or error due to it being * deprecated or unavailable. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXAvailabilityKind = CUnsignedInt object CXAvailabilityKind extends CEnumU[CXAvailabilityKind]: @@ -45,9 +44,94 @@ object CXAvailabilityKind extends CEnumU[CXAvailabilityKind]: inline def is(b: CXAvailabilityKind): Boolean = (a & b) == b end CXAvailabilityKind +/** Describes the kind of binary operators. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +opaque type CXBinaryOperatorKind = CUnsignedInt +object CXBinaryOperatorKind extends CEnumU[CXBinaryOperatorKind]: + given _tag: Tag[CXBinaryOperatorKind] = Tag.UInt + inline def define(inline a: Long): CXBinaryOperatorKind = a.toUInt + val CXBinaryOperator_Invalid = define(0) + val CXBinaryOperator_PtrMemD = define(1) + val CXBinaryOperator_PtrMemI = define(2) + val CXBinaryOperator_Mul = define(3) + val CXBinaryOperator_Div = define(4) + val CXBinaryOperator_Rem = define(5) + val CXBinaryOperator_Add = define(6) + val CXBinaryOperator_Sub = define(7) + val CXBinaryOperator_Shl = define(8) + val CXBinaryOperator_Shr = define(9) + val CXBinaryOperator_Cmp = define(10) + val CXBinaryOperator_LT = define(11) + val CXBinaryOperator_GT = define(12) + val CXBinaryOperator_LE = define(13) + val CXBinaryOperator_GE = define(14) + val CXBinaryOperator_EQ = define(15) + val CXBinaryOperator_NE = define(16) + val CXBinaryOperator_And = define(17) + val CXBinaryOperator_Xor = define(18) + val CXBinaryOperator_Or = define(19) + val CXBinaryOperator_LAnd = define(20) + val CXBinaryOperator_LOr = define(21) + val CXBinaryOperator_Assign = define(22) + val CXBinaryOperator_MulAssign = define(23) + val CXBinaryOperator_DivAssign = define(24) + val CXBinaryOperator_RemAssign = define(25) + val CXBinaryOperator_AddAssign = define(26) + val CXBinaryOperator_SubAssign = define(27) + val CXBinaryOperator_ShlAssign = define(28) + val CXBinaryOperator_ShrAssign = define(29) + val CXBinaryOperator_AndAssign = define(30) + val CXBinaryOperator_XorAssign = define(31) + val CXBinaryOperator_OrAssign = define(32) + val CXBinaryOperator_Comma = define(33) + inline def getName(inline value: CXBinaryOperatorKind): Option[String] = + inline value match + case CXBinaryOperator_Invalid => Some("CXBinaryOperator_Invalid") + case CXBinaryOperator_PtrMemD => Some("CXBinaryOperator_PtrMemD") + case CXBinaryOperator_PtrMemI => Some("CXBinaryOperator_PtrMemI") + case CXBinaryOperator_Mul => Some("CXBinaryOperator_Mul") + case CXBinaryOperator_Div => Some("CXBinaryOperator_Div") + case CXBinaryOperator_Rem => Some("CXBinaryOperator_Rem") + case CXBinaryOperator_Add => Some("CXBinaryOperator_Add") + case CXBinaryOperator_Sub => Some("CXBinaryOperator_Sub") + case CXBinaryOperator_Shl => Some("CXBinaryOperator_Shl") + case CXBinaryOperator_Shr => Some("CXBinaryOperator_Shr") + case CXBinaryOperator_Cmp => Some("CXBinaryOperator_Cmp") + case CXBinaryOperator_LT => Some("CXBinaryOperator_LT") + case CXBinaryOperator_GT => Some("CXBinaryOperator_GT") + case CXBinaryOperator_LE => Some("CXBinaryOperator_LE") + case CXBinaryOperator_GE => Some("CXBinaryOperator_GE") + case CXBinaryOperator_EQ => Some("CXBinaryOperator_EQ") + case CXBinaryOperator_NE => Some("CXBinaryOperator_NE") + case CXBinaryOperator_And => Some("CXBinaryOperator_And") + case CXBinaryOperator_Xor => Some("CXBinaryOperator_Xor") + case CXBinaryOperator_Or => Some("CXBinaryOperator_Or") + case CXBinaryOperator_LAnd => Some("CXBinaryOperator_LAnd") + case CXBinaryOperator_LOr => Some("CXBinaryOperator_LOr") + case CXBinaryOperator_Assign => Some("CXBinaryOperator_Assign") + case CXBinaryOperator_MulAssign => Some("CXBinaryOperator_MulAssign") + case CXBinaryOperator_DivAssign => Some("CXBinaryOperator_DivAssign") + case CXBinaryOperator_RemAssign => Some("CXBinaryOperator_RemAssign") + case CXBinaryOperator_AddAssign => Some("CXBinaryOperator_AddAssign") + case CXBinaryOperator_SubAssign => Some("CXBinaryOperator_SubAssign") + case CXBinaryOperator_ShlAssign => Some("CXBinaryOperator_ShlAssign") + case CXBinaryOperator_ShrAssign => Some("CXBinaryOperator_ShrAssign") + case CXBinaryOperator_AndAssign => Some("CXBinaryOperator_AndAssign") + case CXBinaryOperator_XorAssign => Some("CXBinaryOperator_XorAssign") + case CXBinaryOperator_OrAssign => Some("CXBinaryOperator_OrAssign") + case CXBinaryOperator_Comma => Some("CXBinaryOperator_Comma") + case _ => None + extension (a: CXBinaryOperatorKind) + inline def &(b: CXBinaryOperatorKind): CXBinaryOperatorKind = a & b + inline def |(b: CXBinaryOperatorKind): CXBinaryOperatorKind = a | b + inline def is(b: CXBinaryOperatorKind): Boolean = (a & b) == b +end CXBinaryOperatorKind + /** Describes the calling convention of a function type * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXCallingConv = CUnsignedInt object CXCallingConv extends CEnumU[CXCallingConv]: @@ -72,6 +156,7 @@ object CXCallingConv extends CEnumU[CXCallingConv]: val CXCallingConv_PreserveAll = define(15) val CXCallingConv_AArch64VectorCall = define(16) val CXCallingConv_SwiftAsync = define(17) + val CXCallingConv_AArch64SVEPCS = define(18) val CXCallingConv_Invalid = define(100) val CXCallingConv_Unexposed = define(200) inline def getName(inline value: CXCallingConv): Option[String] = @@ -95,10 +180,11 @@ object CXCallingConv extends CEnumU[CXCallingConv]: case CXCallingConv_PreserveAll => Some("CXCallingConv_PreserveAll") case CXCallingConv_AArch64VectorCall => Some("CXCallingConv_AArch64VectorCall") - case CXCallingConv_SwiftAsync => Some("CXCallingConv_SwiftAsync") - case CXCallingConv_Invalid => Some("CXCallingConv_Invalid") - case CXCallingConv_Unexposed => Some("CXCallingConv_Unexposed") - case _ => None + case CXCallingConv_SwiftAsync => Some("CXCallingConv_SwiftAsync") + case CXCallingConv_AArch64SVEPCS => Some("CXCallingConv_AArch64SVEPCS") + case CXCallingConv_Invalid => Some("CXCallingConv_Invalid") + case CXCallingConv_Unexposed => Some("CXCallingConv_Unexposed") + case _ => None extension (a: CXCallingConv) inline def &(b: CXCallingConv): CXCallingConv = a & b inline def |(b: CXCallingConv): CXCallingConv = a | b @@ -108,7 +194,7 @@ end CXCallingConv /** Describes how the traversal of the children of a particular cursor should * proceed after visiting a particular child cursor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXChildVisitResult = CUnsignedInt object CXChildVisitResult extends CEnumU[CXChildVisitResult]: @@ -129,9 +215,30 @@ object CXChildVisitResult extends CEnumU[CXChildVisitResult]: inline def is(b: CXChildVisitResult): Boolean = (a & b) == b end CXChildVisitResult +/** [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +opaque type CXChoice = CUnsignedInt +object CXChoice extends CEnumU[CXChoice]: + given _tag: Tag[CXChoice] = Tag.UInt + inline def define(inline a: Long): CXChoice = a.toUInt + val CXChoice_Default = define(0) + val CXChoice_Enabled = define(1) + val CXChoice_Disabled = define(2) + inline def getName(inline value: CXChoice): Option[String] = + inline value match + case CXChoice_Default => Some("CXChoice_Default") + case CXChoice_Enabled => Some("CXChoice_Enabled") + case CXChoice_Disabled => Some("CXChoice_Disabled") + case _ => None + extension (a: CXChoice) + inline def &(b: CXChoice): CXChoice = a & b + inline def |(b: CXChoice): CXChoice = a | b + inline def is(b: CXChoice): Boolean = (a & b) == b +end CXChoice + /** Flags that can be passed to clang_codeCompleteAt() to modify its behavior. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXCodeComplete_Flags = CUnsignedInt object CXCodeComplete_Flags extends CEnumU[CXCodeComplete_Flags]: @@ -161,7 +268,7 @@ end CXCodeComplete_Flags /** Describes a single piece of text within a code-completion string. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXCompletionChunkKind = CUnsignedInt object CXCompletionChunkKind extends CEnumU[CXCompletionChunkKind]: @@ -227,7 +334,7 @@ end CXCompletionChunkKind /** Bits that represent the context under which completion is occurring. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXCompletionContext = CUnsignedInt object CXCompletionContext extends CEnumU[CXCompletionContext]: @@ -313,7 +420,7 @@ end CXCompletionContext /** Describes the kind of entity that a cursor refers to. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXCursorKind = CUnsignedInt object CXCursorKind extends CEnumU[CXCursorKind]: @@ -433,7 +540,10 @@ object CXCursorKind extends CEnumU[CXCursorKind]: val CXCursor_OMPArrayShapingExpr = define(150) val CXCursor_OMPIteratorExpr = define(151) val CXCursor_CXXAddrspaceCastExpr = define(152) - val CXCursor_LastExpr = define(152) + val CXCursor_ConceptSpecializationExpr = define(153) + val CXCursor_RequiresExpr = define(154) + val CXCursor_CXXParenListInitExpr = define(155) + val CXCursor_LastExpr = define(155) val CXCursor_FirstStmt = define(200) val CXCursor_UnexposedStmt = define(200) val CXCursor_LabelStmt = define(201) @@ -532,8 +642,18 @@ object CXCursorKind extends CEnumU[CXCursorKind]: val CXCursor_OMPUnrollDirective = define(293) val CXCursor_OMPMetaDirective = define(294) val CXCursor_OMPGenericLoopDirective = define(295) - val CXCursor_LastStmt = define(295) - val CXCursor_TranslationUnit = define(300) + val CXCursor_OMPTeamsGenericLoopDirective = define(296) + val CXCursor_OMPTargetTeamsGenericLoopDirective = define(297) + val CXCursor_OMPParallelGenericLoopDirective = define(298) + val CXCursor_OMPTargetParallelGenericLoopDirective = define(299) + val CXCursor_OMPParallelMaskedDirective = define(300) + val CXCursor_OMPMaskedTaskLoopDirective = define(301) + val CXCursor_OMPMaskedTaskLoopSimdDirective = define(302) + val CXCursor_OMPParallelMaskedTaskLoopDirective = define(303) + val CXCursor_OMPParallelMaskedTaskLoopSimdDirective = define(304) + val CXCursor_OMPErrorDirective = define(305) + val CXCursor_LastStmt = define(305) + val CXCursor_TranslationUnit = define(350) val CXCursor_FirstAttr = define(400) val CXCursor_UnexposedAttr = define(400) val CXCursor_IBActionAttr = define(401) @@ -589,8 +709,9 @@ object CXCursorKind extends CEnumU[CXCursorKind]: val CXCursor_TypeAliasTemplateDecl = define(601) val CXCursor_StaticAssert = define(602) val CXCursor_FriendDecl = define(603) + val CXCursor_ConceptDecl = define(604) val CXCursor_FirstExtraDecl = define(600) - val CXCursor_LastExtraDecl = define(603) + val CXCursor_LastExtraDecl = define(604) val CXCursor_OverloadCandidate = define(700) inline def getName(inline value: CXCursorKind): Option[String] = inline value match @@ -722,6 +843,11 @@ object CXCursorKind extends CEnumU[CXCursorKind]: case CXCursor_OMPIteratorExpr => Some("CXCursor_OMPIteratorExpr") case CXCursor_CXXAddrspaceCastExpr => Some("CXCursor_CXXAddrspaceCastExpr") + case CXCursor_ConceptSpecializationExpr => + Some("CXCursor_ConceptSpecializationExpr") + case CXCursor_RequiresExpr => Some("CXCursor_RequiresExpr") + case CXCursor_CXXParenListInitExpr => + Some("CXCursor_CXXParenListInitExpr") case CXCursor_LastExpr => Some("CXCursor_LastExpr") case CXCursor_FirstStmt => Some("CXCursor_FirstStmt") case CXCursor_UnexposedStmt => Some("CXCursor_UnexposedStmt") @@ -864,12 +990,31 @@ object CXCursorKind extends CEnumU[CXCursorKind]: case CXCursor_OMPMetaDirective => Some("CXCursor_OMPMetaDirective") case CXCursor_OMPGenericLoopDirective => Some("CXCursor_OMPGenericLoopDirective") - case CXCursor_LastStmt => Some("CXCursor_LastStmt") - case CXCursor_TranslationUnit => Some("CXCursor_TranslationUnit") - case CXCursor_FirstAttr => Some("CXCursor_FirstAttr") - case CXCursor_UnexposedAttr => Some("CXCursor_UnexposedAttr") - case CXCursor_IBActionAttr => Some("CXCursor_IBActionAttr") - case CXCursor_IBOutletAttr => Some("CXCursor_IBOutletAttr") + case CXCursor_OMPTeamsGenericLoopDirective => + Some("CXCursor_OMPTeamsGenericLoopDirective") + case CXCursor_OMPTargetTeamsGenericLoopDirective => + Some("CXCursor_OMPTargetTeamsGenericLoopDirective") + case CXCursor_OMPParallelGenericLoopDirective => + Some("CXCursor_OMPParallelGenericLoopDirective") + case CXCursor_OMPTargetParallelGenericLoopDirective => + Some("CXCursor_OMPTargetParallelGenericLoopDirective") + case CXCursor_OMPParallelMaskedDirective => + Some("CXCursor_OMPParallelMaskedDirective") + case CXCursor_OMPMaskedTaskLoopDirective => + Some("CXCursor_OMPMaskedTaskLoopDirective") + case CXCursor_OMPMaskedTaskLoopSimdDirective => + Some("CXCursor_OMPMaskedTaskLoopSimdDirective") + case CXCursor_OMPParallelMaskedTaskLoopDirective => + Some("CXCursor_OMPParallelMaskedTaskLoopDirective") + case CXCursor_OMPParallelMaskedTaskLoopSimdDirective => + Some("CXCursor_OMPParallelMaskedTaskLoopSimdDirective") + case CXCursor_OMPErrorDirective => Some("CXCursor_OMPErrorDirective") + case CXCursor_LastStmt => Some("CXCursor_LastStmt") + case CXCursor_TranslationUnit => Some("CXCursor_TranslationUnit") + case CXCursor_FirstAttr => Some("CXCursor_FirstAttr") + case CXCursor_UnexposedAttr => Some("CXCursor_UnexposedAttr") + case CXCursor_IBActionAttr => Some("CXCursor_IBActionAttr") + case CXCursor_IBOutletAttr => Some("CXCursor_IBOutletAttr") case CXCursor_IBOutletCollectionAttr => Some("CXCursor_IBOutletCollectionAttr") case CXCursor_CXXFinalAttr => Some("CXCursor_CXXFinalAttr") @@ -932,6 +1077,7 @@ object CXCursorKind extends CEnumU[CXCursorKind]: Some("CXCursor_TypeAliasTemplateDecl") case CXCursor_StaticAssert => Some("CXCursor_StaticAssert") case CXCursor_FriendDecl => Some("CXCursor_FriendDecl") + case CXCursor_ConceptDecl => Some("CXCursor_ConceptDecl") case CXCursor_FirstExtraDecl => Some("CXCursor_FirstExtraDecl") case CXCursor_LastExtraDecl => Some("CXCursor_LastExtraDecl") case CXCursor_OverloadCandidate => Some("CXCursor_OverloadCandidate") @@ -944,7 +1090,7 @@ end CXCursorKind /** Describes the exception specification of a cursor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXCursor_ExceptionSpecificationKind = CUnsignedInt object CXCursor_ExceptionSpecificationKind @@ -1000,7 +1146,7 @@ end CXCursor_ExceptionSpecificationKind /** Options to control the display of diagnostics. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/CXDiagnostic.h */ opaque type CXDiagnosticDisplayOptions = CUnsignedInt object CXDiagnosticDisplayOptions extends CEnumU[CXDiagnosticDisplayOptions]: @@ -1035,7 +1181,7 @@ end CXDiagnosticDisplayOptions /** Describes the severity of a particular diagnostic. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/CXDiagnostic.h */ opaque type CXDiagnosticSeverity = CUnsignedInt object CXDiagnosticSeverity extends CEnumU[CXDiagnosticSeverity]: @@ -1062,7 +1208,7 @@ end CXDiagnosticSeverity /** Error codes returned by libclang routines. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/CXErrorCode.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/CXErrorCode.h */ opaque type CXErrorCode = CUnsignedInt object CXErrorCode extends CEnumU[CXErrorCode]: @@ -1087,7 +1233,7 @@ object CXErrorCode extends CEnumU[CXErrorCode]: inline def is(b: CXErrorCode): Boolean = (a & b) == b end CXErrorCode -/** [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h +/** [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXEvalResultKind = CUnsignedInt object CXEvalResultKind extends CEnumU[CXEvalResultKind]: @@ -1116,7 +1262,7 @@ object CXEvalResultKind extends CEnumU[CXEvalResultKind]: inline def is(b: CXEvalResultKind): Boolean = (a & b) == b end CXEvalResultKind -/** [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h +/** [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXGlobalOptFlags = CUnsignedInt object CXGlobalOptFlags extends CEnumU[CXGlobalOptFlags]: @@ -1142,7 +1288,7 @@ object CXGlobalOptFlags extends CEnumU[CXGlobalOptFlags]: inline def is(b: CXGlobalOptFlags): Boolean = (a & b) == b end CXGlobalOptFlags -/** [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h +/** [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXIdxAttrKind = CUnsignedInt object CXIdxAttrKind extends CEnumU[CXIdxAttrKind]: @@ -1165,7 +1311,7 @@ object CXIdxAttrKind extends CEnumU[CXIdxAttrKind]: inline def is(b: CXIdxAttrKind): Boolean = (a & b) == b end CXIdxAttrKind -/** [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h +/** [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXIdxDeclInfoFlags = CUnsignedInt object CXIdxDeclInfoFlags extends CEnumU[CXIdxDeclInfoFlags]: @@ -1187,7 +1333,7 @@ end CXIdxDeclInfoFlags * CXIdxEntity_CXXInstanceMethod CXIdxEntity_CXXConstructor * CXIdxEntity_CXXConversionFunction CXIdxEntity_CXXTypeAlias * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXIdxEntityCXXTemplateKind = CUnsignedInt object CXIdxEntityCXXTemplateKind extends CEnumU[CXIdxEntityCXXTemplateKind]: @@ -1214,7 +1360,7 @@ object CXIdxEntityCXXTemplateKind extends CEnumU[CXIdxEntityCXXTemplateKind]: inline def is(b: CXIdxEntityCXXTemplateKind): Boolean = (a & b) == b end CXIdxEntityCXXTemplateKind -/** [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h +/** [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXIdxEntityKind = CUnsignedInt object CXIdxEntityKind extends CEnumU[CXIdxEntityKind]: @@ -1247,6 +1393,7 @@ object CXIdxEntityKind extends CEnumU[CXIdxEntityKind]: val CXIdxEntity_CXXConversionFunction = define(24) val CXIdxEntity_CXXTypeAlias = define(25) val CXIdxEntity_CXXInterface = define(26) + val CXIdxEntity_CXXConcept = define(27) inline def getName(inline value: CXIdxEntityKind): Option[String] = inline value match case CXIdxEntity_Unexposed => Some("CXIdxEntity_Unexposed") @@ -1281,6 +1428,7 @@ object CXIdxEntityKind extends CEnumU[CXIdxEntityKind]: Some("CXIdxEntity_CXXConversionFunction") case CXIdxEntity_CXXTypeAlias => Some("CXIdxEntity_CXXTypeAlias") case CXIdxEntity_CXXInterface => Some("CXIdxEntity_CXXInterface") + case CXIdxEntity_CXXConcept => Some("CXIdxEntity_CXXConcept") case _ => None extension (a: CXIdxEntityKind) inline def &(b: CXIdxEntityKind): CXIdxEntityKind = a & b @@ -1288,7 +1436,7 @@ object CXIdxEntityKind extends CEnumU[CXIdxEntityKind]: inline def is(b: CXIdxEntityKind): Boolean = (a & b) == b end CXIdxEntityKind -/** [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h +/** [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXIdxEntityLanguage = CUnsignedInt object CXIdxEntityLanguage extends CEnumU[CXIdxEntityLanguage]: @@ -1315,7 +1463,7 @@ end CXIdxEntityLanguage /** Data for IndexerCallbacks#indexEntityReference. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXIdxEntityRefKind = CUnsignedInt object CXIdxEntityRefKind extends CEnumU[CXIdxEntityRefKind]: @@ -1334,7 +1482,7 @@ object CXIdxEntityRefKind extends CEnumU[CXIdxEntityRefKind]: inline def is(b: CXIdxEntityRefKind): Boolean = (a & b) == b end CXIdxEntityRefKind -/** [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h +/** [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXIdxObjCContainerKind = CUnsignedInt object CXIdxObjCContainerKind extends CEnumU[CXIdxObjCContainerKind]: @@ -1357,7 +1505,7 @@ object CXIdxObjCContainerKind extends CEnumU[CXIdxObjCContainerKind]: inline def is(b: CXIdxObjCContainerKind): Boolean = (a & b) == b end CXIdxObjCContainerKind -/** [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h +/** [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXIndexOptFlags = CUnsignedInt object CXIndexOptFlags extends CEnumU[CXIndexOptFlags]: @@ -1390,7 +1538,7 @@ end CXIndexOptFlags /** Describe the "language" of the entity referred to by a cursor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXLanguageKind = CUnsignedInt object CXLanguageKind extends CEnumU[CXLanguageKind]: @@ -1415,7 +1563,7 @@ end CXLanguageKind /** Describe the linkage of the entity referred to by a cursor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXLinkageKind = CUnsignedInt object CXLinkageKind extends CEnumU[CXLinkageKind]: @@ -1443,7 +1591,7 @@ end CXLinkageKind /** Describes the kind of error that occurred (if any) in a call to * clang_loadDiagnostics. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/CXDiagnostic.h */ opaque type CXLoadDiag_Error = CUnsignedInt object CXLoadDiag_Error extends CEnumU[CXLoadDiag_Error]: @@ -1466,7 +1614,7 @@ object CXLoadDiag_Error extends CEnumU[CXLoadDiag_Error]: inline def is(b: CXLoadDiag_Error): Boolean = (a & b) == b end CXLoadDiag_Error -/** [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h +/** [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXNameRefFlags = CUnsignedInt object CXNameRefFlags extends CEnumU[CXNameRefFlags]: @@ -1490,7 +1638,7 @@ end CXNameRefFlags /** 'Qualifiers' written next to the return and parameter types in Objective-C * method declarations. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXObjCDeclQualifierKind = CUnsignedInt object CXObjCDeclQualifierKind extends CEnumU[CXObjCDeclQualifierKind]: @@ -1521,7 +1669,7 @@ end CXObjCDeclQualifierKind /** Property attributes for a CXCursor_ObjCPropertyDecl. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXObjCPropertyAttrKind = CUnsignedInt object CXObjCPropertyAttrKind extends CEnumU[CXObjCPropertyAttrKind]: @@ -1567,7 +1715,7 @@ end CXObjCPropertyAttrKind /** Properties for the printing policy. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXPrintingPolicyProperty = CUnsignedInt object CXPrintingPolicyProperty extends CEnumU[CXPrintingPolicyProperty]: @@ -1656,7 +1804,7 @@ object CXPrintingPolicyProperty extends CEnumU[CXPrintingPolicyProperty]: inline def is(b: CXPrintingPolicyProperty): Boolean = (a & b) == b end CXPrintingPolicyProperty -/** [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h +/** [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXRefQualifierKind = CUnsignedInt object CXRefQualifierKind extends CEnumU[CXRefQualifierKind]: @@ -1679,7 +1827,7 @@ end CXRefQualifierKind /** Flags that control the reparsing of translation units. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXReparse_Flags = CUnsignedInt object CXReparse_Flags extends CEnumU[CXReparse_Flags]: @@ -1696,7 +1844,7 @@ object CXReparse_Flags extends CEnumU[CXReparse_Flags]: inline def is(b: CXReparse_Flags): Boolean = (a & b) == b end CXReparse_Flags -/** [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h +/** [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXResult = CUnsignedInt object CXResult extends CEnumU[CXResult]: @@ -1720,7 +1868,7 @@ end CXResult /** Describes the kind of error that occurred (if any) in a call to * clang_saveTranslationUnit(). * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXSaveError = CUnsignedInt object CXSaveError extends CEnumU[CXSaveError]: @@ -1746,7 +1894,7 @@ end CXSaveError /** Flags that control how translation units are saved. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXSaveTranslationUnit_Flags = CUnsignedInt object CXSaveTranslationUnit_Flags extends CEnumU[CXSaveTranslationUnit_Flags]: @@ -1769,7 +1917,7 @@ end CXSaveTranslationUnit_Flags /** Roles that are attributed to symbol occurrences. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXSymbolRole = CUnsignedInt object CXSymbolRole extends CEnumU[CXSymbolRole]: @@ -1807,7 +1955,7 @@ end CXSymbolRole /** Describe the "thread-local storage (TLS) kind" of the declaration referred * to by a cursor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXTLSKind = CUnsignedInt object CXTLSKind extends CEnumU[CXTLSKind]: @@ -1830,7 +1978,7 @@ end CXTLSKind /** Categorizes how memory is being used by a translation unit. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXTUResourceUsageKind = CUnsignedInt object CXTUResourceUsageKind extends CEnumU[CXTUResourceUsageKind]: @@ -1897,7 +2045,7 @@ end CXTUResourceUsageKind /** Describes the kind of a template argument. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXTemplateArgumentKind = CUnsignedInt object CXTemplateArgumentKind extends CEnumU[CXTemplateArgumentKind]: @@ -1941,7 +2089,7 @@ end CXTemplateArgumentKind /** Describes a kind of token. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXTokenKind = CUnsignedInt object CXTokenKind extends CEnumU[CXTokenKind]: @@ -1968,7 +2116,7 @@ end CXTokenKind /** Flags that control the creation of translation units. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXTranslationUnit_Flags = CUnsignedInt object CXTranslationUnit_Flags extends CEnumU[CXTranslationUnit_Flags]: @@ -2033,7 +2181,7 @@ end CXTranslationUnit_Flags /** Describes the kind of type * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXTypeKind = CUnsignedInt object CXTypeKind extends CEnumU[CXTypeKind]: @@ -2154,12 +2302,17 @@ object CXTypeKind extends CEnumU[CXTypeKind]: val CXType_OCLIntelSubgroupAVCImeResult = define(169) val CXType_OCLIntelSubgroupAVCRefResult = define(170) val CXType_OCLIntelSubgroupAVCSicResult = define(171) + val CXType_OCLIntelSubgroupAVCImeResultSingleReferenceStreamout = define(172) + val CXType_OCLIntelSubgroupAVCImeResultDualReferenceStreamout = define(173) + val CXType_OCLIntelSubgroupAVCImeSingleReferenceStreamin = define(174) + val CXType_OCLIntelSubgroupAVCImeDualReferenceStreamin = define(175) val CXType_OCLIntelSubgroupAVCImeResultSingleRefStreamout = define(172) val CXType_OCLIntelSubgroupAVCImeResultDualRefStreamout = define(173) val CXType_OCLIntelSubgroupAVCImeSingleRefStreamin = define(174) val CXType_OCLIntelSubgroupAVCImeDualRefStreamin = define(175) val CXType_ExtVector = define(176) val CXType_Atomic = define(177) + val CXType_BTFTagAttributed = define(178) inline def getName(inline value: CXTypeKind): Option[String] = inline value match case CXType_Invalid => Some("CXType_Invalid") @@ -2291,6 +2444,14 @@ object CXTypeKind extends CEnumU[CXTypeKind]: Some("CXType_OCLIntelSubgroupAVCRefResult") case CXType_OCLIntelSubgroupAVCSicResult => Some("CXType_OCLIntelSubgroupAVCSicResult") + case CXType_OCLIntelSubgroupAVCImeResultSingleReferenceStreamout => + Some("CXType_OCLIntelSubgroupAVCImeResultSingleReferenceStreamout") + case CXType_OCLIntelSubgroupAVCImeResultDualReferenceStreamout => + Some("CXType_OCLIntelSubgroupAVCImeResultDualReferenceStreamout") + case CXType_OCLIntelSubgroupAVCImeSingleReferenceStreamin => + Some("CXType_OCLIntelSubgroupAVCImeSingleReferenceStreamin") + case CXType_OCLIntelSubgroupAVCImeDualReferenceStreamin => + Some("CXType_OCLIntelSubgroupAVCImeDualReferenceStreamin") case CXType_OCLIntelSubgroupAVCImeResultSingleRefStreamout => Some("CXType_OCLIntelSubgroupAVCImeResultSingleRefStreamout") case CXType_OCLIntelSubgroupAVCImeResultDualRefStreamout => @@ -2299,9 +2460,10 @@ object CXTypeKind extends CEnumU[CXTypeKind]: Some("CXType_OCLIntelSubgroupAVCImeSingleRefStreamin") case CXType_OCLIntelSubgroupAVCImeDualRefStreamin => Some("CXType_OCLIntelSubgroupAVCImeDualRefStreamin") - case CXType_ExtVector => Some("CXType_ExtVector") - case CXType_Atomic => Some("CXType_Atomic") - case _ => None + case CXType_ExtVector => Some("CXType_ExtVector") + case CXType_Atomic => Some("CXType_Atomic") + case CXType_BTFTagAttributed => Some("CXType_BTFTagAttributed") + case _ => None extension (a: CXTypeKind) inline def &(b: CXTypeKind): CXTypeKind = a & b inline def |(b: CXTypeKind): CXTypeKind = a | b @@ -2311,7 +2473,7 @@ end CXTypeKind /** List the possible error codes for clang_Type_getSizeOf, * clang_Type_getAlignOf, clang_Type_getOffsetOf and clang_Cursor_getOffsetOf. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXTypeLayoutError = CInt object CXTypeLayoutError extends CEnum[CXTypeLayoutError]: @@ -2340,7 +2502,7 @@ object CXTypeLayoutError extends CEnum[CXTypeLayoutError]: inline def is(b: CXTypeLayoutError): Boolean = (a & b) == b end CXTypeLayoutError -/** [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h +/** [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXTypeNullabilityKind = CUnsignedInt object CXTypeNullabilityKind extends CEnumU[CXTypeNullabilityKind]: @@ -2367,7 +2529,54 @@ object CXTypeNullabilityKind extends CEnumU[CXTypeNullabilityKind]: inline def is(b: CXTypeNullabilityKind): Boolean = (a & b) == b end CXTypeNullabilityKind -/** [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h +/** Describes the kind of unary operators. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +opaque type CXUnaryOperatorKind = CUnsignedInt +object CXUnaryOperatorKind extends CEnumU[CXUnaryOperatorKind]: + given _tag: Tag[CXUnaryOperatorKind] = Tag.UInt + inline def define(inline a: Long): CXUnaryOperatorKind = a.toUInt + val CXUnaryOperator_Invalid = define(0) + val CXUnaryOperator_PostInc = define(1) + val CXUnaryOperator_PostDec = define(2) + val CXUnaryOperator_PreInc = define(3) + val CXUnaryOperator_PreDec = define(4) + val CXUnaryOperator_AddrOf = define(5) + val CXUnaryOperator_Deref = define(6) + val CXUnaryOperator_Plus = define(7) + val CXUnaryOperator_Minus = define(8) + val CXUnaryOperator_Not = define(9) + val CXUnaryOperator_LNot = define(10) + val CXUnaryOperator_Real = define(11) + val CXUnaryOperator_Imag = define(12) + val CXUnaryOperator_Extension = define(13) + val CXUnaryOperator_Coawait = define(14) + inline def getName(inline value: CXUnaryOperatorKind): Option[String] = + inline value match + case CXUnaryOperator_Invalid => Some("CXUnaryOperator_Invalid") + case CXUnaryOperator_PostInc => Some("CXUnaryOperator_PostInc") + case CXUnaryOperator_PostDec => Some("CXUnaryOperator_PostDec") + case CXUnaryOperator_PreInc => Some("CXUnaryOperator_PreInc") + case CXUnaryOperator_PreDec => Some("CXUnaryOperator_PreDec") + case CXUnaryOperator_AddrOf => Some("CXUnaryOperator_AddrOf") + case CXUnaryOperator_Deref => Some("CXUnaryOperator_Deref") + case CXUnaryOperator_Plus => Some("CXUnaryOperator_Plus") + case CXUnaryOperator_Minus => Some("CXUnaryOperator_Minus") + case CXUnaryOperator_Not => Some("CXUnaryOperator_Not") + case CXUnaryOperator_LNot => Some("CXUnaryOperator_LNot") + case CXUnaryOperator_Real => Some("CXUnaryOperator_Real") + case CXUnaryOperator_Imag => Some("CXUnaryOperator_Imag") + case CXUnaryOperator_Extension => Some("CXUnaryOperator_Extension") + case CXUnaryOperator_Coawait => Some("CXUnaryOperator_Coawait") + case _ => None + extension (a: CXUnaryOperatorKind) + inline def &(b: CXUnaryOperatorKind): CXUnaryOperatorKind = a & b + inline def |(b: CXUnaryOperatorKind): CXUnaryOperatorKind = a | b + inline def is(b: CXUnaryOperatorKind): Boolean = (a & b) == b +end CXUnaryOperatorKind + +/** [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXVisibilityKind = CUnsignedInt object CXVisibilityKind extends CEnumU[CXVisibilityKind]: @@ -2392,7 +2601,7 @@ end CXVisibilityKind /** @{ * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXVisitorResult = CUnsignedInt object CXVisitorResult extends CEnumU[CXVisitorResult]: @@ -2414,7 +2623,7 @@ end CXVisitorResult /** Represents the C++ access control level to a base class for a cursor with * kind CX_CXXBaseSpecifier. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CX_CXXAccessSpecifier = CUnsignedInt object CX_CXXAccessSpecifier extends CEnumU[CX_CXXAccessSpecifier]: @@ -2440,7 +2649,7 @@ end CX_CXXAccessSpecifier /** Represents the storage classes as declared in the source. CX_SC_Invalid was * added for the case that the passed cursor in not a declaration. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CX_StorageClass = CUnsignedInt object CX_StorageClass extends CEnumU[CX_StorageClass]: diff --git a/modules/libclang/src/main/scala/generated/libclang/functions.scala b/modules/libclang/src/main/scala/generated/libclang/functions.scala index fb9112d3..2c20e2cc 100644 --- a/modules/libclang/src/main/scala/generated/libclang/functions.scala +++ b/modules/libclang/src/main/scala/generated/libclang/functions.scala @@ -1,2107 +1,2184 @@ package libclang -package functions import _root_.scala.scalanative.unsafe.* import _root_.scala.scalanative.unsigned.* import _root_.scala.scalanative.libc.* import _root_.scala.scalanative.* -import _root_.libclang.enumerations.* -import _root_.libclang.aliases.* -import _root_.libclang.structs.* - -@extern -private[libclang] object extern_functions: - private[libclang] def __sn_wrap_libclang_clang_CXCursorSet_contains( - cset: CXCursorSet, - cursor: Ptr[CXCursor] - ): CUnsignedInt = extern - - private[libclang] def __sn_wrap_libclang_clang_CXCursorSet_insert( - cset: CXCursorSet, - cursor: Ptr[CXCursor] - ): CUnsignedInt = extern - - private[libclang] def __sn_wrap_libclang_clang_CXXConstructor_isConvertingConstructor( - C: Ptr[CXCursor] - ): CUnsignedInt = extern - - private[libclang] def __sn_wrap_libclang_clang_CXXConstructor_isCopyConstructor( - C: Ptr[CXCursor] - ): CUnsignedInt = extern - - private[libclang] def __sn_wrap_libclang_clang_CXXConstructor_isDefaultConstructor( - C: Ptr[CXCursor] - ): CUnsignedInt = extern - - private[libclang] def __sn_wrap_libclang_clang_CXXConstructor_isMoveConstructor( - C: Ptr[CXCursor] - ): CUnsignedInt = extern - - private[libclang] def __sn_wrap_libclang_clang_CXXField_isMutable( - C: Ptr[CXCursor] - ): CUnsignedInt = extern - - private[libclang] def __sn_wrap_libclang_clang_CXXMethod_isConst( - C: Ptr[CXCursor] - ): CUnsignedInt = extern - - private[libclang] def __sn_wrap_libclang_clang_CXXMethod_isDefaulted( - C: Ptr[CXCursor] - ): CUnsignedInt = extern - - private[libclang] def __sn_wrap_libclang_clang_CXXMethod_isPureVirtual( - C: Ptr[CXCursor] - ): CUnsignedInt = extern - - private[libclang] def __sn_wrap_libclang_clang_CXXMethod_isStatic( - C: Ptr[CXCursor] - ): CUnsignedInt = extern - - private[libclang] def __sn_wrap_libclang_clang_CXXMethod_isVirtual( - C: Ptr[CXCursor] - ): CUnsignedInt = extern - - private[libclang] def __sn_wrap_libclang_clang_CXXRecord_isAbstract( - C: Ptr[CXCursor] - ): CUnsignedInt = extern - - private[libclang] def __sn_wrap_libclang_clang_Cursor_Evaluate( - C: Ptr[CXCursor] - ): CXEvalResult = extern - - private[libclang] def __sn_wrap_libclang_clang_Cursor_getArgument( - C: Ptr[CXCursor], - i: CUnsignedInt, - __return: Ptr[CXCursor] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_Cursor_getBriefCommentText( - C: Ptr[CXCursor], - __return: Ptr[CXString] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_Cursor_getCXXManglings( - _0: Ptr[CXCursor] - ): Ptr[CXStringSet] = extern - - private[libclang] def __sn_wrap_libclang_clang_Cursor_getCommentRange( - C: Ptr[CXCursor], - __return: Ptr[CXSourceRange] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_Cursor_getMangling( - _0: Ptr[CXCursor], - __return: Ptr[CXString] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_Cursor_getModule( - C: Ptr[CXCursor] - ): CXModule = extern - - private[libclang] def __sn_wrap_libclang_clang_Cursor_getNumArguments( - C: Ptr[CXCursor] - ): CInt = extern - - private[libclang] def __sn_wrap_libclang_clang_Cursor_getNumTemplateArguments( - C: Ptr[CXCursor] - ): CInt = extern - - private[libclang] def __sn_wrap_libclang_clang_Cursor_getObjCDeclQualifiers( - C: Ptr[CXCursor] - ): CUnsignedInt = extern - - private[libclang] def __sn_wrap_libclang_clang_Cursor_getObjCManglings( - _0: Ptr[CXCursor] - ): Ptr[CXStringSet] = extern - - private[libclang] def __sn_wrap_libclang_clang_Cursor_getObjCPropertyAttributes( - C: Ptr[CXCursor], - reserved: CUnsignedInt - ): CUnsignedInt = extern - - private[libclang] def __sn_wrap_libclang_clang_Cursor_getObjCPropertyGetterName( - C: Ptr[CXCursor], - __return: Ptr[CXString] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_Cursor_getObjCPropertySetterName( - C: Ptr[CXCursor], - __return: Ptr[CXString] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_Cursor_getObjCSelectorIndex( - _0: Ptr[CXCursor] - ): CInt = extern - - private[libclang] def __sn_wrap_libclang_clang_Cursor_getOffsetOfField( - C: Ptr[CXCursor] - ): CLongLong = extern - - private[libclang] def __sn_wrap_libclang_clang_Cursor_getRawCommentText( - C: Ptr[CXCursor], - __return: Ptr[CXString] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_Cursor_getReceiverType( - C: Ptr[CXCursor], - __return: Ptr[CXType] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_Cursor_getSpellingNameRange( - _0: Ptr[CXCursor], - pieceIndex: CUnsignedInt, - options: CUnsignedInt, - __return: Ptr[CXSourceRange] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_Cursor_getStorageClass( - _0: Ptr[CXCursor] - ): CX_StorageClass = extern - - private[libclang] def __sn_wrap_libclang_clang_Cursor_getTemplateArgumentKind( - C: Ptr[CXCursor], - I: CUnsignedInt - ): CXTemplateArgumentKind = extern - - private[libclang] def __sn_wrap_libclang_clang_Cursor_getTemplateArgumentType( - C: Ptr[CXCursor], - I: CUnsignedInt, - __return: Ptr[CXType] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_Cursor_getTemplateArgumentUnsignedValue( - C: Ptr[CXCursor], - I: CUnsignedInt - ): CUnsignedLongLong = extern - - private[libclang] def __sn_wrap_libclang_clang_Cursor_getTemplateArgumentValue( - C: Ptr[CXCursor], - I: CUnsignedInt - ): CLongLong = extern - - private[libclang] def __sn_wrap_libclang_clang_Cursor_getTranslationUnit( - _0: Ptr[CXCursor] - ): CXTranslationUnit = extern - - private[libclang] def __sn_wrap_libclang_clang_Cursor_getVarDeclInitializer( - cursor: Ptr[CXCursor], - __return: Ptr[CXCursor] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_Cursor_hasAttrs( - C: Ptr[CXCursor] - ): CUnsignedInt = extern - - private[libclang] def __sn_wrap_libclang_clang_Cursor_hasVarDeclExternalStorage( - cursor: Ptr[CXCursor] - ): CInt = extern - - private[libclang] def __sn_wrap_libclang_clang_Cursor_hasVarDeclGlobalStorage( - cursor: Ptr[CXCursor] - ): CInt = extern - - private[libclang] def __sn_wrap_libclang_clang_Cursor_isAnonymous( - C: Ptr[CXCursor] - ): CUnsignedInt = extern - - private[libclang] def __sn_wrap_libclang_clang_Cursor_isAnonymousRecordDecl( - C: Ptr[CXCursor] - ): CUnsignedInt = extern - - private[libclang] def __sn_wrap_libclang_clang_Cursor_isBitField( - C: Ptr[CXCursor] - ): CUnsignedInt = extern - - private[libclang] def __sn_wrap_libclang_clang_Cursor_isDynamicCall( - C: Ptr[CXCursor] - ): CInt = extern - - private[libclang] def __sn_wrap_libclang_clang_Cursor_isExternalSymbol( - C: Ptr[CXCursor], - language: Ptr[CXString], - definedIn: Ptr[CXString], - isGenerated: Ptr[CUnsignedInt] - ): CUnsignedInt = extern - - private[libclang] def __sn_wrap_libclang_clang_Cursor_isFunctionInlined( - C: Ptr[CXCursor] - ): CUnsignedInt = extern - - private[libclang] def __sn_wrap_libclang_clang_Cursor_isInlineNamespace( - C: Ptr[CXCursor] - ): CUnsignedInt = extern - - private[libclang] def __sn_wrap_libclang_clang_Cursor_isMacroBuiltin( - C: Ptr[CXCursor] - ): CUnsignedInt = extern - - private[libclang] def __sn_wrap_libclang_clang_Cursor_isMacroFunctionLike( - C: Ptr[CXCursor] - ): CUnsignedInt = extern - - private[libclang] def __sn_wrap_libclang_clang_Cursor_isNull( - cursor: Ptr[CXCursor] - ): CInt = extern - - private[libclang] def __sn_wrap_libclang_clang_Cursor_isObjCOptional( - C: Ptr[CXCursor] - ): CUnsignedInt = extern - - private[libclang] def __sn_wrap_libclang_clang_Cursor_isVariadic( - C: Ptr[CXCursor] - ): CUnsignedInt = extern - - private[libclang] def __sn_wrap_libclang_clang_EnumDecl_isScoped( - C: Ptr[CXCursor] - ): CUnsignedInt = extern - - private[libclang] def __sn_wrap_libclang_clang_File_tryGetRealPathName( - file: CXFile, - __return: Ptr[CXString] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_Location_isFromMainFile( - location: Ptr[CXSourceLocation] - ): CInt = extern - - private[libclang] def __sn_wrap_libclang_clang_Location_isInSystemHeader( - location: Ptr[CXSourceLocation] - ): CInt = extern - - private[libclang] def __sn_wrap_libclang_clang_Module_getFullName( - Module: CXModule, - __return: Ptr[CXString] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_Module_getName( - Module: CXModule, - __return: Ptr[CXString] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_Range_isNull( - range: Ptr[CXSourceRange] - ): CInt = extern - - private[libclang] def __sn_wrap_libclang_clang_TargetInfo_getTriple( - Info: CXTargetInfo, - __return: Ptr[CXString] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_Type_getAlignOf( - T: Ptr[CXType] - ): CLongLong = extern - - private[libclang] def __sn_wrap_libclang_clang_Type_getCXXRefQualifier( - T: Ptr[CXType] - ): CXRefQualifierKind = extern - - private[libclang] def __sn_wrap_libclang_clang_Type_getClassType( - T: Ptr[CXType], - __return: Ptr[CXType] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_Type_getModifiedType( - T: Ptr[CXType], - __return: Ptr[CXType] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_Type_getNamedType( - T: Ptr[CXType], - __return: Ptr[CXType] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_Type_getNullability( - T: Ptr[CXType] - ): CXTypeNullabilityKind = extern - - private[libclang] def __sn_wrap_libclang_clang_Type_getNumObjCProtocolRefs( - T: Ptr[CXType] - ): CUnsignedInt = extern - - private[libclang] def __sn_wrap_libclang_clang_Type_getNumObjCTypeArgs( - T: Ptr[CXType] - ): CUnsignedInt = extern - - private[libclang] def __sn_wrap_libclang_clang_Type_getNumTemplateArguments( - T: Ptr[CXType] - ): CInt = extern - - private[libclang] def __sn_wrap_libclang_clang_Type_getObjCEncoding( - `type`: Ptr[CXType], - __return: Ptr[CXString] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_Type_getObjCObjectBaseType( - T: Ptr[CXType], - __return: Ptr[CXType] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_Type_getObjCProtocolDecl( - T: Ptr[CXType], - i: CUnsignedInt, - __return: Ptr[CXCursor] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_Type_getObjCTypeArg( - T: Ptr[CXType], - i: CUnsignedInt, - __return: Ptr[CXType] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_Type_getOffsetOf( - T: Ptr[CXType], - S: CString - ): CLongLong = extern - - private[libclang] def __sn_wrap_libclang_clang_Type_getSizeOf( - T: Ptr[CXType] - ): CLongLong = extern - - private[libclang] def __sn_wrap_libclang_clang_Type_getTemplateArgumentAsType( - T: Ptr[CXType], - i: CUnsignedInt, - __return: Ptr[CXType] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_Type_getValueType( - CT: Ptr[CXType], - __return: Ptr[CXType] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_Type_isTransparentTagTypedef( - T: Ptr[CXType] - ): CUnsignedInt = extern - - private[libclang] def __sn_wrap_libclang_clang_Type_visitFields( - T: Ptr[CXType], - visitor: CXFieldVisitor, - client_data: CXClientData - ): CUnsignedInt = extern - - private[libclang] def __sn_wrap_libclang_clang_codeCompleteGetContainerUSR( - Results: Ptr[CXCodeCompleteResults], - __return: Ptr[CXString] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_codeCompleteGetObjCSelector( - Results: Ptr[CXCodeCompleteResults], - __return: Ptr[CXString] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_constructUSR_ObjCCategory( - class_name: CString, - category_name: CString, - __return: Ptr[CXString] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_constructUSR_ObjCClass( - class_name: CString, - __return: Ptr[CXString] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_constructUSR_ObjCIvar( - name: CString, - classUSR: Ptr[CXString], - __return: Ptr[CXString] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_constructUSR_ObjCMethod( - name: CString, - isInstanceMethod: CUnsignedInt, - classUSR: Ptr[CXString], - __return: Ptr[CXString] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_constructUSR_ObjCProperty( - property: CString, - classUSR: Ptr[CXString], - __return: Ptr[CXString] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_constructUSR_ObjCProtocol( - protocol_name: CString, - __return: Ptr[CXString] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_disposeCXTUResourceUsage( - usage: Ptr[CXTUResourceUsage] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_disposeString( - string: Ptr[CXString] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_equalCursors( - _0: Ptr[CXCursor], - _1: Ptr[CXCursor] - ): CUnsignedInt = extern - - private[libclang] def __sn_wrap_libclang_clang_equalLocations( - loc1: Ptr[CXSourceLocation], - loc2: Ptr[CXSourceLocation] - ): CUnsignedInt = extern - - private[libclang] def __sn_wrap_libclang_clang_equalRanges( - range1: Ptr[CXSourceRange], - range2: Ptr[CXSourceRange] - ): CUnsignedInt = extern - - private[libclang] def __sn_wrap_libclang_clang_equalTypes( - A: Ptr[CXType], - B: Ptr[CXType] - ): CUnsignedInt = extern - - private[libclang] def __sn_wrap_libclang_clang_findIncludesInFile( - TU: CXTranslationUnit, - file: CXFile, - visitor: Ptr[CXCursorAndRangeVisitor] - ): CXResult = extern - - private[libclang] def __sn_wrap_libclang_clang_findReferencesInFile( - cursor: Ptr[CXCursor], - file: CXFile, - visitor: Ptr[CXCursorAndRangeVisitor] - ): CXResult = extern - - private[libclang] def __sn_wrap_libclang_clang_formatDiagnostic( - Diagnostic: CXDiagnostic, - Options: CUnsignedInt, - __return: Ptr[CXString] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_getAddressSpace( - T: Ptr[CXType] - ): CUnsignedInt = extern - - private[libclang] def __sn_wrap_libclang_clang_getArgType( - T: Ptr[CXType], - i: CUnsignedInt, - __return: Ptr[CXType] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_getArrayElementType( - T: Ptr[CXType], - __return: Ptr[CXType] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_getArraySize( - T: Ptr[CXType] - ): CLongLong = extern - - private[libclang] def __sn_wrap_libclang_clang_getCString( - string: Ptr[CXString] - ): CString = extern - - private[libclang] def __sn_wrap_libclang_clang_getCXTUResourceUsage( - TU: CXTranslationUnit, - __return: Ptr[CXTUResourceUsage] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_getCXXAccessSpecifier( - _0: Ptr[CXCursor] - ): CX_CXXAccessSpecifier = extern - - private[libclang] def __sn_wrap_libclang_clang_getCanonicalCursor( - _0: Ptr[CXCursor], - __return: Ptr[CXCursor] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_getCanonicalType( - T: Ptr[CXType], - __return: Ptr[CXType] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_getClangVersion( - __return: Ptr[CXString] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_getCompletionAnnotation( - completion_string: CXCompletionString, - annotation_number: CUnsignedInt, - __return: Ptr[CXString] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_getCompletionBriefComment( - completion_string: CXCompletionString, - __return: Ptr[CXString] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_getCompletionChunkText( - completion_string: CXCompletionString, - chunk_number: CUnsignedInt, - __return: Ptr[CXString] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_getCompletionFixIt( - results: Ptr[CXCodeCompleteResults], - completion_index: CUnsignedInt, - fixit_index: CUnsignedInt, - replacement_range: Ptr[CXSourceRange], - __return: Ptr[CXString] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_getCompletionParent( - completion_string: CXCompletionString, - kind: Ptr[CXCursorKind], - __return: Ptr[CXString] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_getCursor( - _0: CXTranslationUnit, - _1: Ptr[CXSourceLocation], - __return: Ptr[CXCursor] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_getCursorAvailability( - cursor: Ptr[CXCursor] - ): CXAvailabilityKind = extern - - private[libclang] def __sn_wrap_libclang_clang_getCursorCompletionString( - cursor: Ptr[CXCursor] - ): CXCompletionString = extern - - private[libclang] def __sn_wrap_libclang_clang_getCursorDefinition( - _0: Ptr[CXCursor], - __return: Ptr[CXCursor] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_getCursorDisplayName( - _0: Ptr[CXCursor], - __return: Ptr[CXString] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_getCursorExceptionSpecificationType( - C: Ptr[CXCursor] - ): CInt = extern - - private[libclang] def __sn_wrap_libclang_clang_getCursorExtent( - _0: Ptr[CXCursor], - __return: Ptr[CXSourceRange] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_getCursorKind( - _0: Ptr[CXCursor] - ): CXCursorKind = extern - - private[libclang] def __sn_wrap_libclang_clang_getCursorKindSpelling( - Kind: CXCursorKind, - __return: Ptr[CXString] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_getCursorLanguage( - cursor: Ptr[CXCursor] - ): CXLanguageKind = extern - - private[libclang] def __sn_wrap_libclang_clang_getCursorLexicalParent( - cursor: Ptr[CXCursor], - __return: Ptr[CXCursor] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_getCursorLinkage( - cursor: Ptr[CXCursor] - ): CXLinkageKind = extern - - private[libclang] def __sn_wrap_libclang_clang_getCursorLocation( - _0: Ptr[CXCursor], - __return: Ptr[CXSourceLocation] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_getCursorPlatformAvailability( - cursor: Ptr[CXCursor], - always_deprecated: Ptr[CInt], - deprecated_message: Ptr[CXString], - always_unavailable: Ptr[CInt], - unavailable_message: Ptr[CXString], - availability: Ptr[CXPlatformAvailability], - availability_size: CInt - ): CInt = extern - - private[libclang] def __sn_wrap_libclang_clang_getCursorPrettyPrinted( - Cursor: Ptr[CXCursor], - Policy: CXPrintingPolicy, - __return: Ptr[CXString] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_getCursorPrintingPolicy( - _0: Ptr[CXCursor] - ): CXPrintingPolicy = extern - - private[libclang] def __sn_wrap_libclang_clang_getCursorReferenceNameRange( - C: Ptr[CXCursor], - NameFlags: CUnsignedInt, - PieceIndex: CUnsignedInt, - __return: Ptr[CXSourceRange] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_getCursorReferenced( - _0: Ptr[CXCursor], - __return: Ptr[CXCursor] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_getCursorResultType( - C: Ptr[CXCursor], - __return: Ptr[CXType] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_getCursorSemanticParent( - cursor: Ptr[CXCursor], - __return: Ptr[CXCursor] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_getCursorSpelling( - _0: Ptr[CXCursor], - __return: Ptr[CXString] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_getCursorTLSKind( - cursor: Ptr[CXCursor] - ): CXTLSKind = extern - - private[libclang] def __sn_wrap_libclang_clang_getCursorType( - C: Ptr[CXCursor], - __return: Ptr[CXType] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_getCursorUSR( - _0: Ptr[CXCursor], - __return: Ptr[CXString] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_getCursorVisibility( - cursor: Ptr[CXCursor] - ): CXVisibilityKind = extern - - private[libclang] def __sn_wrap_libclang_clang_getDeclObjCTypeEncoding( - C: Ptr[CXCursor], - __return: Ptr[CXString] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_getDefinitionSpellingAndExtent( - _0: Ptr[CXCursor], - startBuf: Ptr[CString], - endBuf: Ptr[CString], - startLine: Ptr[CUnsignedInt], - startColumn: Ptr[CUnsignedInt], - endLine: Ptr[CUnsignedInt], - endColumn: Ptr[CUnsignedInt] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_getDiagnosticCategoryName( - Category: CUnsignedInt, - __return: Ptr[CXString] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_getDiagnosticCategoryText( - _0: CXDiagnostic, - __return: Ptr[CXString] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_getDiagnosticFixIt( - Diagnostic: CXDiagnostic, - FixIt: CUnsignedInt, - ReplacementRange: Ptr[CXSourceRange], - __return: Ptr[CXString] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_getDiagnosticLocation( - _0: CXDiagnostic, - __return: Ptr[CXSourceLocation] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_getDiagnosticOption( - Diag: CXDiagnostic, - Disable: Ptr[CXString], - __return: Ptr[CXString] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_getDiagnosticRange( - Diagnostic: CXDiagnostic, - Range: CUnsignedInt, - __return: Ptr[CXSourceRange] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_getDiagnosticSpelling( - _0: CXDiagnostic, - __return: Ptr[CXString] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_getElementType( - T: Ptr[CXType], - __return: Ptr[CXType] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_getEnumConstantDeclUnsignedValue( - C: Ptr[CXCursor] - ): CUnsignedLongLong = extern - - private[libclang] def __sn_wrap_libclang_clang_getEnumConstantDeclValue( - C: Ptr[CXCursor] - ): CLongLong = extern - - private[libclang] def __sn_wrap_libclang_clang_getEnumDeclIntegerType( - C: Ptr[CXCursor], - __return: Ptr[CXType] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_getExceptionSpecificationType( - T: Ptr[CXType] - ): CInt = extern - - private[libclang] def __sn_wrap_libclang_clang_getExpansionLocation( - location: Ptr[CXSourceLocation], - file: Ptr[CXFile], - line: Ptr[CUnsignedInt], - column: Ptr[CUnsignedInt], - offset: Ptr[CUnsignedInt] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_getFieldDeclBitWidth( - C: Ptr[CXCursor] - ): CInt = extern - - private[libclang] def __sn_wrap_libclang_clang_getFileLocation( - location: Ptr[CXSourceLocation], - file: Ptr[CXFile], - line: Ptr[CUnsignedInt], - column: Ptr[CUnsignedInt], - offset: Ptr[CUnsignedInt] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_getFileName( - SFile: CXFile, - __return: Ptr[CXString] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_getFunctionTypeCallingConv( - T: Ptr[CXType] - ): CXCallingConv = extern - - private[libclang] def __sn_wrap_libclang_clang_getIBOutletCollectionType( - _0: Ptr[CXCursor], - __return: Ptr[CXType] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_getIncludedFile( - cursor: Ptr[CXCursor] - ): CXFile = extern - - private[libclang] def __sn_wrap_libclang_clang_getInstantiationLocation( - location: Ptr[CXSourceLocation], - file: Ptr[CXFile], - line: Ptr[CUnsignedInt], - column: Ptr[CUnsignedInt], - offset: Ptr[CUnsignedInt] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_getLocation( - tu: CXTranslationUnit, - file: CXFile, - line: CUnsignedInt, - column: CUnsignedInt, - __return: Ptr[CXSourceLocation] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_getLocationForOffset( - tu: CXTranslationUnit, - file: CXFile, - offset: CUnsignedInt, - __return: Ptr[CXSourceLocation] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_getNullCursor( - __return: Ptr[CXCursor] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_getNullLocation( - __return: Ptr[CXSourceLocation] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_getNullRange( - __return: Ptr[CXSourceRange] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_getNumArgTypes( - T: Ptr[CXType] - ): CInt = extern - - private[libclang] def __sn_wrap_libclang_clang_getNumElements( - T: Ptr[CXType] - ): CLongLong = extern - - private[libclang] def __sn_wrap_libclang_clang_getNumOverloadedDecls( - cursor: Ptr[CXCursor] - ): CUnsignedInt = extern - - private[libclang] def __sn_wrap_libclang_clang_getOverloadedDecl( - cursor: Ptr[CXCursor], - index: CUnsignedInt, - __return: Ptr[CXCursor] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_getOverriddenCursors( - cursor: Ptr[CXCursor], - overridden: Ptr[Ptr[CXCursor]], - num_overridden: Ptr[CUnsignedInt] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_getPointeeType( - T: Ptr[CXType], - __return: Ptr[CXType] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_getPresumedLocation( - location: Ptr[CXSourceLocation], - filename: Ptr[CXString], - line: Ptr[CUnsignedInt], - column: Ptr[CUnsignedInt] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_getRange( - begin: Ptr[CXSourceLocation], - end: Ptr[CXSourceLocation], - __return: Ptr[CXSourceRange] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_getRangeEnd( - range: Ptr[CXSourceRange], - __return: Ptr[CXSourceLocation] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_getRangeStart( - range: Ptr[CXSourceRange], - __return: Ptr[CXSourceLocation] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_getResultType( - T: Ptr[CXType], - __return: Ptr[CXType] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_getSpecializedCursorTemplate( - C: Ptr[CXCursor], - __return: Ptr[CXCursor] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_getSpellingLocation( - location: Ptr[CXSourceLocation], - file: Ptr[CXFile], - line: Ptr[CUnsignedInt], - column: Ptr[CUnsignedInt], - offset: Ptr[CUnsignedInt] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_getTemplateCursorKind( - C: Ptr[CXCursor] - ): CXCursorKind = extern - - private[libclang] def __sn_wrap_libclang_clang_getToken( - TU: CXTranslationUnit, - Location: Ptr[CXSourceLocation] - ): Ptr[CXToken] = extern - - private[libclang] def __sn_wrap_libclang_clang_getTokenExtent( - _0: CXTranslationUnit, - _1: Ptr[CXToken], - __return: Ptr[CXSourceRange] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_getTokenKind( - _0: Ptr[CXToken] - ): CXTokenKind = extern - - private[libclang] def __sn_wrap_libclang_clang_getTokenLocation( - _0: CXTranslationUnit, - _1: Ptr[CXToken], - __return: Ptr[CXSourceLocation] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_getTokenSpelling( - _0: CXTranslationUnit, - _1: Ptr[CXToken], - __return: Ptr[CXString] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_getTranslationUnitCursor( - _0: CXTranslationUnit, - __return: Ptr[CXCursor] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_getTranslationUnitSpelling( - CTUnit: CXTranslationUnit, - __return: Ptr[CXString] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_getTypeDeclaration( - T: Ptr[CXType], - __return: Ptr[CXCursor] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_getTypeKindSpelling( - K: CXTypeKind, - __return: Ptr[CXString] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_getTypeSpelling( - CT: Ptr[CXType], - __return: Ptr[CXString] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_getTypedefDeclUnderlyingType( - C: Ptr[CXCursor], - __return: Ptr[CXType] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_getTypedefName( - CT: Ptr[CXType], - __return: Ptr[CXString] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_hashCursor( - _0: Ptr[CXCursor] - ): CUnsignedInt = extern - - private[libclang] def __sn_wrap_libclang_clang_indexLoc_getCXSourceLocation( - loc: Ptr[CXIdxLoc], - __return: Ptr[CXSourceLocation] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_indexLoc_getFileLocation( - loc: Ptr[CXIdxLoc], - indexFile: Ptr[CXIdxClientFile], - file: Ptr[CXFile], - line: Ptr[CUnsignedInt], - column: Ptr[CUnsignedInt], - offset: Ptr[CUnsignedInt] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_isConstQualifiedType( - T: Ptr[CXType] - ): CUnsignedInt = extern - - private[libclang] def __sn_wrap_libclang_clang_isCursorDefinition( - _0: Ptr[CXCursor] - ): CUnsignedInt = extern - - private[libclang] def __sn_wrap_libclang_clang_isFunctionTypeVariadic( - T: Ptr[CXType] - ): CUnsignedInt = extern - - private[libclang] def __sn_wrap_libclang_clang_isInvalidDeclaration( - _0: Ptr[CXCursor] - ): CUnsignedInt = extern - - private[libclang] def __sn_wrap_libclang_clang_isPODType( - T: Ptr[CXType] - ): CUnsignedInt = extern - - private[libclang] def __sn_wrap_libclang_clang_isRestrictQualifiedType( - T: Ptr[CXType] - ): CUnsignedInt = extern - - private[libclang] def __sn_wrap_libclang_clang_isVirtualBase( - _0: Ptr[CXCursor] - ): CUnsignedInt = extern - - private[libclang] def __sn_wrap_libclang_clang_isVolatileQualifiedType( - T: Ptr[CXType] - ): CUnsignedInt = extern - - private[libclang] def __sn_wrap_libclang_clang_tokenize( - TU: CXTranslationUnit, - Range: Ptr[CXSourceRange], - Tokens: Ptr[Ptr[CXToken]], - NumTokens: Ptr[CUnsignedInt] - ): Unit = extern - - private[libclang] def __sn_wrap_libclang_clang_visitChildren( - parent: Ptr[CXCursor], - visitor: CXCursorVisitor, - client_data: CXClientData - ): CUnsignedInt = extern - - /** Gets the general options associated with a CXIndex. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_CXIndex_getGlobalOptions(_0: CXIndex): CUnsignedInt = extern - - /** Sets general options associated with a CXIndex. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_CXIndex_setGlobalOptions(_0: CXIndex, options: CUnsignedInt): Unit = - extern - - /** Sets the invocation emission path option in a CXIndex. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_CXIndex_setInvocationEmissionPathOption( - _0: CXIndex, - Path: CString - ): Unit = extern - - /** Disposes the created Eval memory. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_EvalResult_dispose(E: CXEvalResult): Unit = extern - - /** Returns the evaluation result as double if the kind is double. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_EvalResult_getAsDouble(E: CXEvalResult): Double = extern - - /** Returns the evaluation result as integer if the kind is Int. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_EvalResult_getAsInt(E: CXEvalResult): CInt = extern - - /** Returns the evaluation result as a long long integer if the kind is Int. - * This prevents overflows that may happen if the result is returned with - * clang_EvalResult_getAsInt. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_EvalResult_getAsLongLong(E: CXEvalResult): CLongLong = extern - - /** Returns the evaluation result as a constant string if the kind is other - * than Int or float. User must not free this pointer, instead call - * clang_EvalResult_dispose on the CXEvalResult returned by - * clang_Cursor_Evaluate. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_EvalResult_getAsStr(E: CXEvalResult): CString = extern - - /** Returns the evaluation result as an unsigned integer if the kind is Int - * and clang_EvalResult_isUnsignedInt is non-zero. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_EvalResult_getAsUnsigned(E: CXEvalResult): CUnsignedLongLong = - extern - - /** Returns the kind of the evaluated result. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_EvalResult_getKind(E: CXEvalResult): CXEvalResultKind = extern - - /** Returns a non-zero value if the kind is Int and the evaluation result - * resulted in an unsigned integer. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_EvalResult_isUnsignedInt(E: CXEvalResult): CUnsignedInt = extern - - /** Returns non-zero if the file1 and file2 point to the same file, or they - * are both NULL. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_File_isEqual(file1: CXFile, file2: CXFile): CInt = extern - - /** An indexing action/session, to be applied to one or multiple translation - * units. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_IndexAction_create(CIdx: CXIndex): CXIndexAction = extern - - /** Destroy the given index action. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_IndexAction_dispose(_0: CXIndexAction): Unit = extern - - /** Create a CXModuleMapDescriptor object. Must be disposed with - * clang_ModuleMapDescriptor_dispose(). - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/BuildSystem.h - */ - def clang_ModuleMapDescriptor_create( - options: CUnsignedInt - ): CXModuleMapDescriptor = extern - - /** Dispose a CXModuleMapDescriptor object. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/BuildSystem.h - */ - def clang_ModuleMapDescriptor_dispose(_0: CXModuleMapDescriptor): Unit = - extern - - /** Sets the framework module name that the module.map describes. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/BuildSystem.h - */ - def clang_ModuleMapDescriptor_setFrameworkModuleName( - _0: CXModuleMapDescriptor, - name: CString - ): CXErrorCode = extern - - /** Sets the umbrella header name that the module.map describes. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/BuildSystem.h - */ - def clang_ModuleMapDescriptor_setUmbrellaHeader( - _0: CXModuleMapDescriptor, - name: CString - ): CXErrorCode = extern - - /** Write out the CXModuleMapDescriptor object to a char buffer. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/BuildSystem.h - */ - def clang_ModuleMapDescriptor_writeToBuffer( - _0: CXModuleMapDescriptor, - options: CUnsignedInt, - out_buffer_ptr: Ptr[CString], - out_buffer_size: Ptr[CUnsignedInt] - ): CXErrorCode = extern - - /** Returns the module file where the provided module object came from. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_Module_getASTFile(Module: CXModule): CXFile = extern - - /** Returns the number of top level headers associated with this module. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_Module_getNumTopLevelHeaders( - _0: CXTranslationUnit, - Module: CXModule - ): CUnsignedInt = extern - - /** Returns the parent of a sub-module or NULL if the given module is - * top-level, e.g. for 'std.vector' it will return the 'std' module. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_Module_getParent(Module: CXModule): CXModule = extern - - /** Returns the specified top level header associated with the module. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_Module_getTopLevelHeader( - _0: CXTranslationUnit, - Module: CXModule, - Index: CUnsignedInt - ): CXFile = extern - - /** Returns non-zero if the module is a system one. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_Module_isSystem(Module: CXModule): CInt = extern - - /** Release a printing policy. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_PrintingPolicy_dispose(Policy: CXPrintingPolicy): Unit = extern - - /** Get a property value for the given printing policy. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_PrintingPolicy_getProperty( - Policy: CXPrintingPolicy, - Property: CXPrintingPolicyProperty - ): CUnsignedInt = extern - - /** Set a property value for the given printing policy. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_PrintingPolicy_setProperty( - Policy: CXPrintingPolicy, - Property: CXPrintingPolicyProperty, - Value: CUnsignedInt - ): Unit = extern - - /** Destroy the CXTargetInfo object. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_TargetInfo_dispose(Info: CXTargetInfo): Unit = extern - - /** Get the pointer width of the target in bits. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_TargetInfo_getPointerWidth(Info: CXTargetInfo): CInt = extern - - /** Map an absolute virtual file path to an absolute real one. The virtual - * path must be canonicalized (not contain "."/".."). - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/BuildSystem.h - */ - def clang_VirtualFileOverlay_addFileMapping( - _0: CXVirtualFileOverlay, - virtualPath: CString, - realPath: CString - ): CXErrorCode = extern - - /** Create a CXVirtualFileOverlay object. Must be disposed with - * clang_VirtualFileOverlay_dispose(). - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/BuildSystem.h - */ - def clang_VirtualFileOverlay_create( - options: CUnsignedInt - ): CXVirtualFileOverlay = extern - - /** Dispose a CXVirtualFileOverlay object. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/BuildSystem.h - */ - def clang_VirtualFileOverlay_dispose(_0: CXVirtualFileOverlay): Unit = extern - - /** Set the case sensitivity for the CXVirtualFileOverlay object. The - * CXVirtualFileOverlay object is case-sensitive by default, this option can - * be used to override the default. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/BuildSystem.h - */ - def clang_VirtualFileOverlay_setCaseSensitivity( - _0: CXVirtualFileOverlay, - caseSensitive: CInt - ): CXErrorCode = extern - - /** Write out the CXVirtualFileOverlay object to a char buffer. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/BuildSystem.h - */ - def clang_VirtualFileOverlay_writeToBuffer( - _0: CXVirtualFileOverlay, - options: CUnsignedInt, - out_buffer_ptr: Ptr[CString], - out_buffer_size: Ptr[CUnsignedInt] - ): CXErrorCode = extern - - /** Annotate the given set of tokens by providing cursors for each token that - * can be mapped to a specific entity within the abstract syntax tree. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_annotateTokens( - TU: CXTranslationUnit, - Tokens: Ptr[CXToken], - NumTokens: CUnsignedInt, - Cursors: Ptr[CXCursor] - ): Unit = extern - - /** Perform code completion at a given location in a translation unit. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_codeCompleteAt( - TU: CXTranslationUnit, - complete_filename: CString, - complete_line: CUnsignedInt, - complete_column: CUnsignedInt, - unsaved_files: Ptr[CXUnsavedFile], - num_unsaved_files: CUnsignedInt, - options: CUnsignedInt - ): Ptr[CXCodeCompleteResults] = extern - - /** Returns the cursor kind for the container for the current code completion - * context. The container is only guaranteed to be set for contexts where a - * container exists (i.e. member accesses or Objective-C message sends); if - * there is not a container, this function will return CXCursor_InvalidCode. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_codeCompleteGetContainerKind( - Results: Ptr[CXCodeCompleteResults], - IsIncomplete: Ptr[CUnsignedInt] - ): CXCursorKind = extern - - /** Determines what completions are appropriate for the context the given code - * completion. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_codeCompleteGetContexts( - Results: Ptr[CXCodeCompleteResults] - ): CUnsignedLongLong = extern - - /** Retrieve a diagnostic associated with the given code completion. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_codeCompleteGetDiagnostic( - Results: Ptr[CXCodeCompleteResults], - Index: CUnsignedInt - ): CXDiagnostic = extern - - /** Determine the number of diagnostics produced prior to the location where - * code completion was performed. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_codeCompleteGetNumDiagnostics( - Results: Ptr[CXCodeCompleteResults] - ): CUnsignedInt = extern - - /** Creates an empty CXCursorSet. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_createCXCursorSet(): CXCursorSet = extern - - /** Provides a shared context for creating translation units. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_createIndex( - excludeDeclarationsFromPCH: CInt, - displayDiagnostics: CInt - ): CXIndex = extern - - /** Same as clang_createTranslationUnit2, but returns the CXTranslationUnit - * instead of an error code. In case of an error this routine returns a NULL - * CXTranslationUnit, without further detailed error codes. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_createTranslationUnit( - CIdx: CXIndex, - ast_filename: CString - ): CXTranslationUnit = extern - - /** Create a translation unit from an AST file ( -emit-ast). - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_createTranslationUnit2( - CIdx: CXIndex, - ast_filename: CString, - out_TU: Ptr[CXTranslationUnit] - ): CXErrorCode = extern - - /** Return the CXTranslationUnit for a given source file and the provided - * command line arguments one would pass to the compiler. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_createTranslationUnitFromSourceFile( - CIdx: CXIndex, - source_filename: CString, - num_clang_command_line_args: CInt, - clang_command_line_args: Ptr[CString], - num_unsaved_files: CUnsignedInt, - unsaved_files: Ptr[CXUnsavedFile] - ): CXTranslationUnit = extern - - /** Returns a default set of code-completion options that can be passed to - * clang_codeCompleteAt(). - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_defaultCodeCompleteOptions(): CUnsignedInt = extern - - /** Retrieve the set of display options most similar to the default behavior - * of the clang compiler. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_defaultDiagnosticDisplayOptions(): CUnsignedInt = extern - - /** Returns the set of flags that is suitable for parsing a translation unit - * that is being edited. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_defaultEditingTranslationUnitOptions(): CUnsignedInt = extern - - /** Returns the set of flags that is suitable for reparsing a translation - * unit. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_defaultReparseOptions(TU: CXTranslationUnit): CUnsignedInt = extern - - /** Returns the set of flags that is suitable for saving a translation unit. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_defaultSaveOptions(TU: CXTranslationUnit): CUnsignedInt = extern - - /** Disposes a CXCursorSet and releases its associated memory. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_disposeCXCursorSet(cset: CXCursorSet): Unit = extern - - /** Free the memory associated with a CXPlatformAvailability structure. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_disposeCXPlatformAvailability( - availability: Ptr[CXPlatformAvailability] - ): Unit = extern - - /** Free the given set of code-completion results. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_disposeCodeCompleteResults( - Results: Ptr[CXCodeCompleteResults] - ): Unit = extern - - /** Destroy a diagnostic. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_disposeDiagnostic(Diagnostic: CXDiagnostic): Unit = extern - - /** Release a CXDiagnosticSet and all of its contained diagnostics. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_disposeDiagnosticSet(Diags: CXDiagnosticSet): Unit = extern - - /** Destroy the given index. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_disposeIndex(index: CXIndex): Unit = extern - - /** Free the set of overridden cursors returned by - * clang_getOverriddenCursors(). - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_disposeOverriddenCursors(overridden: Ptr[CXCursor]): Unit = extern - - /** Destroy the given CXSourceRangeList. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_disposeSourceRangeList(ranges: Ptr[CXSourceRangeList]): Unit = - extern - - /** Free the given string set. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/CXString.h - */ - def clang_disposeStringSet(set: Ptr[CXStringSet]): Unit = extern - - /** Free the given set of tokens. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_disposeTokens( - TU: CXTranslationUnit, - Tokens: Ptr[CXToken], - NumTokens: CUnsignedInt - ): Unit = extern - - /** Destroy the specified CXTranslationUnit object. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_disposeTranslationUnit(_0: CXTranslationUnit): Unit = extern - - /** [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_enableStackTraces(): Unit = extern - - /** [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_executeOnThread( - fn: CFuncPtr1[Ptr[Byte], Unit], - user_data: Ptr[Byte], - stack_size: CUnsignedInt - ): Unit = extern - - /** free memory allocated by libclang, such as the buffer returned by - * CXVirtualFileOverlay() or clang_ModuleMapDescriptor_writeToBuffer(). - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/BuildSystem.h - */ - def clang_free(buffer: Ptr[Byte]): Unit = extern - - /** Retrieve all ranges from all files that were skipped by the preprocessor. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_getAllSkippedRanges(tu: CXTranslationUnit): Ptr[CXSourceRangeList] = - extern - - /** Return the timestamp for use with Clang's -fbuild-session-timestamp= - * option. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/BuildSystem.h - */ - def clang_getBuildSessionTimestamp(): CUnsignedLongLong = extern - - /** Retrieve the child diagnostics of a CXDiagnostic. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_getChildDiagnostics(D: CXDiagnostic): CXDiagnosticSet = extern - - /** Determine the availability of the entity that this code-completion string - * refers to. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_getCompletionAvailability( - completion_string: CXCompletionString - ): CXAvailabilityKind = extern - - /** Retrieve the completion string associated with a particular chunk within a - * completion string. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_getCompletionChunkCompletionString( - completion_string: CXCompletionString, - chunk_number: CUnsignedInt - ): CXCompletionString = extern - - /** Determine the kind of a particular chunk within a completion string. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_getCompletionChunkKind( - completion_string: CXCompletionString, - chunk_number: CUnsignedInt - ): CXCompletionChunkKind = extern - - /** Retrieve the number of annotations associated with the given completion - * string. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_getCompletionNumAnnotations( - completion_string: CXCompletionString - ): CUnsignedInt = extern - - /** Retrieve the number of fix-its for the given completion index. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_getCompletionNumFixIts( - results: Ptr[CXCodeCompleteResults], - completion_index: CUnsignedInt - ): CUnsignedInt = extern - - /** Determine the priority of this code completion. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_getCompletionPriority( - completion_string: CXCompletionString - ): CUnsignedInt = extern - - /** Retrieve a diagnostic associated with the given translation unit. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_getDiagnostic( - Unit: CXTranslationUnit, - Index: CUnsignedInt - ): CXDiagnostic = extern - - /** Retrieve the category number for this diagnostic. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_getDiagnosticCategory(_0: CXDiagnostic): CUnsignedInt = extern - - /** Retrieve a diagnostic associated with the given CXDiagnosticSet. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_getDiagnosticInSet( - Diags: CXDiagnosticSet, - Index: CUnsignedInt - ): CXDiagnostic = extern - - /** Determine the number of fix-it hints associated with the given diagnostic. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_getDiagnosticNumFixIts(Diagnostic: CXDiagnostic): CUnsignedInt = - extern - - /** Determine the number of source ranges associated with the given - * diagnostic. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_getDiagnosticNumRanges(_0: CXDiagnostic): CUnsignedInt = extern - - /** Retrieve the complete set of diagnostics associated with a translation - * unit. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_getDiagnosticSetFromTU(Unit: CXTranslationUnit): CXDiagnosticSet = - extern - - /** Determine the severity of the given diagnostic. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_getDiagnosticSeverity(_0: CXDiagnostic): CXDiagnosticSeverity = - extern - - /** Retrieve a file handle within the given translation unit. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_getFile(tu: CXTranslationUnit, file_name: CString): CXFile = extern - - /** Retrieve the buffer associated with the given file. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_getFileContents( - tu: CXTranslationUnit, - file: CXFile, - size: Ptr[size_t] - ): CString = extern - - /** Retrieve the last modification time of the given file. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_getFileTime(SFile: CXFile): time_t = extern - - /** Retrieve the unique ID for the given file. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_getFileUniqueID(file: CXFile, outID: Ptr[CXFileUniqueID]): CInt = - extern - - /** Visit the set of preprocessor inclusions in a translation unit. The - * visitor function is called with the provided data for every included file. - * This does not include headers included by the PCH file (unless one is - * inspecting the inclusions in the PCH file itself). - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_getInclusions( - tu: CXTranslationUnit, - visitor: CXInclusionVisitor, - client_data: CXClientData - ): Unit = extern - - /** Given a CXFile header file, return the module that contains it, if one - * exists. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_getModuleForFile(_0: CXTranslationUnit, _1: CXFile): CXModule = - extern - - /** Retrieve the number of chunks in the given code-completion string. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_getNumCompletionChunks( - completion_string: CXCompletionString - ): CUnsignedInt = extern - - /** Determine the number of diagnostics produced for the given translation - * unit. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_getNumDiagnostics(Unit: CXTranslationUnit): CUnsignedInt = extern - - /** Determine the number of diagnostics in a CXDiagnosticSet. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_getNumDiagnosticsInSet(Diags: CXDiagnosticSet): CUnsignedInt = - extern - - /** Retrieve a remapping. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_getRemappings(path: CString): CXRemapping = extern - - /** Retrieve a remapping. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_getRemappingsFromFileList( - filePaths: Ptr[CString], - numFiles: CUnsignedInt - ): CXRemapping = extern - - /** Retrieve all ranges that were skipped by the preprocessor. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_getSkippedRanges( - tu: CXTranslationUnit, - file: CXFile - ): Ptr[CXSourceRangeList] = extern - - /** Returns the human-readable null-terminated C string that represents the - * name of the memory category. This string should never be freed. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_getTUResourceUsageName(kind: CXTUResourceUsageKind): CString = - extern - - /** Get target information for this translation unit. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_getTranslationUnitTargetInfo( - CTUnit: CXTranslationUnit - ): CXTargetInfo = extern - - /** Index the given source file and the translation unit corresponding to that - * file via callbacks implemented through #IndexerCallbacks. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_indexSourceFile( - _0: CXIndexAction, - client_data: CXClientData, - index_callbacks: Ptr[IndexerCallbacks], - index_callbacks_size: CUnsignedInt, - index_options: CUnsignedInt, - source_filename: CString, - command_line_args: Ptr[CString], - num_command_line_args: CInt, - unsaved_files: Ptr[CXUnsavedFile], - num_unsaved_files: CUnsignedInt, - out_TU: Ptr[CXTranslationUnit], - TU_options: CUnsignedInt - ): CInt = extern - - /** Same as clang_indexSourceFile but requires a full command line for - * command_line_args including argv[0]. This is useful if the standard - * library paths are relative to the binary. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_indexSourceFileFullArgv( - _0: CXIndexAction, - client_data: CXClientData, - index_callbacks: Ptr[IndexerCallbacks], - index_callbacks_size: CUnsignedInt, - index_options: CUnsignedInt, - source_filename: CString, - command_line_args: Ptr[CString], - num_command_line_args: CInt, - unsaved_files: Ptr[CXUnsavedFile], - num_unsaved_files: CUnsignedInt, - out_TU: Ptr[CXTranslationUnit], - TU_options: CUnsignedInt - ): CInt = extern - - /** Index the given translation unit via callbacks implemented through - * #IndexerCallbacks. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_indexTranslationUnit( - _0: CXIndexAction, - client_data: CXClientData, - index_callbacks: Ptr[IndexerCallbacks], - index_callbacks_size: CUnsignedInt, - index_options: CUnsignedInt, - _5: CXTranslationUnit - ): CInt = extern - - /** [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_index_getCXXClassDeclInfo( - _0: Ptr[CXIdxDeclInfo] - ): Ptr[CXIdxCXXClassDeclInfo] = extern - - /** For retrieving a custom CXIdxClientContainer attached to a container. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_index_getClientContainer( - _0: Ptr[CXIdxContainerInfo] - ): CXIdxClientContainer = extern - - /** For retrieving a custom CXIdxClientEntity attached to an entity. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_index_getClientEntity(_0: Ptr[CXIdxEntityInfo]): CXIdxClientEntity = - extern - - /** [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_index_getIBOutletCollectionAttrInfo( - _0: Ptr[CXIdxAttrInfo] - ): Ptr[CXIdxIBOutletCollectionAttrInfo] = extern - - /** [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_index_getObjCCategoryDeclInfo( - _0: Ptr[CXIdxDeclInfo] - ): Ptr[CXIdxObjCCategoryDeclInfo] = extern - - /** [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_index_getObjCContainerDeclInfo( - _0: Ptr[CXIdxDeclInfo] - ): Ptr[CXIdxObjCContainerDeclInfo] = extern - - /** [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_index_getObjCInterfaceDeclInfo( - _0: Ptr[CXIdxDeclInfo] - ): Ptr[CXIdxObjCInterfaceDeclInfo] = extern - - /** [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_index_getObjCPropertyDeclInfo( - _0: Ptr[CXIdxDeclInfo] - ): Ptr[CXIdxObjCPropertyDeclInfo] = extern - - /** [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_index_getObjCProtocolRefListInfo( - _0: Ptr[CXIdxDeclInfo] - ): Ptr[CXIdxObjCProtocolRefListInfo] = extern - - /** [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_index_isEntityObjCContainerKind(_0: CXIdxEntityKind): CInt = extern - - /** For setting a custom CXIdxClientContainer attached to a container. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_index_setClientContainer( - _0: Ptr[CXIdxContainerInfo], - _1: CXIdxClientContainer - ): Unit = extern - - /** For setting a custom CXIdxClientEntity attached to an entity. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_index_setClientEntity( - _0: Ptr[CXIdxEntityInfo], - _1: CXIdxClientEntity - ): Unit = extern - - /** Determine whether the given cursor kind represents an attribute. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_isAttribute(_0: CXCursorKind): CUnsignedInt = extern - - /** Determine whether the given cursor kind represents a declaration. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_isDeclaration(_0: CXCursorKind): CUnsignedInt = extern - - /** Determine whether the given cursor kind represents an expression. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_isExpression(_0: CXCursorKind): CUnsignedInt = extern - - /** Determine whether the given header is guarded against multiple inclusions, - * either with the conventional #ifndef/#define/#endif macro guards or with - * #pragma once. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_isFileMultipleIncludeGuarded( - tu: CXTranslationUnit, - file: CXFile - ): CUnsignedInt = extern - - /** Determine whether the given cursor kind represents an invalid cursor. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_isInvalid(_0: CXCursorKind): CUnsignedInt = extern - - /** * Determine whether the given cursor represents a preprocessing element, - * such as a preprocessor directive or macro instantiation. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_isPreprocessing(_0: CXCursorKind): CUnsignedInt = extern - - /** Determine whether the given cursor kind represents a simple reference. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_isReference(_0: CXCursorKind): CUnsignedInt = extern - - /** Determine whether the given cursor kind represents a statement. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_isStatement(_0: CXCursorKind): CUnsignedInt = extern - - /** Determine whether the given cursor kind represents a translation unit. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_isTranslationUnit(_0: CXCursorKind): CUnsignedInt = extern - - /** * Determine whether the given cursor represents a currently unexposed - * piece of the AST (e.g., CXCursor_UnexposedStmt). - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_isUnexposed(_0: CXCursorKind): CUnsignedInt = extern - - /** Deserialize a set of diagnostics from a Clang diagnostics bitcode file. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_loadDiagnostics( - file: CString, - error: Ptr[CXLoadDiag_Error], - errorString: Ptr[CXString] - ): CXDiagnosticSet = extern - - /** Same as clang_parseTranslationUnit2, but returns the CXTranslationUnit - * instead of an error code. In case of an error this routine returns a NULL - * CXTranslationUnit, without further detailed error codes. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_parseTranslationUnit( - CIdx: CXIndex, - source_filename: CString, - command_line_args: Ptr[CString], - num_command_line_args: CInt, - unsaved_files: Ptr[CXUnsavedFile], - num_unsaved_files: CUnsignedInt, - options: CUnsignedInt - ): CXTranslationUnit = extern - - /** Parse the given source file and the translation unit corresponding to that - * file. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_parseTranslationUnit2( - CIdx: CXIndex, - source_filename: CString, - command_line_args: Ptr[CString], - num_command_line_args: CInt, - unsaved_files: Ptr[CXUnsavedFile], - num_unsaved_files: CUnsignedInt, - options: CUnsignedInt, - out_TU: Ptr[CXTranslationUnit] - ): CXErrorCode = extern - - /** Same as clang_parseTranslationUnit2 but requires a full command line for - * command_line_args including argv[0]. This is useful if the standard - * library paths are relative to the binary. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_parseTranslationUnit2FullArgv( - CIdx: CXIndex, - source_filename: CString, - command_line_args: Ptr[CString], - num_command_line_args: CInt, - unsaved_files: Ptr[CXUnsavedFile], - num_unsaved_files: CUnsignedInt, - options: CUnsignedInt, - out_TU: Ptr[CXTranslationUnit] - ): CXErrorCode = extern - - /** Dispose the remapping. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_remap_dispose(_0: CXRemapping): Unit = extern - - /** Get the original and the associated filename from the remapping. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_remap_getFilenames( - _0: CXRemapping, - index: CUnsignedInt, - original: Ptr[CXString], - transformed: Ptr[CXString] - ): Unit = extern - - /** Determine the number of remappings. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_remap_getNumFiles(_0: CXRemapping): CUnsignedInt = extern - - /** Reparse the source files that produced this translation unit. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_reparseTranslationUnit( - TU: CXTranslationUnit, - num_unsaved_files: CUnsignedInt, - unsaved_files: Ptr[CXUnsavedFile], - options: CUnsignedInt - ): CInt = extern - - /** Saves a translation unit into a serialized representation of that - * translation unit on disk. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_saveTranslationUnit( - TU: CXTranslationUnit, - FileName: CString, - options: CUnsignedInt - ): CInt = extern - - /** Sort the code-completion results in case-insensitive alphabetical order. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_sortCodeCompletionResults( - Results: Ptr[CXCompletionResult], - NumResults: CUnsignedInt - ): Unit = extern - - /** Suspend a translation unit in order to free memory associated with it. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_suspendTranslationUnit(_0: CXTranslationUnit): CUnsignedInt = extern - - /** Enable/disable crash recovery. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ - def clang_toggleCrashRecovery(isEnabled: CUnsignedInt): Unit = extern -end extern_functions - -import extern_functions.* -export extern_functions.* +@extern private[libclang] def __sn_wrap_libclang_clang_CXCursorSet_contains( + cset: CXCursorSet, + cursor: Ptr[CXCursor] +): CUnsignedInt = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_CXCursorSet_insert( + cset: CXCursorSet, + cursor: Ptr[CXCursor] +): CUnsignedInt = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_CXXConstructor_isConvertingConstructor( + C: Ptr[CXCursor] +): CUnsignedInt = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_CXXConstructor_isCopyConstructor( + C: Ptr[CXCursor] +): CUnsignedInt = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_CXXConstructor_isDefaultConstructor( + C: Ptr[CXCursor] +): CUnsignedInt = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_CXXConstructor_isMoveConstructor( + C: Ptr[CXCursor] +): CUnsignedInt = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_CXXField_isMutable( + C: Ptr[CXCursor] +): CUnsignedInt = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_CXXMethod_isConst( + C: Ptr[CXCursor] +): CUnsignedInt = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_CXXMethod_isCopyAssignmentOperator( + C: Ptr[CXCursor] +): CUnsignedInt = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_CXXMethod_isDefaulted( + C: Ptr[CXCursor] +): CUnsignedInt = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_CXXMethod_isDeleted( + C: Ptr[CXCursor] +): CUnsignedInt = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_CXXMethod_isExplicit( + C: Ptr[CXCursor] +): CUnsignedInt = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_CXXMethod_isMoveAssignmentOperator( + C: Ptr[CXCursor] +): CUnsignedInt = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_CXXMethod_isPureVirtual( + C: Ptr[CXCursor] +): CUnsignedInt = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_CXXMethod_isStatic( + C: Ptr[CXCursor] +): CUnsignedInt = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_CXXMethod_isVirtual( + C: Ptr[CXCursor] +): CUnsignedInt = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_CXXRecord_isAbstract( + C: Ptr[CXCursor] +): CUnsignedInt = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_Cursor_Evaluate( + C: Ptr[CXCursor] +): CXEvalResult = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_Cursor_getArgument( + C: Ptr[CXCursor], + i: CUnsignedInt, + __return: Ptr[CXCursor] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_Cursor_getBriefCommentText( + C: Ptr[CXCursor], + __return: Ptr[CXString] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_Cursor_getCXXManglings( + _0: Ptr[CXCursor] +): Ptr[CXStringSet] = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_Cursor_getCommentRange( + C: Ptr[CXCursor], + __return: Ptr[CXSourceRange] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_Cursor_getMangling( + _0: Ptr[CXCursor], + __return: Ptr[CXString] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_Cursor_getModule( + C: Ptr[CXCursor] +): CXModule = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_Cursor_getNumArguments( + C: Ptr[CXCursor] +): CInt = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_Cursor_getNumTemplateArguments( + C: Ptr[CXCursor] +): CInt = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_Cursor_getObjCDeclQualifiers( + C: Ptr[CXCursor] +): CUnsignedInt = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_Cursor_getObjCManglings( + _0: Ptr[CXCursor] +): Ptr[CXStringSet] = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_Cursor_getObjCPropertyAttributes( + C: Ptr[CXCursor], + reserved: CUnsignedInt +): CUnsignedInt = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_Cursor_getObjCPropertyGetterName( + C: Ptr[CXCursor], + __return: Ptr[CXString] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_Cursor_getObjCPropertySetterName( + C: Ptr[CXCursor], + __return: Ptr[CXString] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_Cursor_getObjCSelectorIndex( + _0: Ptr[CXCursor] +): CInt = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_Cursor_getOffsetOfField( + C: Ptr[CXCursor] +): CLongLong = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_Cursor_getRawCommentText( + C: Ptr[CXCursor], + __return: Ptr[CXString] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_Cursor_getReceiverType( + C: Ptr[CXCursor], + __return: Ptr[CXType] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_Cursor_getSpellingNameRange( + _0: Ptr[CXCursor], + pieceIndex: CUnsignedInt, + options: CUnsignedInt, + __return: Ptr[CXSourceRange] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_Cursor_getStorageClass( + _0: Ptr[CXCursor] +): CX_StorageClass = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_Cursor_getTemplateArgumentKind( + C: Ptr[CXCursor], + I: CUnsignedInt +): CXTemplateArgumentKind = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_Cursor_getTemplateArgumentType( + C: Ptr[CXCursor], + I: CUnsignedInt, + __return: Ptr[CXType] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_Cursor_getTemplateArgumentUnsignedValue( + C: Ptr[CXCursor], + I: CUnsignedInt +): CUnsignedLongLong = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_Cursor_getTemplateArgumentValue( + C: Ptr[CXCursor], + I: CUnsignedInt +): CLongLong = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_Cursor_getTranslationUnit( + _0: Ptr[CXCursor] +): CXTranslationUnit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_Cursor_getVarDeclInitializer( + cursor: Ptr[CXCursor], + __return: Ptr[CXCursor] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_Cursor_hasAttrs( + C: Ptr[CXCursor] +): CUnsignedInt = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_Cursor_hasVarDeclExternalStorage( + cursor: Ptr[CXCursor] +): CInt = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_Cursor_hasVarDeclGlobalStorage( + cursor: Ptr[CXCursor] +): CInt = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_Cursor_isAnonymous( + C: Ptr[CXCursor] +): CUnsignedInt = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_Cursor_isAnonymousRecordDecl( + C: Ptr[CXCursor] +): CUnsignedInt = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_Cursor_isBitField( + C: Ptr[CXCursor] +): CUnsignedInt = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_Cursor_isDynamicCall( + C: Ptr[CXCursor] +): CInt = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_Cursor_isExternalSymbol( + C: Ptr[CXCursor], + language: Ptr[CXString], + definedIn: Ptr[CXString], + isGenerated: Ptr[CUnsignedInt] +): CUnsignedInt = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_Cursor_isFunctionInlined( + C: Ptr[CXCursor] +): CUnsignedInt = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_Cursor_isInlineNamespace( + C: Ptr[CXCursor] +): CUnsignedInt = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_Cursor_isMacroBuiltin( + C: Ptr[CXCursor] +): CUnsignedInt = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_Cursor_isMacroFunctionLike( + C: Ptr[CXCursor] +): CUnsignedInt = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_Cursor_isNull( + cursor: Ptr[CXCursor] +): CInt = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_Cursor_isObjCOptional( + C: Ptr[CXCursor] +): CUnsignedInt = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_Cursor_isVariadic( + C: Ptr[CXCursor] +): CUnsignedInt = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_EnumDecl_isScoped( + C: Ptr[CXCursor] +): CUnsignedInt = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_File_tryGetRealPathName( + file: CXFile, + __return: Ptr[CXString] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_Location_isFromMainFile( + location: Ptr[CXSourceLocation] +): CInt = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_Location_isInSystemHeader( + location: Ptr[CXSourceLocation] +): CInt = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_Module_getFullName( + Module: CXModule, + __return: Ptr[CXString] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_Module_getName( + Module: CXModule, + __return: Ptr[CXString] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_Range_isNull( + range: Ptr[CXSourceRange] +): CInt = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_TargetInfo_getTriple( + Info: CXTargetInfo, + __return: Ptr[CXString] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_Type_getAlignOf( + T: Ptr[CXType] +): CLongLong = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_Type_getCXXRefQualifier( + T: Ptr[CXType] +): CXRefQualifierKind = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_Type_getClassType( + T: Ptr[CXType], + __return: Ptr[CXType] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_Type_getModifiedType( + T: Ptr[CXType], + __return: Ptr[CXType] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_Type_getNamedType( + T: Ptr[CXType], + __return: Ptr[CXType] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_Type_getNullability( + T: Ptr[CXType] +): CXTypeNullabilityKind = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_Type_getNumObjCProtocolRefs( + T: Ptr[CXType] +): CUnsignedInt = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_Type_getNumObjCTypeArgs( + T: Ptr[CXType] +): CUnsignedInt = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_Type_getNumTemplateArguments( + T: Ptr[CXType] +): CInt = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_Type_getObjCEncoding( + `type`: Ptr[CXType], + __return: Ptr[CXString] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_Type_getObjCObjectBaseType( + T: Ptr[CXType], + __return: Ptr[CXType] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_Type_getObjCProtocolDecl( + T: Ptr[CXType], + i: CUnsignedInt, + __return: Ptr[CXCursor] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_Type_getObjCTypeArg( + T: Ptr[CXType], + i: CUnsignedInt, + __return: Ptr[CXType] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_Type_getOffsetOf( + T: Ptr[CXType], + S: CString +): CLongLong = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_Type_getSizeOf( + T: Ptr[CXType] +): CLongLong = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_Type_getTemplateArgumentAsType( + T: Ptr[CXType], + i: CUnsignedInt, + __return: Ptr[CXType] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_Type_getValueType( + CT: Ptr[CXType], + __return: Ptr[CXType] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_Type_isTransparentTagTypedef( + T: Ptr[CXType] +): CUnsignedInt = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_Type_visitFields( + T: Ptr[CXType], + visitor: CXFieldVisitor, + client_data: CXClientData +): CUnsignedInt = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_codeCompleteGetContainerUSR( + Results: Ptr[CXCodeCompleteResults], + __return: Ptr[CXString] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_codeCompleteGetObjCSelector( + Results: Ptr[CXCodeCompleteResults], + __return: Ptr[CXString] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_constructUSR_ObjCCategory( + class_name: CString, + category_name: CString, + __return: Ptr[CXString] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_constructUSR_ObjCClass( + class_name: CString, + __return: Ptr[CXString] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_constructUSR_ObjCIvar( + name: CString, + classUSR: Ptr[CXString], + __return: Ptr[CXString] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_constructUSR_ObjCMethod( + name: CString, + isInstanceMethod: CUnsignedInt, + classUSR: Ptr[CXString], + __return: Ptr[CXString] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_constructUSR_ObjCProperty( + property: CString, + classUSR: Ptr[CXString], + __return: Ptr[CXString] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_constructUSR_ObjCProtocol( + protocol_name: CString, + __return: Ptr[CXString] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_disposeCXTUResourceUsage( + usage: Ptr[CXTUResourceUsage] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_disposeString( + string: Ptr[CXString] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_equalCursors( + _0: Ptr[CXCursor], + _1: Ptr[CXCursor] +): CUnsignedInt = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_equalLocations( + loc1: Ptr[CXSourceLocation], + loc2: Ptr[CXSourceLocation] +): CUnsignedInt = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_equalRanges( + range1: Ptr[CXSourceRange], + range2: Ptr[CXSourceRange] +): CUnsignedInt = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_equalTypes( + A: Ptr[CXType], + B: Ptr[CXType] +): CUnsignedInt = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_findIncludesInFile( + TU: CXTranslationUnit, + file: CXFile, + visitor: Ptr[CXCursorAndRangeVisitor] +): CXResult = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_findReferencesInFile( + cursor: Ptr[CXCursor], + file: CXFile, + visitor: Ptr[CXCursorAndRangeVisitor] +): CXResult = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_findReferencesInFileWithBlock( + _0: Ptr[CXCursor], + _1: CXFile, + _2: CXCursorAndRangeVisitorBlock +): CXResult = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_formatDiagnostic( + Diagnostic: CXDiagnostic, + Options: CUnsignedInt, + __return: Ptr[CXString] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getAddressSpace( + T: Ptr[CXType] +): CUnsignedInt = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getArgType( + T: Ptr[CXType], + i: CUnsignedInt, + __return: Ptr[CXType] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getArrayElementType( + T: Ptr[CXType], + __return: Ptr[CXType] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getArraySize( + T: Ptr[CXType] +): CLongLong = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getBinaryOperatorKindSpelling( + kind: CXBinaryOperatorKind, + __return: Ptr[CXString] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getCString( + string: Ptr[CXString] +): CString = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getCXTUResourceUsage( + TU: CXTranslationUnit, + __return: Ptr[CXTUResourceUsage] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getCXXAccessSpecifier( + _0: Ptr[CXCursor] +): CX_CXXAccessSpecifier = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getCanonicalCursor( + _0: Ptr[CXCursor], + __return: Ptr[CXCursor] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getCanonicalType( + T: Ptr[CXType], + __return: Ptr[CXType] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getClangVersion( + __return: Ptr[CXString] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getCompletionAnnotation( + completion_string: CXCompletionString, + annotation_number: CUnsignedInt, + __return: Ptr[CXString] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getCompletionBriefComment( + completion_string: CXCompletionString, + __return: Ptr[CXString] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getCompletionChunkText( + completion_string: CXCompletionString, + chunk_number: CUnsignedInt, + __return: Ptr[CXString] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getCompletionFixIt( + results: Ptr[CXCodeCompleteResults], + completion_index: CUnsignedInt, + fixit_index: CUnsignedInt, + replacement_range: Ptr[CXSourceRange], + __return: Ptr[CXString] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getCompletionParent( + completion_string: CXCompletionString, + kind: Ptr[CXCursorKind], + __return: Ptr[CXString] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getCursor( + _0: CXTranslationUnit, + _1: Ptr[CXSourceLocation], + __return: Ptr[CXCursor] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getCursorAvailability( + cursor: Ptr[CXCursor] +): CXAvailabilityKind = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getCursorBinaryOperatorKind( + cursor: Ptr[CXCursor] +): CXBinaryOperatorKind = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getCursorCompletionString( + cursor: Ptr[CXCursor] +): CXCompletionString = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getCursorDefinition( + _0: Ptr[CXCursor], + __return: Ptr[CXCursor] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getCursorDisplayName( + _0: Ptr[CXCursor], + __return: Ptr[CXString] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getCursorExceptionSpecificationType( + C: Ptr[CXCursor] +): CInt = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getCursorExtent( + _0: Ptr[CXCursor], + __return: Ptr[CXSourceRange] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getCursorKind( + _0: Ptr[CXCursor] +): CXCursorKind = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getCursorKindSpelling( + Kind: CXCursorKind, + __return: Ptr[CXString] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getCursorLanguage( + cursor: Ptr[CXCursor] +): CXLanguageKind = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getCursorLexicalParent( + cursor: Ptr[CXCursor], + __return: Ptr[CXCursor] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getCursorLinkage( + cursor: Ptr[CXCursor] +): CXLinkageKind = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getCursorLocation( + _0: Ptr[CXCursor], + __return: Ptr[CXSourceLocation] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getCursorPlatformAvailability( + cursor: Ptr[CXCursor], + always_deprecated: Ptr[CInt], + deprecated_message: Ptr[CXString], + always_unavailable: Ptr[CInt], + unavailable_message: Ptr[CXString], + availability: Ptr[CXPlatformAvailability], + availability_size: CInt +): CInt = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getCursorPrettyPrinted( + Cursor: Ptr[CXCursor], + Policy: CXPrintingPolicy, + __return: Ptr[CXString] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getCursorPrintingPolicy( + _0: Ptr[CXCursor] +): CXPrintingPolicy = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getCursorReferenceNameRange( + C: Ptr[CXCursor], + NameFlags: CUnsignedInt, + PieceIndex: CUnsignedInt, + __return: Ptr[CXSourceRange] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getCursorReferenced( + _0: Ptr[CXCursor], + __return: Ptr[CXCursor] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getCursorResultType( + C: Ptr[CXCursor], + __return: Ptr[CXType] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getCursorSemanticParent( + cursor: Ptr[CXCursor], + __return: Ptr[CXCursor] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getCursorSpelling( + _0: Ptr[CXCursor], + __return: Ptr[CXString] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getCursorTLSKind( + cursor: Ptr[CXCursor] +): CXTLSKind = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getCursorType( + C: Ptr[CXCursor], + __return: Ptr[CXType] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getCursorUSR( + _0: Ptr[CXCursor], + __return: Ptr[CXString] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getCursorUnaryOperatorKind( + cursor: Ptr[CXCursor] +): CXUnaryOperatorKind = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getCursorVisibility( + cursor: Ptr[CXCursor] +): CXVisibilityKind = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getDeclObjCTypeEncoding( + C: Ptr[CXCursor], + __return: Ptr[CXString] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getDefinitionSpellingAndExtent( + _0: Ptr[CXCursor], + startBuf: Ptr[CString], + endBuf: Ptr[CString], + startLine: Ptr[CUnsignedInt], + startColumn: Ptr[CUnsignedInt], + endLine: Ptr[CUnsignedInt], + endColumn: Ptr[CUnsignedInt] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getDiagnosticCategoryName( + Category: CUnsignedInt, + __return: Ptr[CXString] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getDiagnosticCategoryText( + _0: CXDiagnostic, + __return: Ptr[CXString] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getDiagnosticFixIt( + Diagnostic: CXDiagnostic, + FixIt: CUnsignedInt, + ReplacementRange: Ptr[CXSourceRange], + __return: Ptr[CXString] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getDiagnosticLocation( + _0: CXDiagnostic, + __return: Ptr[CXSourceLocation] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getDiagnosticOption( + Diag: CXDiagnostic, + Disable: Ptr[CXString], + __return: Ptr[CXString] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getDiagnosticRange( + Diagnostic: CXDiagnostic, + Range: CUnsignedInt, + __return: Ptr[CXSourceRange] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getDiagnosticSpelling( + _0: CXDiagnostic, + __return: Ptr[CXString] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getElementType( + T: Ptr[CXType], + __return: Ptr[CXType] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getEnumConstantDeclUnsignedValue( + C: Ptr[CXCursor] +): CUnsignedLongLong = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getEnumConstantDeclValue( + C: Ptr[CXCursor] +): CLongLong = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getEnumDeclIntegerType( + C: Ptr[CXCursor], + __return: Ptr[CXType] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getExceptionSpecificationType( + T: Ptr[CXType] +): CInt = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getExpansionLocation( + location: Ptr[CXSourceLocation], + file: Ptr[CXFile], + line: Ptr[CUnsignedInt], + column: Ptr[CUnsignedInt], + offset: Ptr[CUnsignedInt] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getFieldDeclBitWidth( + C: Ptr[CXCursor] +): CInt = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getFileLocation( + location: Ptr[CXSourceLocation], + file: Ptr[CXFile], + line: Ptr[CUnsignedInt], + column: Ptr[CUnsignedInt], + offset: Ptr[CUnsignedInt] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getFileName( + SFile: CXFile, + __return: Ptr[CXString] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getFunctionTypeCallingConv( + T: Ptr[CXType] +): CXCallingConv = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getIBOutletCollectionType( + _0: Ptr[CXCursor], + __return: Ptr[CXType] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getIncludedFile( + cursor: Ptr[CXCursor] +): CXFile = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getInstantiationLocation( + location: Ptr[CXSourceLocation], + file: Ptr[CXFile], + line: Ptr[CUnsignedInt], + column: Ptr[CUnsignedInt], + offset: Ptr[CUnsignedInt] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getLocation( + tu: CXTranslationUnit, + file: CXFile, + line: CUnsignedInt, + column: CUnsignedInt, + __return: Ptr[CXSourceLocation] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getLocationForOffset( + tu: CXTranslationUnit, + file: CXFile, + offset: CUnsignedInt, + __return: Ptr[CXSourceLocation] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getNonReferenceType( + CT: Ptr[CXType], + __return: Ptr[CXType] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getNullCursor( + __return: Ptr[CXCursor] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getNullLocation( + __return: Ptr[CXSourceLocation] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getNullRange( + __return: Ptr[CXSourceRange] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getNumArgTypes( + T: Ptr[CXType] +): CInt = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getNumElements( + T: Ptr[CXType] +): CLongLong = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getNumOverloadedDecls( + cursor: Ptr[CXCursor] +): CUnsignedInt = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getOverloadedDecl( + cursor: Ptr[CXCursor], + index: CUnsignedInt, + __return: Ptr[CXCursor] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getOverriddenCursors( + cursor: Ptr[CXCursor], + overridden: Ptr[Ptr[CXCursor]], + num_overridden: Ptr[CUnsignedInt] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getPointeeType( + T: Ptr[CXType], + __return: Ptr[CXType] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getPresumedLocation( + location: Ptr[CXSourceLocation], + filename: Ptr[CXString], + line: Ptr[CUnsignedInt], + column: Ptr[CUnsignedInt] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getRange( + begin: Ptr[CXSourceLocation], + end: Ptr[CXSourceLocation], + __return: Ptr[CXSourceRange] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getRangeEnd( + range: Ptr[CXSourceRange], + __return: Ptr[CXSourceLocation] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getRangeStart( + range: Ptr[CXSourceRange], + __return: Ptr[CXSourceLocation] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getResultType( + T: Ptr[CXType], + __return: Ptr[CXType] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getSpecializedCursorTemplate( + C: Ptr[CXCursor], + __return: Ptr[CXCursor] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getSpellingLocation( + location: Ptr[CXSourceLocation], + file: Ptr[CXFile], + line: Ptr[CUnsignedInt], + column: Ptr[CUnsignedInt], + offset: Ptr[CUnsignedInt] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getTemplateCursorKind( + C: Ptr[CXCursor] +): CXCursorKind = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getToken( + TU: CXTranslationUnit, + Location: Ptr[CXSourceLocation] +): Ptr[CXToken] = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getTokenExtent( + _0: CXTranslationUnit, + _1: Ptr[CXToken], + __return: Ptr[CXSourceRange] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getTokenKind( + _0: Ptr[CXToken] +): CXTokenKind = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getTokenLocation( + _0: CXTranslationUnit, + _1: Ptr[CXToken], + __return: Ptr[CXSourceLocation] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getTokenSpelling( + _0: CXTranslationUnit, + _1: Ptr[CXToken], + __return: Ptr[CXString] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getTranslationUnitCursor( + _0: CXTranslationUnit, + __return: Ptr[CXCursor] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getTranslationUnitSpelling( + CTUnit: CXTranslationUnit, + __return: Ptr[CXString] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getTypeDeclaration( + T: Ptr[CXType], + __return: Ptr[CXCursor] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getTypeKindSpelling( + K: CXTypeKind, + __return: Ptr[CXString] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getTypeSpelling( + CT: Ptr[CXType], + __return: Ptr[CXString] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getTypedefDeclUnderlyingType( + C: Ptr[CXCursor], + __return: Ptr[CXType] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getTypedefName( + CT: Ptr[CXType], + __return: Ptr[CXString] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getUnaryOperatorKindSpelling( + kind: CXUnaryOperatorKind, + __return: Ptr[CXString] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_getUnqualifiedType( + CT: Ptr[CXType], + __return: Ptr[CXType] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_hashCursor( + _0: Ptr[CXCursor] +): CUnsignedInt = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_indexLoc_getCXSourceLocation( + loc: Ptr[CXIdxLoc], + __return: Ptr[CXSourceLocation] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_indexLoc_getFileLocation( + loc: Ptr[CXIdxLoc], + indexFile: Ptr[CXIdxClientFile], + file: Ptr[CXFile], + line: Ptr[CUnsignedInt], + column: Ptr[CUnsignedInt], + offset: Ptr[CUnsignedInt] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_isConstQualifiedType( + T: Ptr[CXType] +): CUnsignedInt = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_isCursorDefinition( + _0: Ptr[CXCursor] +): CUnsignedInt = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_isFunctionTypeVariadic( + T: Ptr[CXType] +): CUnsignedInt = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_isInvalidDeclaration( + _0: Ptr[CXCursor] +): CUnsignedInt = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_isPODType( + T: Ptr[CXType] +): CUnsignedInt = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_isRestrictQualifiedType( + T: Ptr[CXType] +): CUnsignedInt = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_isVirtualBase( + _0: Ptr[CXCursor] +): CUnsignedInt = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_isVolatileQualifiedType( + T: Ptr[CXType] +): CUnsignedInt = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_tokenize( + TU: CXTranslationUnit, + Range: Ptr[CXSourceRange], + Tokens: Ptr[Ptr[CXToken]], + NumTokens: Ptr[CUnsignedInt] +): Unit = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_visitChildren( + parent: Ptr[CXCursor], + visitor: CXCursorVisitor, + client_data: CXClientData +): CUnsignedInt = extern + +@extern private[libclang] def __sn_wrap_libclang_clang_visitChildrenWithBlock( + parent: Ptr[CXCursor], + block: CXCursorVisitorBlock +): CUnsignedInt = extern + +/** Gets the general options associated with a CXIndex. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_CXIndex_getGlobalOptions(_0: CXIndex): CUnsignedInt = extern + +/** Sets general options associated with a CXIndex. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_CXIndex_setGlobalOptions( + _0: CXIndex, + options: CUnsignedInt +): Unit = extern + +/** Sets the invocation emission path option in a CXIndex. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_CXIndex_setInvocationEmissionPathOption( + _0: CXIndex, + Path: CString +): Unit = extern + +/** Disposes the created Eval memory. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_EvalResult_dispose(E: CXEvalResult): Unit = extern + +/** Returns the evaluation result as double if the kind is double. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_EvalResult_getAsDouble(E: CXEvalResult): Double = extern + +/** Returns the evaluation result as integer if the kind is Int. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_EvalResult_getAsInt(E: CXEvalResult): CInt = extern + +/** Returns the evaluation result as a long long integer if the kind is Int. + * This prevents overflows that may happen if the result is returned with + * clang_EvalResult_getAsInt. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_EvalResult_getAsLongLong(E: CXEvalResult): CLongLong = extern + +/** Returns the evaluation result as a constant string if the kind is other than + * Int or float. User must not free this pointer, instead call + * clang_EvalResult_dispose on the CXEvalResult returned by + * clang_Cursor_Evaluate. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_EvalResult_getAsStr(E: CXEvalResult): CString = extern + +/** Returns the evaluation result as an unsigned integer if the kind is Int and + * clang_EvalResult_isUnsignedInt is non-zero. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_EvalResult_getAsUnsigned(E: CXEvalResult): CUnsignedLongLong = + extern + +/** Returns the kind of the evaluated result. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_EvalResult_getKind(E: CXEvalResult): CXEvalResultKind = extern + +/** Returns a non-zero value if the kind is Int and the evaluation result + * resulted in an unsigned integer. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_EvalResult_isUnsignedInt(E: CXEvalResult): CUnsignedInt = + extern + +/** Returns non-zero if the file1 and file2 point to the same file, or they are + * both NULL. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/CXFile.h + */ +@extern def clang_File_isEqual(file1: CXFile, file2: CXFile): CInt = extern + +/** An indexing action/session, to be applied to one or multiple translation + * units. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_IndexAction_create(CIdx: CXIndex): CXIndexAction = extern + +/** Destroy the given index action. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_IndexAction_dispose(_0: CXIndexAction): Unit = extern + +/** Create a CXModuleMapDescriptor object. Must be disposed with + * clang_ModuleMapDescriptor_dispose(). + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/BuildSystem.h + */ +@extern def clang_ModuleMapDescriptor_create( + options: CUnsignedInt +): CXModuleMapDescriptor = extern + +/** Dispose a CXModuleMapDescriptor object. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/BuildSystem.h + */ +@extern def clang_ModuleMapDescriptor_dispose(_0: CXModuleMapDescriptor): Unit = + extern + +/** Sets the framework module name that the module.map describes. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/BuildSystem.h + */ +@extern def clang_ModuleMapDescriptor_setFrameworkModuleName( + _0: CXModuleMapDescriptor, + name: CString +): CXErrorCode = extern + +/** Sets the umbrella header name that the module.map describes. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/BuildSystem.h + */ +@extern def clang_ModuleMapDescriptor_setUmbrellaHeader( + _0: CXModuleMapDescriptor, + name: CString +): CXErrorCode = extern + +/** Write out the CXModuleMapDescriptor object to a char buffer. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/BuildSystem.h + */ +@extern def clang_ModuleMapDescriptor_writeToBuffer( + _0: CXModuleMapDescriptor, + options: CUnsignedInt, + out_buffer_ptr: Ptr[CString], + out_buffer_size: Ptr[CUnsignedInt] +): CXErrorCode = extern + +/** Returns the module file where the provided module object came from. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_Module_getASTFile(Module: CXModule): CXFile = extern + +/** Returns the number of top level headers associated with this module. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_Module_getNumTopLevelHeaders( + _0: CXTranslationUnit, + Module: CXModule +): CUnsignedInt = extern + +/** Returns the parent of a sub-module or NULL if the given module is top-level, + * e.g. for 'std.vector' it will return the 'std' module. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_Module_getParent(Module: CXModule): CXModule = extern + +/** Returns the specified top level header associated with the module. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_Module_getTopLevelHeader( + _0: CXTranslationUnit, + Module: CXModule, + Index: CUnsignedInt +): CXFile = extern + +/** Returns non-zero if the module is a system one. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_Module_isSystem(Module: CXModule): CInt = extern + +/** Release a printing policy. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_PrintingPolicy_dispose(Policy: CXPrintingPolicy): Unit = + extern + +/** Get a property value for the given printing policy. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_PrintingPolicy_getProperty( + Policy: CXPrintingPolicy, + Property: CXPrintingPolicyProperty +): CUnsignedInt = extern + +/** Set a property value for the given printing policy. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_PrintingPolicy_setProperty( + Policy: CXPrintingPolicy, + Property: CXPrintingPolicyProperty, + Value: CUnsignedInt +): Unit = extern + +/** Destroy the CXTargetInfo object. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_TargetInfo_dispose(Info: CXTargetInfo): Unit = extern + +/** Get the pointer width of the target in bits. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_TargetInfo_getPointerWidth(Info: CXTargetInfo): CInt = extern + +/** Map an absolute virtual file path to an absolute real one. The virtual path + * must be canonicalized (not contain "."/".."). + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/BuildSystem.h + */ +@extern def clang_VirtualFileOverlay_addFileMapping( + _0: CXVirtualFileOverlay, + virtualPath: CString, + realPath: CString +): CXErrorCode = extern + +/** Create a CXVirtualFileOverlay object. Must be disposed with + * clang_VirtualFileOverlay_dispose(). + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/BuildSystem.h + */ +@extern def clang_VirtualFileOverlay_create( + options: CUnsignedInt +): CXVirtualFileOverlay = extern + +/** Dispose a CXVirtualFileOverlay object. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/BuildSystem.h + */ +@extern def clang_VirtualFileOverlay_dispose(_0: CXVirtualFileOverlay): Unit = + extern + +/** Set the case sensitivity for the CXVirtualFileOverlay object. The + * CXVirtualFileOverlay object is case-sensitive by default, this option can be + * used to override the default. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/BuildSystem.h + */ +@extern def clang_VirtualFileOverlay_setCaseSensitivity( + _0: CXVirtualFileOverlay, + caseSensitive: CInt +): CXErrorCode = extern + +/** Write out the CXVirtualFileOverlay object to a char buffer. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/BuildSystem.h + */ +@extern def clang_VirtualFileOverlay_writeToBuffer( + _0: CXVirtualFileOverlay, + options: CUnsignedInt, + out_buffer_ptr: Ptr[CString], + out_buffer_size: Ptr[CUnsignedInt] +): CXErrorCode = extern + +/** Annotate the given set of tokens by providing cursors for each token that + * can be mapped to a specific entity within the abstract syntax tree. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_annotateTokens( + TU: CXTranslationUnit, + Tokens: Ptr[CXToken], + NumTokens: CUnsignedInt, + Cursors: Ptr[CXCursor] +): Unit = extern + +/** Perform code completion at a given location in a translation unit. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_codeCompleteAt( + TU: CXTranslationUnit, + complete_filename: CString, + complete_line: CUnsignedInt, + complete_column: CUnsignedInt, + unsaved_files: Ptr[CXUnsavedFile], + num_unsaved_files: CUnsignedInt, + options: CUnsignedInt +): Ptr[CXCodeCompleteResults] = extern + +/** Returns the cursor kind for the container for the current code completion + * context. The container is only guaranteed to be set for contexts where a + * container exists (i.e. member accesses or Objective-C message sends); if + * there is not a container, this function will return CXCursor_InvalidCode. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_codeCompleteGetContainerKind( + Results: Ptr[CXCodeCompleteResults], + IsIncomplete: Ptr[CUnsignedInt] +): CXCursorKind = extern + +/** Determines what completions are appropriate for the context the given code + * completion. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_codeCompleteGetContexts( + Results: Ptr[CXCodeCompleteResults] +): CUnsignedLongLong = extern + +/** Retrieve a diagnostic associated with the given code completion. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_codeCompleteGetDiagnostic( + Results: Ptr[CXCodeCompleteResults], + Index: CUnsignedInt +): CXDiagnostic = extern + +/** Determine the number of diagnostics produced prior to the location where + * code completion was performed. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_codeCompleteGetNumDiagnostics( + Results: Ptr[CXCodeCompleteResults] +): CUnsignedInt = extern + +/** Creates an empty CXCursorSet. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_createCXCursorSet(): CXCursorSet = extern + +/** Provides a shared context for creating translation units. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_createIndex( + excludeDeclarationsFromPCH: CInt, + displayDiagnostics: CInt +): CXIndex = extern + +/** Provides a shared context for creating translation units. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_createIndexWithOptions( + options: Ptr[CXIndexOptions] +): CXIndex = extern + +/** Same as clang_createTranslationUnit2, but returns the CXTranslationUnit + * instead of an error code. In case of an error this routine returns a NULL + * CXTranslationUnit, without further detailed error codes. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_createTranslationUnit( + CIdx: CXIndex, + ast_filename: CString +): CXTranslationUnit = extern + +/** Create a translation unit from an AST file ( -emit-ast). + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_createTranslationUnit2( + CIdx: CXIndex, + ast_filename: CString, + out_TU: Ptr[CXTranslationUnit] +): CXErrorCode = extern + +/** Return the CXTranslationUnit for a given source file and the provided + * command line arguments one would pass to the compiler. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_createTranslationUnitFromSourceFile( + CIdx: CXIndex, + source_filename: CString, + num_clang_command_line_args: CInt, + clang_command_line_args: Ptr[CString], + num_unsaved_files: CUnsignedInt, + unsaved_files: Ptr[CXUnsavedFile] +): CXTranslationUnit = extern + +/** Returns a default set of code-completion options that can be passed to + * clang_codeCompleteAt(). + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_defaultCodeCompleteOptions(): CUnsignedInt = extern + +/** Retrieve the set of display options most similar to the default behavior of + * the clang compiler. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/CXDiagnostic.h + */ +@extern def clang_defaultDiagnosticDisplayOptions(): CUnsignedInt = extern + +/** Returns the set of flags that is suitable for parsing a translation unit + * that is being edited. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_defaultEditingTranslationUnitOptions(): CUnsignedInt = extern + +/** Returns the set of flags that is suitable for reparsing a translation unit. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_defaultReparseOptions(TU: CXTranslationUnit): CUnsignedInt = + extern + +/** Returns the set of flags that is suitable for saving a translation unit. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_defaultSaveOptions(TU: CXTranslationUnit): CUnsignedInt = + extern + +/** Disposes a CXCursorSet and releases its associated memory. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_disposeCXCursorSet(cset: CXCursorSet): Unit = extern + +/** Free the memory associated with a CXPlatformAvailability structure. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_disposeCXPlatformAvailability( + availability: Ptr[CXPlatformAvailability] +): Unit = extern + +/** Free the given set of code-completion results. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_disposeCodeCompleteResults( + Results: Ptr[CXCodeCompleteResults] +): Unit = extern + +/** Destroy a diagnostic. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/CXDiagnostic.h + */ +@extern def clang_disposeDiagnostic(Diagnostic: CXDiagnostic): Unit = extern + +/** Release a CXDiagnosticSet and all of its contained diagnostics. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/CXDiagnostic.h + */ +@extern def clang_disposeDiagnosticSet(Diags: CXDiagnosticSet): Unit = extern + +/** Destroy the given index. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_disposeIndex(index: CXIndex): Unit = extern + +/** Free the set of overridden cursors returned by clang_getOverriddenCursors(). + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_disposeOverriddenCursors(overridden: Ptr[CXCursor]): Unit = + extern + +/** Destroy the given CXSourceRangeList. + * + * [bindgen] header: + * /opt/homebrew/opt/llvm@17/include/clang-c/CXSourceLocation.h + */ +@extern def clang_disposeSourceRangeList(ranges: Ptr[CXSourceRangeList]): Unit = + extern + +/** Free the given string set. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/CXString.h + */ +@extern def clang_disposeStringSet(set: Ptr[CXStringSet]): Unit = extern + +/** Free the given set of tokens. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_disposeTokens( + TU: CXTranslationUnit, + Tokens: Ptr[CXToken], + NumTokens: CUnsignedInt +): Unit = extern + +/** Destroy the specified CXTranslationUnit object. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_disposeTranslationUnit(_0: CXTranslationUnit): Unit = extern + +/** [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_enableStackTraces(): Unit = extern + +/** [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_executeOnThread( + fn: CFuncPtr1[Ptr[Byte], Unit], + user_data: Ptr[Byte], + stack_size: CUnsignedInt +): Unit = extern + +/** [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_findIncludesInFileWithBlock( + _0: CXTranslationUnit, + _1: CXFile, + _2: CXCursorAndRangeVisitorBlock +): CXResult = extern + +/** free memory allocated by libclang, such as the buffer returned by + * CXVirtualFileOverlay() or clang_ModuleMapDescriptor_writeToBuffer(). + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/BuildSystem.h + */ +@extern def clang_free(buffer: Ptr[Byte]): Unit = extern + +/** Retrieve all ranges from all files that were skipped by the preprocessor. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_getAllSkippedRanges( + tu: CXTranslationUnit +): Ptr[CXSourceRangeList] = extern + +/** Return the timestamp for use with Clang's -fbuild-session-timestamp= option. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/BuildSystem.h + */ +@extern def clang_getBuildSessionTimestamp(): CUnsignedLongLong = extern + +/** Retrieve the child diagnostics of a CXDiagnostic. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/CXDiagnostic.h + */ +@extern def clang_getChildDiagnostics(D: CXDiagnostic): CXDiagnosticSet = extern + +/** Determine the availability of the entity that this code-completion string + * refers to. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_getCompletionAvailability( + completion_string: CXCompletionString +): CXAvailabilityKind = extern + +/** Retrieve the completion string associated with a particular chunk within a + * completion string. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_getCompletionChunkCompletionString( + completion_string: CXCompletionString, + chunk_number: CUnsignedInt +): CXCompletionString = extern + +/** Determine the kind of a particular chunk within a completion string. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_getCompletionChunkKind( + completion_string: CXCompletionString, + chunk_number: CUnsignedInt +): CXCompletionChunkKind = extern + +/** Retrieve the number of annotations associated with the given completion + * string. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_getCompletionNumAnnotations( + completion_string: CXCompletionString +): CUnsignedInt = extern + +/** Retrieve the number of fix-its for the given completion index. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_getCompletionNumFixIts( + results: Ptr[CXCodeCompleteResults], + completion_index: CUnsignedInt +): CUnsignedInt = extern + +/** Determine the priority of this code completion. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_getCompletionPriority( + completion_string: CXCompletionString +): CUnsignedInt = extern + +/** Retrieve a diagnostic associated with the given translation unit. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_getDiagnostic( + Unit: CXTranslationUnit, + Index: CUnsignedInt +): CXDiagnostic = extern + +/** Retrieve the category number for this diagnostic. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/CXDiagnostic.h + */ +@extern def clang_getDiagnosticCategory(_0: CXDiagnostic): CUnsignedInt = extern + +/** Retrieve a diagnostic associated with the given CXDiagnosticSet. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/CXDiagnostic.h + */ +@extern def clang_getDiagnosticInSet( + Diags: CXDiagnosticSet, + Index: CUnsignedInt +): CXDiagnostic = extern + +/** Determine the number of fix-it hints associated with the given diagnostic. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/CXDiagnostic.h + */ +@extern def clang_getDiagnosticNumFixIts( + Diagnostic: CXDiagnostic +): CUnsignedInt = extern + +/** Determine the number of source ranges associated with the given diagnostic. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/CXDiagnostic.h + */ +@extern def clang_getDiagnosticNumRanges(_0: CXDiagnostic): CUnsignedInt = + extern + +/** Retrieve the complete set of diagnostics associated with a translation unit. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_getDiagnosticSetFromTU( + Unit: CXTranslationUnit +): CXDiagnosticSet = extern + +/** Determine the severity of the given diagnostic. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/CXDiagnostic.h + */ +@extern def clang_getDiagnosticSeverity( + _0: CXDiagnostic +): CXDiagnosticSeverity = extern + +/** Retrieve a file handle within the given translation unit. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_getFile(tu: CXTranslationUnit, file_name: CString): CXFile = + extern + +/** Retrieve the buffer associated with the given file. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_getFileContents( + tu: CXTranslationUnit, + file: CXFile, + size: Ptr[size_t] +): CString = extern + +/** Retrieve the last modification time of the given file. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/CXFile.h + */ +@extern def clang_getFileTime(SFile: CXFile): time_t = extern + +/** Retrieve the unique ID for the given file. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/CXFile.h + */ +@extern def clang_getFileUniqueID( + file: CXFile, + outID: Ptr[CXFileUniqueID] +): CInt = extern + +/** Visit the set of preprocessor inclusions in a translation unit. The visitor + * function is called with the provided data for every included file. This does + * not include headers included by the PCH file (unless one is inspecting the + * inclusions in the PCH file itself). + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_getInclusions( + tu: CXTranslationUnit, + visitor: CXInclusionVisitor, + client_data: CXClientData +): Unit = extern + +/** Given a CXFile header file, return the module that contains it, if one + * exists. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_getModuleForFile( + _0: CXTranslationUnit, + _1: CXFile +): CXModule = extern + +/** Retrieve the number of chunks in the given code-completion string. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_getNumCompletionChunks( + completion_string: CXCompletionString +): CUnsignedInt = extern + +/** Determine the number of diagnostics produced for the given translation unit. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_getNumDiagnostics(Unit: CXTranslationUnit): CUnsignedInt = + extern + +/** Determine the number of diagnostics in a CXDiagnosticSet. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/CXDiagnostic.h + */ +@extern def clang_getNumDiagnosticsInSet(Diags: CXDiagnosticSet): CUnsignedInt = + extern + +/** Retrieve a remapping. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_getRemappings(path: CString): CXRemapping = extern + +/** Retrieve a remapping. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_getRemappingsFromFileList( + filePaths: Ptr[CString], + numFiles: CUnsignedInt +): CXRemapping = extern + +/** Retrieve all ranges that were skipped by the preprocessor. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_getSkippedRanges( + tu: CXTranslationUnit, + file: CXFile +): Ptr[CXSourceRangeList] = extern + +/** Returns the human-readable null-terminated C string that represents the name + * of the memory category. This string should never be freed. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_getTUResourceUsageName(kind: CXTUResourceUsageKind): CString = + extern + +/** Get target information for this translation unit. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_getTranslationUnitTargetInfo( + CTUnit: CXTranslationUnit +): CXTargetInfo = extern + +/** Index the given source file and the translation unit corresponding to that + * file via callbacks implemented through #IndexerCallbacks. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_indexSourceFile( + _0: CXIndexAction, + client_data: CXClientData, + index_callbacks: Ptr[IndexerCallbacks], + index_callbacks_size: CUnsignedInt, + index_options: CUnsignedInt, + source_filename: CString, + command_line_args: Ptr[CString], + num_command_line_args: CInt, + unsaved_files: Ptr[CXUnsavedFile], + num_unsaved_files: CUnsignedInt, + out_TU: Ptr[CXTranslationUnit], + TU_options: CUnsignedInt +): CInt = extern + +/** Same as clang_indexSourceFile but requires a full command line for + * command_line_args including argv[0]. This is useful if the standard library + * paths are relative to the binary. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_indexSourceFileFullArgv( + _0: CXIndexAction, + client_data: CXClientData, + index_callbacks: Ptr[IndexerCallbacks], + index_callbacks_size: CUnsignedInt, + index_options: CUnsignedInt, + source_filename: CString, + command_line_args: Ptr[CString], + num_command_line_args: CInt, + unsaved_files: Ptr[CXUnsavedFile], + num_unsaved_files: CUnsignedInt, + out_TU: Ptr[CXTranslationUnit], + TU_options: CUnsignedInt +): CInt = extern + +/** Index the given translation unit via callbacks implemented through + * #IndexerCallbacks. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_indexTranslationUnit( + _0: CXIndexAction, + client_data: CXClientData, + index_callbacks: Ptr[IndexerCallbacks], + index_callbacks_size: CUnsignedInt, + index_options: CUnsignedInt, + _5: CXTranslationUnit +): CInt = extern + +/** [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_index_getCXXClassDeclInfo( + _0: Ptr[CXIdxDeclInfo] +): Ptr[CXIdxCXXClassDeclInfo] = extern + +/** For retrieving a custom CXIdxClientContainer attached to a container. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_index_getClientContainer( + _0: Ptr[CXIdxContainerInfo] +): CXIdxClientContainer = extern + +/** For retrieving a custom CXIdxClientEntity attached to an entity. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_index_getClientEntity( + _0: Ptr[CXIdxEntityInfo] +): CXIdxClientEntity = extern + +/** [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_index_getIBOutletCollectionAttrInfo( + _0: Ptr[CXIdxAttrInfo] +): Ptr[CXIdxIBOutletCollectionAttrInfo] = extern + +/** [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_index_getObjCCategoryDeclInfo( + _0: Ptr[CXIdxDeclInfo] +): Ptr[CXIdxObjCCategoryDeclInfo] = extern + +/** [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_index_getObjCContainerDeclInfo( + _0: Ptr[CXIdxDeclInfo] +): Ptr[CXIdxObjCContainerDeclInfo] = extern + +/** [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_index_getObjCInterfaceDeclInfo( + _0: Ptr[CXIdxDeclInfo] +): Ptr[CXIdxObjCInterfaceDeclInfo] = extern + +/** [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_index_getObjCPropertyDeclInfo( + _0: Ptr[CXIdxDeclInfo] +): Ptr[CXIdxObjCPropertyDeclInfo] = extern + +/** [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_index_getObjCProtocolRefListInfo( + _0: Ptr[CXIdxDeclInfo] +): Ptr[CXIdxObjCProtocolRefListInfo] = extern + +/** [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_index_isEntityObjCContainerKind(_0: CXIdxEntityKind): CInt = + extern + +/** For setting a custom CXIdxClientContainer attached to a container. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_index_setClientContainer( + _0: Ptr[CXIdxContainerInfo], + _1: CXIdxClientContainer +): Unit = extern + +/** For setting a custom CXIdxClientEntity attached to an entity. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_index_setClientEntity( + _0: Ptr[CXIdxEntityInfo], + _1: CXIdxClientEntity +): Unit = extern + +/** Determine whether the given cursor kind represents an attribute. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_isAttribute(_0: CXCursorKind): CUnsignedInt = extern + +/** Determine whether the given cursor kind represents a declaration. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_isDeclaration(_0: CXCursorKind): CUnsignedInt = extern + +/** Determine whether the given cursor kind represents an expression. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_isExpression(_0: CXCursorKind): CUnsignedInt = extern + +/** Determine whether the given header is guarded against multiple inclusions, + * either with the conventional #ifndef/#define/#endif macro guards or with + * #pragma once. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_isFileMultipleIncludeGuarded( + tu: CXTranslationUnit, + file: CXFile +): CUnsignedInt = extern + +/** Determine whether the given cursor kind represents an invalid cursor. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_isInvalid(_0: CXCursorKind): CUnsignedInt = extern + +/** * Determine whether the given cursor represents a preprocessing element, + * such as a preprocessor directive or macro instantiation. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_isPreprocessing(_0: CXCursorKind): CUnsignedInt = extern + +/** Determine whether the given cursor kind represents a simple reference. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_isReference(_0: CXCursorKind): CUnsignedInt = extern + +/** Determine whether the given cursor kind represents a statement. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_isStatement(_0: CXCursorKind): CUnsignedInt = extern + +/** Determine whether the given cursor kind represents a translation unit. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_isTranslationUnit(_0: CXCursorKind): CUnsignedInt = extern + +/** * Determine whether the given cursor represents a currently unexposed piece + * of the AST (e.g., CXCursor_UnexposedStmt). + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_isUnexposed(_0: CXCursorKind): CUnsignedInt = extern + +/** Deserialize a set of diagnostics from a Clang diagnostics bitcode file. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/CXDiagnostic.h + */ +@extern def clang_loadDiagnostics( + file: CString, + error: Ptr[CXLoadDiag_Error], + errorString: Ptr[CXString] +): CXDiagnosticSet = extern + +/** Same as clang_parseTranslationUnit2, but returns the CXTranslationUnit + * instead of an error code. In case of an error this routine returns a NULL + * CXTranslationUnit, without further detailed error codes. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_parseTranslationUnit( + CIdx: CXIndex, + source_filename: CString, + command_line_args: Ptr[CString], + num_command_line_args: CInt, + unsaved_files: Ptr[CXUnsavedFile], + num_unsaved_files: CUnsignedInt, + options: CUnsignedInt +): CXTranslationUnit = extern + +/** Parse the given source file and the translation unit corresponding to that + * file. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_parseTranslationUnit2( + CIdx: CXIndex, + source_filename: CString, + command_line_args: Ptr[CString], + num_command_line_args: CInt, + unsaved_files: Ptr[CXUnsavedFile], + num_unsaved_files: CUnsignedInt, + options: CUnsignedInt, + out_TU: Ptr[CXTranslationUnit] +): CXErrorCode = extern + +/** Same as clang_parseTranslationUnit2 but requires a full command line for + * command_line_args including argv[0]. This is useful if the standard library + * paths are relative to the binary. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_parseTranslationUnit2FullArgv( + CIdx: CXIndex, + source_filename: CString, + command_line_args: Ptr[CString], + num_command_line_args: CInt, + unsaved_files: Ptr[CXUnsavedFile], + num_unsaved_files: CUnsignedInt, + options: CUnsignedInt, + out_TU: Ptr[CXTranslationUnit] +): CXErrorCode = extern + +/** Dispose the remapping. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_remap_dispose(_0: CXRemapping): Unit = extern + +/** Get the original and the associated filename from the remapping. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_remap_getFilenames( + _0: CXRemapping, + index: CUnsignedInt, + original: Ptr[CXString], + transformed: Ptr[CXString] +): Unit = extern + +/** Determine the number of remappings. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_remap_getNumFiles(_0: CXRemapping): CUnsignedInt = extern + +/** Reparse the source files that produced this translation unit. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_reparseTranslationUnit( + TU: CXTranslationUnit, + num_unsaved_files: CUnsignedInt, + unsaved_files: Ptr[CXUnsavedFile], + options: CUnsignedInt +): CInt = extern + +/** Saves a translation unit into a serialized representation of that + * translation unit on disk. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_saveTranslationUnit( + TU: CXTranslationUnit, + FileName: CString, + options: CUnsignedInt +): CInt = extern + +/** Sort the code-completion results in case-insensitive alphabetical order. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_sortCodeCompletionResults( + Results: Ptr[CXCompletionResult], + NumResults: CUnsignedInt +): Unit = extern + +/** Suspend a translation unit in order to free memory associated with it. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_suspendTranslationUnit(_0: CXTranslationUnit): CUnsignedInt = + extern + +/** Enable/disable crash recovery. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +@extern def clang_toggleCrashRecovery(isEnabled: CUnsignedInt): Unit = extern /** Queries a CXCursorSet to see if it contains a specific CXCursor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_CXCursorSet_contains(cset: CXCursorSet, cursor: CXCursor)(using Zone @@ -2113,7 +2190,7 @@ end clang_CXCursorSet_contains /** Queries a CXCursorSet to see if it contains a specific CXCursor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_CXCursorSet_contains( cset: CXCursorSet, @@ -2123,7 +2200,7 @@ def clang_CXCursorSet_contains( /** Inserts a CXCursor into a CXCursorSet. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_CXCursorSet_insert( cset: CXCursorSet, @@ -2133,7 +2210,7 @@ def clang_CXCursorSet_insert( /** Inserts a CXCursor into a CXCursorSet. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_CXCursorSet_insert(cset: CXCursorSet, cursor: CXCursor)(using Zone @@ -2145,7 +2222,7 @@ end clang_CXCursorSet_insert /** Determine if a C++ constructor is a converting constructor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_CXXConstructor_isConvertingConstructor(C: CXCursor)(using Zone @@ -2157,7 +2234,7 @@ end clang_CXXConstructor_isConvertingConstructor /** Determine if a C++ constructor is a converting constructor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_CXXConstructor_isConvertingConstructor( C: Ptr[CXCursor] @@ -2166,7 +2243,14 @@ def clang_CXXConstructor_isConvertingConstructor( /** Determine if a C++ constructor is a copy constructor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +def clang_CXXConstructor_isCopyConstructor(C: Ptr[CXCursor]): CUnsignedInt = + __sn_wrap_libclang_clang_CXXConstructor_isCopyConstructor(C) + +/** Determine if a C++ constructor is a copy constructor. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_CXXConstructor_isCopyConstructor(C: CXCursor)(using Zone @@ -2176,16 +2260,9 @@ def clang_CXXConstructor_isCopyConstructor(C: CXCursor)(using __sn_wrap_libclang_clang_CXXConstructor_isCopyConstructor((__ptr_0 + 0)) end clang_CXXConstructor_isCopyConstructor -/** Determine if a C++ constructor is a copy constructor. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ -def clang_CXXConstructor_isCopyConstructor(C: Ptr[CXCursor]): CUnsignedInt = - __sn_wrap_libclang_clang_CXXConstructor_isCopyConstructor(C) - /** Determine if a C++ constructor is the default constructor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_CXXConstructor_isDefaultConstructor(C: CXCursor)(using Zone @@ -2197,14 +2274,14 @@ end clang_CXXConstructor_isDefaultConstructor /** Determine if a C++ constructor is the default constructor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_CXXConstructor_isDefaultConstructor(C: Ptr[CXCursor]): CUnsignedInt = __sn_wrap_libclang_clang_CXXConstructor_isDefaultConstructor(C) /** Determine if a C++ constructor is a move constructor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_CXXConstructor_isMoveConstructor(C: CXCursor)(using Zone @@ -2216,31 +2293,31 @@ end clang_CXXConstructor_isMoveConstructor /** Determine if a C++ constructor is a move constructor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_CXXConstructor_isMoveConstructor(C: Ptr[CXCursor]): CUnsignedInt = __sn_wrap_libclang_clang_CXXConstructor_isMoveConstructor(C) /** Determine if a C++ field is declared 'mutable'. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ -def clang_CXXField_isMutable(C: Ptr[CXCursor]): CUnsignedInt = - __sn_wrap_libclang_clang_CXXField_isMutable(C) - -/** Determine if a C++ field is declared 'mutable'. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_CXXField_isMutable(C: CXCursor)(using Zone): CUnsignedInt = val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) !(__ptr_0 + 0) = C __sn_wrap_libclang_clang_CXXField_isMutable((__ptr_0 + 0)) +/** Determine if a C++ field is declared 'mutable'. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +def clang_CXXField_isMutable(C: Ptr[CXCursor]): CUnsignedInt = + __sn_wrap_libclang_clang_CXXField_isMutable(C) + /** Determine if a C++ member function or member function template is declared * 'const'. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_CXXMethod_isConst(C: CXCursor)(using Zone): CUnsignedInt = val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) @@ -2250,14 +2327,35 @@ def clang_CXXMethod_isConst(C: CXCursor)(using Zone): CUnsignedInt = /** Determine if a C++ member function or member function template is declared * 'const'. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_CXXMethod_isConst(C: Ptr[CXCursor]): CUnsignedInt = __sn_wrap_libclang_clang_CXXMethod_isConst(C) +/** Determine if a C++ member function is a copy-assignment operator, returning + * 1 if such is the case and 0 otherwise. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +def clang_CXXMethod_isCopyAssignmentOperator(C: CXCursor)(using + Zone +): CUnsignedInt = + val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) + !(__ptr_0 + 0) = C + __sn_wrap_libclang_clang_CXXMethod_isCopyAssignmentOperator((__ptr_0 + 0)) +end clang_CXXMethod_isCopyAssignmentOperator + +/** Determine if a C++ member function is a copy-assignment operator, returning + * 1 if such is the case and 0 otherwise. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +def clang_CXXMethod_isCopyAssignmentOperator(C: Ptr[CXCursor]): CUnsignedInt = + __sn_wrap_libclang_clang_CXXMethod_isCopyAssignmentOperator(C) + /** Determine if a C++ method is declared '= default'. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_CXXMethod_isDefaulted(C: CXCursor)(using Zone): CUnsignedInt = val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) @@ -2266,15 +2364,70 @@ def clang_CXXMethod_isDefaulted(C: CXCursor)(using Zone): CUnsignedInt = /** Determine if a C++ method is declared '= default'. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_CXXMethod_isDefaulted(C: Ptr[CXCursor]): CUnsignedInt = __sn_wrap_libclang_clang_CXXMethod_isDefaulted(C) +/** Determine if a C++ method is declared '= delete'. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +def clang_CXXMethod_isDeleted(C: Ptr[CXCursor]): CUnsignedInt = + __sn_wrap_libclang_clang_CXXMethod_isDeleted(C) + +/** Determine if a C++ method is declared '= delete'. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +def clang_CXXMethod_isDeleted(C: CXCursor)(using Zone): CUnsignedInt = + val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) + !(__ptr_0 + 0) = C + __sn_wrap_libclang_clang_CXXMethod_isDeleted((__ptr_0 + 0)) + +/** Determines if a C++ constructor or conversion function was declared + * explicit, returning 1 if such is the case and 0 otherwise. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +def clang_CXXMethod_isExplicit(C: Ptr[CXCursor]): CUnsignedInt = + __sn_wrap_libclang_clang_CXXMethod_isExplicit(C) + +/** Determines if a C++ constructor or conversion function was declared + * explicit, returning 1 if such is the case and 0 otherwise. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +def clang_CXXMethod_isExplicit(C: CXCursor)(using Zone): CUnsignedInt = + val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) + !(__ptr_0 + 0) = C + __sn_wrap_libclang_clang_CXXMethod_isExplicit((__ptr_0 + 0)) + +/** Determine if a C++ member function is a move-assignment operator, returning + * 1 if such is the case and 0 otherwise. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +def clang_CXXMethod_isMoveAssignmentOperator(C: Ptr[CXCursor]): CUnsignedInt = + __sn_wrap_libclang_clang_CXXMethod_isMoveAssignmentOperator(C) + +/** Determine if a C++ member function is a move-assignment operator, returning + * 1 if such is the case and 0 otherwise. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +def clang_CXXMethod_isMoveAssignmentOperator(C: CXCursor)(using + Zone +): CUnsignedInt = + val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) + !(__ptr_0 + 0) = C + __sn_wrap_libclang_clang_CXXMethod_isMoveAssignmentOperator((__ptr_0 + 0)) +end clang_CXXMethod_isMoveAssignmentOperator + /** Determine if a C++ member function or member function template is pure * virtual. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_CXXMethod_isPureVirtual(C: Ptr[CXCursor]): CUnsignedInt = __sn_wrap_libclang_clang_CXXMethod_isPureVirtual(C) @@ -2282,7 +2435,7 @@ def clang_CXXMethod_isPureVirtual(C: Ptr[CXCursor]): CUnsignedInt = /** Determine if a C++ member function or member function template is pure * virtual. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_CXXMethod_isPureVirtual(C: CXCursor)(using Zone): CUnsignedInt = val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) @@ -2292,7 +2445,7 @@ def clang_CXXMethod_isPureVirtual(C: CXCursor)(using Zone): CUnsignedInt = /** Determine if a C++ member function or member function template is declared * 'static'. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_CXXMethod_isStatic(C: CXCursor)(using Zone): CUnsignedInt = val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) @@ -2302,7 +2455,7 @@ def clang_CXXMethod_isStatic(C: CXCursor)(using Zone): CUnsignedInt = /** Determine if a C++ member function or member function template is declared * 'static'. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_CXXMethod_isStatic(C: Ptr[CXCursor]): CUnsignedInt = __sn_wrap_libclang_clang_CXXMethod_isStatic(C) @@ -2311,7 +2464,7 @@ def clang_CXXMethod_isStatic(C: Ptr[CXCursor]): CUnsignedInt = * declared 'virtual' or if it overrides a virtual method from one of the base * classes. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_CXXMethod_isVirtual(C: Ptr[CXCursor]): CUnsignedInt = __sn_wrap_libclang_clang_CXXMethod_isVirtual(C) @@ -2320,7 +2473,7 @@ def clang_CXXMethod_isVirtual(C: Ptr[CXCursor]): CUnsignedInt = * declared 'virtual' or if it overrides a virtual method from one of the base * classes. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_CXXMethod_isVirtual(C: CXCursor)(using Zone): CUnsignedInt = val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) @@ -2330,7 +2483,7 @@ def clang_CXXMethod_isVirtual(C: CXCursor)(using Zone): CUnsignedInt = /** Determine if a C++ record is abstract, i.e. whether a class or struct has a * pure virtual member function. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_CXXRecord_isAbstract(C: CXCursor)(using Zone): CUnsignedInt = val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) @@ -2340,7 +2493,7 @@ def clang_CXXRecord_isAbstract(C: CXCursor)(using Zone): CUnsignedInt = /** Determine if a C++ record is abstract, i.e. whether a class or struct has a * pure virtual member function. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_CXXRecord_isAbstract(C: Ptr[CXCursor]): CUnsignedInt = __sn_wrap_libclang_clang_CXXRecord_isAbstract(C) @@ -2349,25 +2502,25 @@ def clang_CXXRecord_isAbstract(C: Ptr[CXCursor]): CUnsignedInt = * its variable, tries to evaluate its initializer, into its corresponding * type. If it's an expression, tries to evaluate the expression. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_Cursor_Evaluate(C: Ptr[CXCursor]): CXEvalResult = - __sn_wrap_libclang_clang_Cursor_Evaluate(C) +def clang_Cursor_Evaluate(C: CXCursor)(using Zone): CXEvalResult = + val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) + !(__ptr_0 + 0) = C + __sn_wrap_libclang_clang_Cursor_Evaluate((__ptr_0 + 0)) /** If cursor is a statement declaration tries to evaluate the statement and if * its variable, tries to evaluate its initializer, into its corresponding * type. If it's an expression, tries to evaluate the expression. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_Cursor_Evaluate(C: CXCursor)(using Zone): CXEvalResult = - val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) - !(__ptr_0 + 0) = C - __sn_wrap_libclang_clang_Cursor_Evaluate((__ptr_0 + 0)) +def clang_Cursor_Evaluate(C: Ptr[CXCursor]): CXEvalResult = + __sn_wrap_libclang_clang_Cursor_Evaluate(C) /** Retrieve the argument cursor of a function or method. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Cursor_getArgument(C: CXCursor, i: CUnsignedInt)(using Zone @@ -2380,45 +2533,29 @@ end clang_Cursor_getArgument /** Retrieve the argument cursor of a function or method. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ -def clang_Cursor_getArgument(C: Ptr[CXCursor], i: CUnsignedInt)(using - Zone -): CXCursor = - val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) - __sn_wrap_libclang_clang_Cursor_getArgument(C, i, (__ptr_0 + 0)) - !(__ptr_0 + 0) -end clang_Cursor_getArgument - -/** Retrieve the argument cursor of a function or method. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Cursor_getArgument(C: Ptr[CXCursor], i: CUnsignedInt)( __return: Ptr[CXCursor] ): Unit = __sn_wrap_libclang_clang_Cursor_getArgument(C, i, __return) -/** Given a cursor that represents a documentable entity (e.g., declaration), - * return the associated first paragraph. +/** Retrieve the argument cursor of a function or method. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_Cursor_getBriefCommentText(C: CXCursor)(using Zone): CXString = - val __ptr_0: Ptr[CXString] = alloc[CXString](1) - val __ptr_1: Ptr[CXCursor] = alloc[CXCursor](1) - !(__ptr_1 + 0) = C - __sn_wrap_libclang_clang_Cursor_getBriefCommentText( - (__ptr_1 + 0), - (__ptr_0 + 0) - ) +def clang_Cursor_getArgument(C: Ptr[CXCursor], i: CUnsignedInt)(using + Zone +): CXCursor = + val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) + __sn_wrap_libclang_clang_Cursor_getArgument(C, i, (__ptr_0 + 0)) !(__ptr_0 + 0) -end clang_Cursor_getBriefCommentText +end clang_Cursor_getArgument /** Given a cursor that represents a documentable entity (e.g., declaration), * return the associated first paragraph. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Cursor_getBriefCommentText(C: Ptr[CXCursor])(using Zone): CXString = val __ptr_0: Ptr[CXString] = alloc[CXString](1) @@ -2428,115 +2565,131 @@ def clang_Cursor_getBriefCommentText(C: Ptr[CXCursor])(using Zone): CXString = /** Given a cursor that represents a documentable entity (e.g., declaration), * return the associated first paragraph. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Cursor_getBriefCommentText(C: Ptr[CXCursor])( __return: Ptr[CXString] ): Unit = __sn_wrap_libclang_clang_Cursor_getBriefCommentText(C, __return) -/** Retrieve the CXStrings representing the mangled symbols of the C++ - * constructor or destructor at the cursor. +/** Given a cursor that represents a documentable entity (e.g., declaration), + * return the associated first paragraph. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_Cursor_getCXXManglings(_0: CXCursor)(using Zone): Ptr[CXStringSet] = +def clang_Cursor_getBriefCommentText(C: CXCursor)(using Zone): CXString = val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) - !(__ptr_0 + 0) = _0 - __sn_wrap_libclang_clang_Cursor_getCXXManglings((__ptr_0 + 0)) + val __ptr_1: Ptr[CXString] = alloc[CXString](1) + !(__ptr_0 + 0) = C + __sn_wrap_libclang_clang_Cursor_getBriefCommentText( + (__ptr_0 + 0), + (__ptr_1 + 0) + ) + !(__ptr_1 + 0) +end clang_Cursor_getBriefCommentText /** Retrieve the CXStrings representing the mangled symbols of the C++ * constructor or destructor at the cursor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Cursor_getCXXManglings(_0: Ptr[CXCursor]): Ptr[CXStringSet] = __sn_wrap_libclang_clang_Cursor_getCXXManglings(_0) -/** Given a cursor that represents a declaration, return the associated - * comment's source range. The range may include multiple consecutive comments - * with whitespace in between. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ -def clang_Cursor_getCommentRange(C: Ptr[CXCursor])(using Zone): CXSourceRange = - val __ptr_0: Ptr[CXSourceRange] = alloc[CXSourceRange](1) - __sn_wrap_libclang_clang_Cursor_getCommentRange(C, (__ptr_0 + 0)) - !(__ptr_0 + 0) - -/** Given a cursor that represents a declaration, return the associated - * comment's source range. The range may include multiple consecutive comments - * with whitespace in between. +/** Retrieve the CXStrings representing the mangled symbols of the C++ + * constructor or destructor at the cursor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_Cursor_getCommentRange(C: CXCursor)(using Zone): CXSourceRange = - val __ptr_0: Ptr[CXSourceRange] = alloc[CXSourceRange](1) - val __ptr_1: Ptr[CXCursor] = alloc[CXCursor](1) - !(__ptr_1 + 0) = C - __sn_wrap_libclang_clang_Cursor_getCommentRange((__ptr_1 + 0), (__ptr_0 + 0)) - !(__ptr_0 + 0) -end clang_Cursor_getCommentRange +def clang_Cursor_getCXXManglings(_0: CXCursor)(using Zone): Ptr[CXStringSet] = + val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) + !(__ptr_0 + 0) = _0 + __sn_wrap_libclang_clang_Cursor_getCXXManglings((__ptr_0 + 0)) /** Given a cursor that represents a declaration, return the associated * comment's source range. The range may include multiple consecutive comments * with whitespace in between. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Cursor_getCommentRange(C: Ptr[CXCursor])( __return: Ptr[CXSourceRange] ): Unit = __sn_wrap_libclang_clang_Cursor_getCommentRange(C, __return) -/** Retrieve the CXString representing the mangled name of the cursor. +/** Given a cursor that represents a declaration, return the associated + * comment's source range. The range may include multiple consecutive comments + * with whitespace in between. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_Cursor_getMangling(_0: Ptr[CXCursor])(__return: Ptr[CXString]): Unit = - __sn_wrap_libclang_clang_Cursor_getMangling(_0, __return) +def clang_Cursor_getCommentRange(C: Ptr[CXCursor])(using Zone): CXSourceRange = + val __ptr_0: Ptr[CXSourceRange] = alloc[CXSourceRange](1) + __sn_wrap_libclang_clang_Cursor_getCommentRange(C, (__ptr_0 + 0)) + !(__ptr_0 + 0) -/** Retrieve the CXString representing the mangled name of the cursor. +/** Given a cursor that represents a declaration, return the associated + * comment's source range. The range may include multiple consecutive comments + * with whitespace in between. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_Cursor_getMangling(_0: CXCursor)(using Zone): CXString = - val __ptr_0: Ptr[CXString] = alloc[CXString](1) +def clang_Cursor_getCommentRange(C: CXCursor)(using Zone): CXSourceRange = + val __ptr_0: Ptr[CXSourceRange] = alloc[CXSourceRange](1) val __ptr_1: Ptr[CXCursor] = alloc[CXCursor](1) - !(__ptr_1 + 0) = _0 - __sn_wrap_libclang_clang_Cursor_getMangling((__ptr_1 + 0), (__ptr_0 + 0)) + !(__ptr_1 + 0) = C + __sn_wrap_libclang_clang_Cursor_getCommentRange((__ptr_1 + 0), (__ptr_0 + 0)) !(__ptr_0 + 0) -end clang_Cursor_getMangling +end clang_Cursor_getCommentRange /** Retrieve the CXString representing the mangled name of the cursor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Cursor_getMangling(_0: Ptr[CXCursor])(using Zone): CXString = val __ptr_0: Ptr[CXString] = alloc[CXString](1) __sn_wrap_libclang_clang_Cursor_getMangling(_0, (__ptr_0 + 0)) !(__ptr_0 + 0) -/** Given a CXCursor_ModuleImportDecl cursor, return the associated module. +/** Retrieve the CXString representing the mangled name of the cursor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_Cursor_getModule(C: Ptr[CXCursor]): CXModule = - __sn_wrap_libclang_clang_Cursor_getModule(C) +def clang_Cursor_getMangling(_0: CXCursor)(using Zone): CXString = + val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) + val __ptr_1: Ptr[CXString] = alloc[CXString](1) + !(__ptr_0 + 0) = _0 + __sn_wrap_libclang_clang_Cursor_getMangling((__ptr_0 + 0), (__ptr_1 + 0)) + !(__ptr_1 + 0) +end clang_Cursor_getMangling + +/** Retrieve the CXString representing the mangled name of the cursor. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +def clang_Cursor_getMangling(_0: Ptr[CXCursor])(__return: Ptr[CXString]): Unit = + __sn_wrap_libclang_clang_Cursor_getMangling(_0, __return) /** Given a CXCursor_ModuleImportDecl cursor, return the associated module. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Cursor_getModule(C: CXCursor)(using Zone): CXModule = val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) !(__ptr_0 + 0) = C __sn_wrap_libclang_clang_Cursor_getModule((__ptr_0 + 0)) +/** Given a CXCursor_ModuleImportDecl cursor, return the associated module. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +def clang_Cursor_getModule(C: Ptr[CXCursor]): CXModule = + __sn_wrap_libclang_clang_Cursor_getModule(C) + /** Retrieve the number of non-variadic arguments associated with a given * cursor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Cursor_getNumArguments(C: Ptr[CXCursor]): CInt = __sn_wrap_libclang_clang_Cursor_getNumArguments(C) @@ -2544,25 +2697,25 @@ def clang_Cursor_getNumArguments(C: Ptr[CXCursor]): CInt = /** Retrieve the number of non-variadic arguments associated with a given * cursor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Cursor_getNumArguments(C: CXCursor)(using Zone): CInt = val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) !(__ptr_0 + 0) = C __sn_wrap_libclang_clang_Cursor_getNumArguments((__ptr_0 + 0)) -/** Returns the number of template args of a function decl representing a - * template specialization. +/** Returns the number of template args of a function, struct, or class decl + * representing a template specialization. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Cursor_getNumTemplateArguments(C: Ptr[CXCursor]): CInt = __sn_wrap_libclang_clang_Cursor_getNumTemplateArguments(C) -/** Returns the number of template args of a function decl representing a - * template specialization. +/** Returns the number of template args of a function, struct, or class decl + * representing a template specialization. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Cursor_getNumTemplateArguments(C: CXCursor)(using Zone): CInt = val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) @@ -2574,7 +2727,7 @@ def clang_Cursor_getNumTemplateArguments(C: CXCursor)(using Zone): CInt = * type or the parameter respectively. The bits are formed from * CXObjCDeclQualifierKind. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Cursor_getObjCDeclQualifiers(C: Ptr[CXCursor]): CUnsignedInt = __sn_wrap_libclang_clang_Cursor_getObjCDeclQualifiers(C) @@ -2584,36 +2737,35 @@ def clang_Cursor_getObjCDeclQualifiers(C: Ptr[CXCursor]): CUnsignedInt = * type or the parameter respectively. The bits are formed from * CXObjCDeclQualifierKind. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Cursor_getObjCDeclQualifiers(C: CXCursor)(using Zone): CUnsignedInt = val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) !(__ptr_0 + 0) = C __sn_wrap_libclang_clang_Cursor_getObjCDeclQualifiers((__ptr_0 + 0)) -end clang_Cursor_getObjCDeclQualifiers /** Retrieve the CXStrings representing the mangled symbols of the ObjC class * interface or implementation at the cursor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_Cursor_getObjCManglings(_0: Ptr[CXCursor]): Ptr[CXStringSet] = - __sn_wrap_libclang_clang_Cursor_getObjCManglings(_0) +def clang_Cursor_getObjCManglings(_0: CXCursor)(using Zone): Ptr[CXStringSet] = + val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) + !(__ptr_0 + 0) = _0 + __sn_wrap_libclang_clang_Cursor_getObjCManglings((__ptr_0 + 0)) /** Retrieve the CXStrings representing the mangled symbols of the ObjC class * interface or implementation at the cursor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_Cursor_getObjCManglings(_0: CXCursor)(using Zone): Ptr[CXStringSet] = - val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) - !(__ptr_0 + 0) = _0 - __sn_wrap_libclang_clang_Cursor_getObjCManglings((__ptr_0 + 0)) +def clang_Cursor_getObjCManglings(_0: Ptr[CXCursor]): Ptr[CXStringSet] = + __sn_wrap_libclang_clang_Cursor_getObjCManglings(_0) /** Given a cursor that represents a property declaration, return the associated * property attributes. The bits are formed from CXObjCPropertyAttrKind. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Cursor_getObjCPropertyAttributes( C: Ptr[CXCursor], @@ -2624,7 +2776,7 @@ def clang_Cursor_getObjCPropertyAttributes( /** Given a cursor that represents a property declaration, return the associated * property attributes. The bits are formed from CXObjCPropertyAttrKind. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Cursor_getObjCPropertyAttributes(C: CXCursor, reserved: CUnsignedInt)( using Zone @@ -2640,7 +2792,7 @@ end clang_Cursor_getObjCPropertyAttributes /** Given a cursor that represents a property declaration, return the name of * the method that implements the getter. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Cursor_getObjCPropertyGetterName(C: Ptr[CXCursor])(using Zone @@ -2653,33 +2805,33 @@ end clang_Cursor_getObjCPropertyGetterName /** Given a cursor that represents a property declaration, return the name of * the method that implements the getter. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_Cursor_getObjCPropertyGetterName(C: CXCursor)(using Zone): CXString = - val __ptr_0: Ptr[CXString] = alloc[CXString](1) - val __ptr_1: Ptr[CXCursor] = alloc[CXCursor](1) - !(__ptr_1 + 0) = C - __sn_wrap_libclang_clang_Cursor_getObjCPropertyGetterName( - (__ptr_1 + 0), - (__ptr_0 + 0) - ) - !(__ptr_0 + 0) -end clang_Cursor_getObjCPropertyGetterName +def clang_Cursor_getObjCPropertyGetterName(C: Ptr[CXCursor])( + __return: Ptr[CXString] +): Unit = + __sn_wrap_libclang_clang_Cursor_getObjCPropertyGetterName(C, __return) /** Given a cursor that represents a property declaration, return the name of * the method that implements the getter. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_Cursor_getObjCPropertyGetterName(C: Ptr[CXCursor])( - __return: Ptr[CXString] -): Unit = - __sn_wrap_libclang_clang_Cursor_getObjCPropertyGetterName(C, __return) +def clang_Cursor_getObjCPropertyGetterName(C: CXCursor)(using Zone): CXString = + val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) + val __ptr_1: Ptr[CXString] = alloc[CXString](1) + !(__ptr_0 + 0) = C + __sn_wrap_libclang_clang_Cursor_getObjCPropertyGetterName( + (__ptr_0 + 0), + (__ptr_1 + 0) + ) + !(__ptr_1 + 0) +end clang_Cursor_getObjCPropertyGetterName /** Given a cursor that represents a property declaration, return the name of * the method that implements the setter, if any. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Cursor_getObjCPropertySetterName(C: Ptr[CXCursor])(using Zone @@ -2692,7 +2844,7 @@ end clang_Cursor_getObjCPropertySetterName /** Given a cursor that represents a property declaration, return the name of * the method that implements the setter, if any. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Cursor_getObjCPropertySetterName(C: Ptr[CXCursor])( __return: Ptr[CXString] @@ -2702,23 +2854,23 @@ def clang_Cursor_getObjCPropertySetterName(C: Ptr[CXCursor])( /** Given a cursor that represents a property declaration, return the name of * the method that implements the setter, if any. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Cursor_getObjCPropertySetterName(C: CXCursor)(using Zone): CXString = - val __ptr_0: Ptr[CXString] = alloc[CXString](1) - val __ptr_1: Ptr[CXCursor] = alloc[CXCursor](1) - !(__ptr_1 + 0) = C + val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) + val __ptr_1: Ptr[CXString] = alloc[CXString](1) + !(__ptr_0 + 0) = C __sn_wrap_libclang_clang_Cursor_getObjCPropertySetterName( - (__ptr_1 + 0), - (__ptr_0 + 0) + (__ptr_0 + 0), + (__ptr_1 + 0) ) - !(__ptr_0 + 0) + !(__ptr_1 + 0) end clang_Cursor_getObjCPropertySetterName /** If the cursor points to a selector identifier in an Objective-C method or * message expression, this returns the selector index. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Cursor_getObjCSelectorIndex(_0: Ptr[CXCursor]): CInt = __sn_wrap_libclang_clang_Cursor_getObjCSelectorIndex(_0) @@ -2726,7 +2878,7 @@ def clang_Cursor_getObjCSelectorIndex(_0: Ptr[CXCursor]): CInt = /** If the cursor points to a selector identifier in an Objective-C method or * message expression, this returns the selector index. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Cursor_getObjCSelectorIndex(_0: CXCursor)(using Zone): CInt = val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) @@ -2735,24 +2887,34 @@ def clang_Cursor_getObjCSelectorIndex(_0: CXCursor)(using Zone): CInt = /** Return the offset of the field represented by the Cursor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +def clang_Cursor_getOffsetOfField(C: Ptr[CXCursor]): CLongLong = + __sn_wrap_libclang_clang_Cursor_getOffsetOfField(C) + +/** Return the offset of the field represented by the Cursor. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Cursor_getOffsetOfField(C: CXCursor)(using Zone): CLongLong = val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) !(__ptr_0 + 0) = C __sn_wrap_libclang_clang_Cursor_getOffsetOfField((__ptr_0 + 0)) -/** Return the offset of the field represented by the Cursor. +/** Given a cursor that represents a declaration, return the associated comment + * text, including comment markers. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_Cursor_getOffsetOfField(C: Ptr[CXCursor]): CLongLong = - __sn_wrap_libclang_clang_Cursor_getOffsetOfField(C) +def clang_Cursor_getRawCommentText(C: Ptr[CXCursor])(using Zone): CXString = + val __ptr_0: Ptr[CXString] = alloc[CXString](1) + __sn_wrap_libclang_clang_Cursor_getRawCommentText(C, (__ptr_0 + 0)) + !(__ptr_0 + 0) /** Given a cursor that represents a declaration, return the associated comment * text, including comment markers. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Cursor_getRawCommentText(C: Ptr[CXCursor])( __return: Ptr[CXString] @@ -2762,56 +2924,46 @@ def clang_Cursor_getRawCommentText(C: Ptr[CXCursor])( /** Given a cursor that represents a declaration, return the associated comment * text, including comment markers. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ -def clang_Cursor_getRawCommentText(C: Ptr[CXCursor])(using Zone): CXString = - val __ptr_0: Ptr[CXString] = alloc[CXString](1) - __sn_wrap_libclang_clang_Cursor_getRawCommentText(C, (__ptr_0 + 0)) - !(__ptr_0 + 0) - -/** Given a cursor that represents a declaration, return the associated comment - * text, including comment markers. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Cursor_getRawCommentText(C: CXCursor)(using Zone): CXString = - val __ptr_0: Ptr[CXString] = alloc[CXString](1) - val __ptr_1: Ptr[CXCursor] = alloc[CXCursor](1) - !(__ptr_1 + 0) = C + val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) + val __ptr_1: Ptr[CXString] = alloc[CXString](1) + !(__ptr_0 + 0) = C __sn_wrap_libclang_clang_Cursor_getRawCommentText( - (__ptr_1 + 0), - (__ptr_0 + 0) + (__ptr_0 + 0), + (__ptr_1 + 0) ) - !(__ptr_0 + 0) + !(__ptr_1 + 0) end clang_Cursor_getRawCommentText /** Given a cursor pointing to an Objective-C message or property reference, or * C++ method call, returns the CXType of the receiver. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_Cursor_getReceiverType(C: Ptr[CXCursor])(using Zone): CXType = +def clang_Cursor_getReceiverType(C: CXCursor)(using Zone): CXType = val __ptr_0: Ptr[CXType] = alloc[CXType](1) - __sn_wrap_libclang_clang_Cursor_getReceiverType(C, (__ptr_0 + 0)) + val __ptr_1: Ptr[CXCursor] = alloc[CXCursor](1) + !(__ptr_1 + 0) = C + __sn_wrap_libclang_clang_Cursor_getReceiverType((__ptr_1 + 0), (__ptr_0 + 0)) !(__ptr_0 + 0) +end clang_Cursor_getReceiverType /** Given a cursor pointing to an Objective-C message or property reference, or * C++ method call, returns the CXType of the receiver. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_Cursor_getReceiverType(C: CXCursor)(using Zone): CXType = - val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) - val __ptr_1: Ptr[CXType] = alloc[CXType](1) - !(__ptr_0 + 0) = C - __sn_wrap_libclang_clang_Cursor_getReceiverType((__ptr_0 + 0), (__ptr_1 + 0)) - !(__ptr_1 + 0) -end clang_Cursor_getReceiverType +def clang_Cursor_getReceiverType(C: Ptr[CXCursor])(using Zone): CXType = + val __ptr_0: Ptr[CXType] = alloc[CXType](1) + __sn_wrap_libclang_clang_Cursor_getReceiverType(C, (__ptr_0 + 0)) + !(__ptr_0 + 0) /** Given a cursor pointing to an Objective-C message or property reference, or * C++ method call, returns the CXType of the receiver. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Cursor_getReceiverType(C: Ptr[CXCursor])( __return: Ptr[CXType] @@ -2823,18 +2975,16 @@ def clang_Cursor_getReceiverType(C: Ptr[CXCursor])( * Objective-C methods and Objective-C message expressions, there are multiple * pieces for each selector identifier. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Cursor_getSpellingNameRange( - _0: CXCursor, + _0: Ptr[CXCursor], pieceIndex: CUnsignedInt, options: CUnsignedInt )(using Zone): CXSourceRange = val __ptr_0: Ptr[CXSourceRange] = alloc[CXSourceRange](1) - val __ptr_1: Ptr[CXCursor] = alloc[CXCursor](1) - !(__ptr_1 + 0) = _0 __sn_wrap_libclang_clang_Cursor_getSpellingNameRange( - (__ptr_1 + 0), + _0, pieceIndex, options, (__ptr_0 + 0) @@ -2847,16 +2997,18 @@ end clang_Cursor_getSpellingNameRange * Objective-C methods and Objective-C message expressions, there are multiple * pieces for each selector identifier. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Cursor_getSpellingNameRange( - _0: Ptr[CXCursor], + _0: CXCursor, pieceIndex: CUnsignedInt, options: CUnsignedInt )(using Zone): CXSourceRange = val __ptr_0: Ptr[CXSourceRange] = alloc[CXSourceRange](1) + val __ptr_1: Ptr[CXCursor] = alloc[CXCursor](1) + !(__ptr_1 + 0) = _0 __sn_wrap_libclang_clang_Cursor_getSpellingNameRange( - _0, + (__ptr_1 + 0), pieceIndex, options, (__ptr_0 + 0) @@ -2869,7 +3021,7 @@ end clang_Cursor_getSpellingNameRange * Objective-C methods and Objective-C message expressions, there are multiple * pieces for each selector identifier. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Cursor_getSpellingNameRange( _0: Ptr[CXCursor], @@ -2885,23 +3037,33 @@ def clang_Cursor_getSpellingNameRange( /** Returns the storage class for a function or variable declaration. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +def clang_Cursor_getStorageClass(_0: Ptr[CXCursor]): CX_StorageClass = + __sn_wrap_libclang_clang_Cursor_getStorageClass(_0) + +/** Returns the storage class for a function or variable declaration. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Cursor_getStorageClass(_0: CXCursor)(using Zone): CX_StorageClass = val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) !(__ptr_0 + 0) = _0 __sn_wrap_libclang_clang_Cursor_getStorageClass((__ptr_0 + 0)) -/** Returns the storage class for a function or variable declaration. +/** Retrieve the kind of the I'th template argument of the CXCursor C. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_Cursor_getStorageClass(_0: Ptr[CXCursor]): CX_StorageClass = - __sn_wrap_libclang_clang_Cursor_getStorageClass(_0) +def clang_Cursor_getTemplateArgumentKind( + C: Ptr[CXCursor], + I: CUnsignedInt +): CXTemplateArgumentKind = + __sn_wrap_libclang_clang_Cursor_getTemplateArgumentKind(C, I) /** Retrieve the kind of the I'th template argument of the CXCursor C. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Cursor_getTemplateArgumentKind(C: CXCursor, I: CUnsignedInt)(using Zone @@ -2911,20 +3073,23 @@ def clang_Cursor_getTemplateArgumentKind(C: CXCursor, I: CUnsignedInt)(using __sn_wrap_libclang_clang_Cursor_getTemplateArgumentKind((__ptr_0 + 0), I) end clang_Cursor_getTemplateArgumentKind -/** Retrieve the kind of the I'th template argument of the CXCursor C. +/** Retrieve a CXType representing the type of a TemplateArgument of a function + * decl representing a template specialization. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_Cursor_getTemplateArgumentKind( - C: Ptr[CXCursor], - I: CUnsignedInt -): CXTemplateArgumentKind = - __sn_wrap_libclang_clang_Cursor_getTemplateArgumentKind(C, I) +def clang_Cursor_getTemplateArgumentType(C: Ptr[CXCursor], I: CUnsignedInt)( + using Zone +): CXType = + val __ptr_0: Ptr[CXType] = alloc[CXType](1) + __sn_wrap_libclang_clang_Cursor_getTemplateArgumentType(C, I, (__ptr_0 + 0)) + !(__ptr_0 + 0) +end clang_Cursor_getTemplateArgumentType /** Retrieve a CXType representing the type of a TemplateArgument of a function * decl representing a template specialization. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Cursor_getTemplateArgumentType(C: Ptr[CXCursor], I: CUnsignedInt)( __return: Ptr[CXType] @@ -2934,39 +3099,42 @@ def clang_Cursor_getTemplateArgumentType(C: Ptr[CXCursor], I: CUnsignedInt)( /** Retrieve a CXType representing the type of a TemplateArgument of a function * decl representing a template specialization. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_Cursor_getTemplateArgumentType(C: Ptr[CXCursor], I: CUnsignedInt)( - using Zone +def clang_Cursor_getTemplateArgumentType(C: CXCursor, I: CUnsignedInt)(using + Zone ): CXType = val __ptr_0: Ptr[CXType] = alloc[CXType](1) - __sn_wrap_libclang_clang_Cursor_getTemplateArgumentType(C, I, (__ptr_0 + 0)) + val __ptr_1: Ptr[CXCursor] = alloc[CXCursor](1) + !(__ptr_1 + 0) = C + __sn_wrap_libclang_clang_Cursor_getTemplateArgumentType( + (__ptr_1 + 0), + I, + (__ptr_0 + 0) + ) !(__ptr_0 + 0) end clang_Cursor_getTemplateArgumentType -/** Retrieve a CXType representing the type of a TemplateArgument of a function - * decl representing a template specialization. +/** Retrieve the value of an Integral TemplateArgument (of a function decl + * representing a template specialization) as an unsigned long long. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_Cursor_getTemplateArgumentType(C: CXCursor, I: CUnsignedInt)(using - Zone -): CXType = +def clang_Cursor_getTemplateArgumentUnsignedValue(C: CXCursor, I: CUnsignedInt)( + using Zone +): CUnsignedLongLong = val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) - val __ptr_1: Ptr[CXType] = alloc[CXType](1) !(__ptr_0 + 0) = C - __sn_wrap_libclang_clang_Cursor_getTemplateArgumentType( + __sn_wrap_libclang_clang_Cursor_getTemplateArgumentUnsignedValue( (__ptr_0 + 0), - I, - (__ptr_1 + 0) + I ) - !(__ptr_1 + 0) -end clang_Cursor_getTemplateArgumentType +end clang_Cursor_getTemplateArgumentUnsignedValue /** Retrieve the value of an Integral TemplateArgument (of a function decl * representing a template specialization) as an unsigned long long. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Cursor_getTemplateArgumentUnsignedValue( C: Ptr[CXCursor], @@ -2975,25 +3143,20 @@ def clang_Cursor_getTemplateArgumentUnsignedValue( __sn_wrap_libclang_clang_Cursor_getTemplateArgumentUnsignedValue(C, I) /** Retrieve the value of an Integral TemplateArgument (of a function decl - * representing a template specialization) as an unsigned long long. + * representing a template specialization) as a signed long long. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_Cursor_getTemplateArgumentUnsignedValue(C: CXCursor, I: CUnsignedInt)( - using Zone -): CUnsignedLongLong = - val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) - !(__ptr_0 + 0) = C - __sn_wrap_libclang_clang_Cursor_getTemplateArgumentUnsignedValue( - (__ptr_0 + 0), - I - ) -end clang_Cursor_getTemplateArgumentUnsignedValue +def clang_Cursor_getTemplateArgumentValue( + C: Ptr[CXCursor], + I: CUnsignedInt +): CLongLong = + __sn_wrap_libclang_clang_Cursor_getTemplateArgumentValue(C, I) /** Retrieve the value of an Integral TemplateArgument (of a function decl * representing a template specialization) as a signed long long. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Cursor_getTemplateArgumentValue(C: CXCursor, I: CUnsignedInt)(using Zone @@ -3003,20 +3166,16 @@ def clang_Cursor_getTemplateArgumentValue(C: CXCursor, I: CUnsignedInt)(using __sn_wrap_libclang_clang_Cursor_getTemplateArgumentValue((__ptr_0 + 0), I) end clang_Cursor_getTemplateArgumentValue -/** Retrieve the value of an Integral TemplateArgument (of a function decl - * representing a template specialization) as a signed long long. +/** Returns the translation unit that a cursor originated from. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_Cursor_getTemplateArgumentValue( - C: Ptr[CXCursor], - I: CUnsignedInt -): CLongLong = - __sn_wrap_libclang_clang_Cursor_getTemplateArgumentValue(C, I) +def clang_Cursor_getTranslationUnit(_0: Ptr[CXCursor]): CXTranslationUnit = + __sn_wrap_libclang_clang_Cursor_getTranslationUnit(_0) /** Returns the translation unit that a cursor originated from. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Cursor_getTranslationUnit(_0: CXCursor)(using Zone @@ -3026,17 +3185,10 @@ def clang_Cursor_getTranslationUnit(_0: CXCursor)(using __sn_wrap_libclang_clang_Cursor_getTranslationUnit((__ptr_0 + 0)) end clang_Cursor_getTranslationUnit -/** Returns the translation unit that a cursor originated from. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ -def clang_Cursor_getTranslationUnit(_0: Ptr[CXCursor]): CXTranslationUnit = - __sn_wrap_libclang_clang_Cursor_getTranslationUnit(_0) - /** If cursor refers to a variable declaration and it has initializer returns * cursor referring to the initializer otherwise return null cursor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Cursor_getVarDeclInitializer(cursor: CXCursor)(using Zone): CXCursor = val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](2) @@ -3051,7 +3203,7 @@ end clang_Cursor_getVarDeclInitializer /** If cursor refers to a variable declaration and it has initializer returns * cursor referring to the initializer otherwise return null cursor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Cursor_getVarDeclInitializer(cursor: Ptr[CXCursor])(using Zone @@ -3064,7 +3216,7 @@ end clang_Cursor_getVarDeclInitializer /** If cursor refers to a variable declaration and it has initializer returns * cursor referring to the initializer otherwise return null cursor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Cursor_getVarDeclInitializer(cursor: Ptr[CXCursor])( __return: Ptr[CXCursor] @@ -3073,7 +3225,7 @@ def clang_Cursor_getVarDeclInitializer(cursor: Ptr[CXCursor])( /** Determine whether the given cursor has any attributes. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Cursor_hasAttrs(C: CXCursor)(using Zone): CUnsignedInt = val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) @@ -3082,7 +3234,7 @@ def clang_Cursor_hasAttrs(C: CXCursor)(using Zone): CUnsignedInt = /** Determine whether the given cursor has any attributes. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Cursor_hasAttrs(C: Ptr[CXCursor]): CUnsignedInt = __sn_wrap_libclang_clang_Cursor_hasAttrs(C) @@ -3091,7 +3243,7 @@ def clang_Cursor_hasAttrs(C: Ptr[CXCursor]): CUnsignedInt = * \1. If cursor refers to a variable declaration that doesn't have external * storage returns 0. Otherwise returns -1. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Cursor_hasVarDeclExternalStorage(cursor: Ptr[CXCursor]): CInt = __sn_wrap_libclang_clang_Cursor_hasVarDeclExternalStorage(cursor) @@ -3100,53 +3252,53 @@ def clang_Cursor_hasVarDeclExternalStorage(cursor: Ptr[CXCursor]): CInt = * \1. If cursor refers to a variable declaration that doesn't have external * storage returns 0. Otherwise returns -1. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ -def clang_Cursor_hasVarDeclExternalStorage(cursor: CXCursor)(using Zone): CInt = - val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) - !(__ptr_0 + 0) = cursor - __sn_wrap_libclang_clang_Cursor_hasVarDeclExternalStorage((__ptr_0 + 0)) - -/** If cursor refers to a variable declaration that has global storage returns - * \1. If cursor refers to a variable declaration that doesn't have global - * storage returns 0. Otherwise returns -1. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_Cursor_hasVarDeclGlobalStorage(cursor: CXCursor)(using Zone): CInt = +def clang_Cursor_hasVarDeclExternalStorage(cursor: CXCursor)(using Zone): CInt = val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) !(__ptr_0 + 0) = cursor - __sn_wrap_libclang_clang_Cursor_hasVarDeclGlobalStorage((__ptr_0 + 0)) + __sn_wrap_libclang_clang_Cursor_hasVarDeclExternalStorage((__ptr_0 + 0)) /** If cursor refers to a variable declaration that has global storage returns * \1. If cursor refers to a variable declaration that doesn't have global * storage returns 0. Otherwise returns -1. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Cursor_hasVarDeclGlobalStorage(cursor: Ptr[CXCursor]): CInt = __sn_wrap_libclang_clang_Cursor_hasVarDeclGlobalStorage(cursor) -/** Determine whether the given cursor represents an anonymous tag or namespace +/** If cursor refers to a variable declaration that has global storage returns + * \1. If cursor refers to a variable declaration that doesn't have global + * storage returns 0. Otherwise returns -1. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_Cursor_isAnonymous(C: Ptr[CXCursor]): CUnsignedInt = - __sn_wrap_libclang_clang_Cursor_isAnonymous(C) +def clang_Cursor_hasVarDeclGlobalStorage(cursor: CXCursor)(using Zone): CInt = + val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) + !(__ptr_0 + 0) = cursor + __sn_wrap_libclang_clang_Cursor_hasVarDeclGlobalStorage((__ptr_0 + 0)) /** Determine whether the given cursor represents an anonymous tag or namespace * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Cursor_isAnonymous(C: CXCursor)(using Zone): CUnsignedInt = val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) !(__ptr_0 + 0) = C __sn_wrap_libclang_clang_Cursor_isAnonymous((__ptr_0 + 0)) +/** Determine whether the given cursor represents an anonymous tag or namespace + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +def clang_Cursor_isAnonymous(C: Ptr[CXCursor]): CUnsignedInt = + __sn_wrap_libclang_clang_Cursor_isAnonymous(C) + /** Determine whether the given cursor represents an anonymous record * declaration. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Cursor_isAnonymousRecordDecl(C: CXCursor)(using Zone): CUnsignedInt = val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) @@ -3156,23 +3308,25 @@ def clang_Cursor_isAnonymousRecordDecl(C: CXCursor)(using Zone): CUnsignedInt = /** Determine whether the given cursor represents an anonymous record * declaration. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Cursor_isAnonymousRecordDecl(C: Ptr[CXCursor]): CUnsignedInt = __sn_wrap_libclang_clang_Cursor_isAnonymousRecordDecl(C) -/** Returns non-zero if the cursor specifies a Record member that is a bitfield. +/** Returns non-zero if the cursor specifies a Record member that is a + * bit-field. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Cursor_isBitField(C: CXCursor)(using Zone): CUnsignedInt = val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) !(__ptr_0 + 0) = C __sn_wrap_libclang_clang_Cursor_isBitField((__ptr_0 + 0)) -/** Returns non-zero if the cursor specifies a Record member that is a bitfield. +/** Returns non-zero if the cursor specifies a Record member that is a + * bit-field. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Cursor_isBitField(C: Ptr[CXCursor]): CUnsignedInt = __sn_wrap_libclang_clang_Cursor_isBitField(C) @@ -3180,64 +3334,64 @@ def clang_Cursor_isBitField(C: Ptr[CXCursor]): CUnsignedInt = /** Given a cursor pointing to a C++ method call or an Objective-C message, * returns non-zero if the method/message is "dynamic", meaning: * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_Cursor_isDynamicCall(C: Ptr[CXCursor]): CInt = - __sn_wrap_libclang_clang_Cursor_isDynamicCall(C) +def clang_Cursor_isDynamicCall(C: CXCursor)(using Zone): CInt = + val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) + !(__ptr_0 + 0) = C + __sn_wrap_libclang_clang_Cursor_isDynamicCall((__ptr_0 + 0)) /** Given a cursor pointing to a C++ method call or an Objective-C message, * returns non-zero if the method/message is "dynamic", meaning: * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_Cursor_isDynamicCall(C: CXCursor)(using Zone): CInt = - val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) - !(__ptr_0 + 0) = C - __sn_wrap_libclang_clang_Cursor_isDynamicCall((__ptr_0 + 0)) +def clang_Cursor_isDynamicCall(C: Ptr[CXCursor]): CInt = + __sn_wrap_libclang_clang_Cursor_isDynamicCall(C) /** Returns non-zero if the given cursor points to a symbol marked with * external_source_symbol attribute. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Cursor_isExternalSymbol( - C: CXCursor, + C: Ptr[CXCursor], language: Ptr[CXString], definedIn: Ptr[CXString], isGenerated: Ptr[CUnsignedInt] -)(using Zone): CUnsignedInt = - val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) - !(__ptr_0 + 0) = C +): CUnsignedInt = __sn_wrap_libclang_clang_Cursor_isExternalSymbol( - (__ptr_0 + 0), + C, language, definedIn, isGenerated ) -end clang_Cursor_isExternalSymbol /** Returns non-zero if the given cursor points to a symbol marked with * external_source_symbol attribute. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Cursor_isExternalSymbol( - C: Ptr[CXCursor], + C: CXCursor, language: Ptr[CXString], definedIn: Ptr[CXString], isGenerated: Ptr[CUnsignedInt] -): CUnsignedInt = +)(using Zone): CUnsignedInt = + val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) + !(__ptr_0 + 0) = C __sn_wrap_libclang_clang_Cursor_isExternalSymbol( - C, + (__ptr_0 + 0), language, definedIn, isGenerated ) +end clang_Cursor_isExternalSymbol /** Determine whether a CXCursor that is a function declaration, is an inline * declaration. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Cursor_isFunctionInlined(C: CXCursor)(using Zone): CUnsignedInt = val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) @@ -3247,7 +3401,7 @@ def clang_Cursor_isFunctionInlined(C: CXCursor)(using Zone): CUnsignedInt = /** Determine whether a CXCursor that is a function declaration, is an inline * declaration. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Cursor_isFunctionInlined(C: Ptr[CXCursor]): CUnsignedInt = __sn_wrap_libclang_clang_Cursor_isFunctionInlined(C) @@ -3255,7 +3409,7 @@ def clang_Cursor_isFunctionInlined(C: Ptr[CXCursor]): CUnsignedInt = /** Determine whether the given cursor represents an inline namespace * declaration. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Cursor_isInlineNamespace(C: Ptr[CXCursor]): CUnsignedInt = __sn_wrap_libclang_clang_Cursor_isInlineNamespace(C) @@ -3263,7 +3417,7 @@ def clang_Cursor_isInlineNamespace(C: Ptr[CXCursor]): CUnsignedInt = /** Determine whether the given cursor represents an inline namespace * declaration. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Cursor_isInlineNamespace(C: CXCursor)(using Zone): CUnsignedInt = val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) @@ -3272,101 +3426,100 @@ def clang_Cursor_isInlineNamespace(C: CXCursor)(using Zone): CUnsignedInt = /** Determine whether a CXCursor that is a macro, is a builtin one. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ -def clang_Cursor_isMacroBuiltin(C: Ptr[CXCursor]): CUnsignedInt = - __sn_wrap_libclang_clang_Cursor_isMacroBuiltin(C) - -/** Determine whether a CXCursor that is a macro, is a builtin one. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Cursor_isMacroBuiltin(C: CXCursor)(using Zone): CUnsignedInt = val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) !(__ptr_0 + 0) = C __sn_wrap_libclang_clang_Cursor_isMacroBuiltin((__ptr_0 + 0)) -/** Determine whether a CXCursor that is a macro, is function like. +/** Determine whether a CXCursor that is a macro, is a builtin one. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_Cursor_isMacroFunctionLike(C: CXCursor)(using Zone): CUnsignedInt = - val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) - !(__ptr_0 + 0) = C - __sn_wrap_libclang_clang_Cursor_isMacroFunctionLike((__ptr_0 + 0)) +def clang_Cursor_isMacroBuiltin(C: Ptr[CXCursor]): CUnsignedInt = + __sn_wrap_libclang_clang_Cursor_isMacroBuiltin(C) /** Determine whether a CXCursor that is a macro, is function like. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Cursor_isMacroFunctionLike(C: Ptr[CXCursor]): CUnsignedInt = __sn_wrap_libclang_clang_Cursor_isMacroFunctionLike(C) -/** Returns non-zero if cursor is null. +/** Determine whether a CXCursor that is a macro, is function like. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_Cursor_isNull(cursor: Ptr[CXCursor]): CInt = - __sn_wrap_libclang_clang_Cursor_isNull(cursor) +def clang_Cursor_isMacroFunctionLike(C: CXCursor)(using Zone): CUnsignedInt = + val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) + !(__ptr_0 + 0) = C + __sn_wrap_libclang_clang_Cursor_isMacroFunctionLike((__ptr_0 + 0)) /** Returns non-zero if cursor is null. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Cursor_isNull(cursor: CXCursor)(using Zone): CInt = val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) !(__ptr_0 + 0) = cursor __sn_wrap_libclang_clang_Cursor_isNull((__ptr_0 + 0)) -/** Given a cursor that represents an Objective-C method or property - * declaration, return non-zero if the declaration was affected by - * "\@optional". Returns zero if the cursor is not such a declaration or it is - * "\@required". +/** Returns non-zero if cursor is null. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_Cursor_isObjCOptional(C: Ptr[CXCursor]): CUnsignedInt = - __sn_wrap_libclang_clang_Cursor_isObjCOptional(C) +def clang_Cursor_isNull(cursor: Ptr[CXCursor]): CInt = + __sn_wrap_libclang_clang_Cursor_isNull(cursor) /** Given a cursor that represents an Objective-C method or property * declaration, return non-zero if the declaration was affected by * "\@optional". Returns zero if the cursor is not such a declaration or it is * "\@required". * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Cursor_isObjCOptional(C: CXCursor)(using Zone): CUnsignedInt = val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) !(__ptr_0 + 0) = C __sn_wrap_libclang_clang_Cursor_isObjCOptional((__ptr_0 + 0)) -end clang_Cursor_isObjCOptional -/** Returns non-zero if the given cursor is a variadic function or method. +/** Given a cursor that represents an Objective-C method or property + * declaration, return non-zero if the declaration was affected by + * "\@optional". Returns zero if the cursor is not such a declaration or it is + * "\@required". * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_Cursor_isVariadic(C: Ptr[CXCursor]): CUnsignedInt = - __sn_wrap_libclang_clang_Cursor_isVariadic(C) +def clang_Cursor_isObjCOptional(C: Ptr[CXCursor]): CUnsignedInt = + __sn_wrap_libclang_clang_Cursor_isObjCOptional(C) /** Returns non-zero if the given cursor is a variadic function or method. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Cursor_isVariadic(C: CXCursor)(using Zone): CUnsignedInt = val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) !(__ptr_0 + 0) = C __sn_wrap_libclang_clang_Cursor_isVariadic((__ptr_0 + 0)) +/** Returns non-zero if the given cursor is a variadic function or method. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +def clang_Cursor_isVariadic(C: Ptr[CXCursor]): CUnsignedInt = + __sn_wrap_libclang_clang_Cursor_isVariadic(C) + /** Determine if an enum declaration refers to a scoped enum. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_EnumDecl_isScoped(C: Ptr[CXCursor]): CUnsignedInt = __sn_wrap_libclang_clang_EnumDecl_isScoped(C) /** Determine if an enum declaration refers to a scoped enum. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_EnumDecl_isScoped(C: CXCursor)(using Zone): CUnsignedInt = val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) @@ -3375,24 +3528,25 @@ def clang_EnumDecl_isScoped(C: CXCursor)(using Zone): CUnsignedInt = /** Returns the real path name of file. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ -def clang_File_tryGetRealPathName(file: CXFile)(__return: Ptr[CXString]): Unit = - __sn_wrap_libclang_clang_File_tryGetRealPathName(file, __return) - -/** Returns the real path name of file. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/CXFile.h */ def clang_File_tryGetRealPathName(file: CXFile)(using Zone): CXString = val __ptr_0: Ptr[CXString] = alloc[CXString](1) __sn_wrap_libclang_clang_File_tryGetRealPathName(file, (__ptr_0 + 0)) !(__ptr_0 + 0) +/** Returns the real path name of file. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/CXFile.h + */ +def clang_File_tryGetRealPathName(file: CXFile)(__return: Ptr[CXString]): Unit = + __sn_wrap_libclang_clang_File_tryGetRealPathName(file, __return) + /** Returns non-zero if the given source location is in the main file of the * corresponding translation unit. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: + * /opt/homebrew/opt/llvm@17/include/clang-c/CXSourceLocation.h */ def clang_Location_isFromMainFile(location: Ptr[CXSourceLocation]): CInt = __sn_wrap_libclang_clang_Location_isFromMainFile(location) @@ -3400,7 +3554,8 @@ def clang_Location_isFromMainFile(location: Ptr[CXSourceLocation]): CInt = /** Returns non-zero if the given source location is in the main file of the * corresponding translation unit. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: + * /opt/homebrew/opt/llvm@17/include/clang-c/CXSourceLocation.h */ def clang_Location_isFromMainFile(location: CXSourceLocation)(using Zone @@ -3412,7 +3567,8 @@ end clang_Location_isFromMainFile /** Returns non-zero if the given source location is in a system header. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: + * /opt/homebrew/opt/llvm@17/include/clang-c/CXSourceLocation.h */ def clang_Location_isInSystemHeader(location: CXSourceLocation)(using Zone @@ -3424,31 +3580,32 @@ end clang_Location_isInSystemHeader /** Returns non-zero if the given source location is in a system header. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: + * /opt/homebrew/opt/llvm@17/include/clang-c/CXSourceLocation.h */ def clang_Location_isInSystemHeader(location: Ptr[CXSourceLocation]): CInt = __sn_wrap_libclang_clang_Location_isInSystemHeader(location) /** Returns the full name of the module, e.g. "std.vector". * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ -def clang_Module_getFullName(Module: CXModule)(__return: Ptr[CXString]): Unit = - __sn_wrap_libclang_clang_Module_getFullName(Module, __return) - -/** Returns the full name of the module, e.g. "std.vector". - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Module_getFullName(Module: CXModule)(using Zone): CXString = val __ptr_0: Ptr[CXString] = alloc[CXString](1) __sn_wrap_libclang_clang_Module_getFullName(Module, (__ptr_0 + 0)) !(__ptr_0 + 0) +/** Returns the full name of the module, e.g. "std.vector". + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +def clang_Module_getFullName(Module: CXModule)(__return: Ptr[CXString]): Unit = + __sn_wrap_libclang_clang_Module_getFullName(Module, __return) + /** Returns the name of the module, e.g. for the 'std.vector' sub-module it will * return "vector". * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Module_getName(Module: CXModule)(using Zone): CXString = val __ptr_0: Ptr[CXString] = alloc[CXString](1) @@ -3458,30 +3615,32 @@ def clang_Module_getName(Module: CXModule)(using Zone): CXString = /** Returns the name of the module, e.g. for the 'std.vector' sub-module it will * return "vector". * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Module_getName(Module: CXModule)(__return: Ptr[CXString]): Unit = __sn_wrap_libclang_clang_Module_getName(Module, __return) /** Returns non-zero if range is null. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: + * /opt/homebrew/opt/llvm@17/include/clang-c/CXSourceLocation.h */ -def clang_Range_isNull(range: CXSourceRange)(using Zone): CInt = - val __ptr_0: Ptr[CXSourceRange] = alloc[CXSourceRange](1) - !(__ptr_0 + 0) = range - __sn_wrap_libclang_clang_Range_isNull((__ptr_0 + 0)) +def clang_Range_isNull(range: Ptr[CXSourceRange]): CInt = + __sn_wrap_libclang_clang_Range_isNull(range) /** Returns non-zero if range is null. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: + * /opt/homebrew/opt/llvm@17/include/clang-c/CXSourceLocation.h */ -def clang_Range_isNull(range: Ptr[CXSourceRange]): CInt = - __sn_wrap_libclang_clang_Range_isNull(range) +def clang_Range_isNull(range: CXSourceRange)(using Zone): CInt = + val __ptr_0: Ptr[CXSourceRange] = alloc[CXSourceRange](1) + !(__ptr_0 + 0) = range + __sn_wrap_libclang_clang_Range_isNull((__ptr_0 + 0)) /** Get the normalized target triple as a string. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_TargetInfo_getTriple(Info: CXTargetInfo)( __return: Ptr[CXString] @@ -3490,7 +3649,7 @@ def clang_TargetInfo_getTriple(Info: CXTargetInfo)( /** Get the normalized target triple as a string. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_TargetInfo_getTriple(Info: CXTargetInfo)(using Zone): CXString = val __ptr_0: Ptr[CXString] = alloc[CXString](1) @@ -3499,14 +3658,14 @@ def clang_TargetInfo_getTriple(Info: CXTargetInfo)(using Zone): CXString = /** Return the alignment of a type in bytes as per C++[expr.alignof] standard. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Type_getAlignOf(T: Ptr[CXType]): CLongLong = __sn_wrap_libclang_clang_Type_getAlignOf(T) /** Return the alignment of a type in bytes as per C++[expr.alignof] standard. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Type_getAlignOf(T: CXType)(using Zone): CLongLong = val __ptr_0: Ptr[CXType] = alloc[CXType](1) @@ -3515,30 +3674,23 @@ def clang_Type_getAlignOf(T: CXType)(using Zone): CLongLong = /** Retrieve the ref-qualifier kind of a function or method. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ -def clang_Type_getCXXRefQualifier(T: Ptr[CXType]): CXRefQualifierKind = - __sn_wrap_libclang_clang_Type_getCXXRefQualifier(T) - -/** Retrieve the ref-qualifier kind of a function or method. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Type_getCXXRefQualifier(T: CXType)(using Zone): CXRefQualifierKind = val __ptr_0: Ptr[CXType] = alloc[CXType](1) !(__ptr_0 + 0) = T __sn_wrap_libclang_clang_Type_getCXXRefQualifier((__ptr_0 + 0)) -/** Return the class type of an member pointer type. +/** Retrieve the ref-qualifier kind of a function or method. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_Type_getClassType(T: Ptr[CXType])(__return: Ptr[CXType]): Unit = - __sn_wrap_libclang_clang_Type_getClassType(T, __return) +def clang_Type_getCXXRefQualifier(T: Ptr[CXType]): CXRefQualifierKind = + __sn_wrap_libclang_clang_Type_getCXXRefQualifier(T) /** Return the class type of an member pointer type. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Type_getClassType(T: Ptr[CXType])(using Zone): CXType = val __ptr_0: Ptr[CXType] = alloc[CXType](1) @@ -3547,27 +3699,24 @@ def clang_Type_getClassType(T: Ptr[CXType])(using Zone): CXType = /** Return the class type of an member pointer type. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_Type_getClassType(T: CXType)(using Zone): CXType = - val __ptr_0: Ptr[CXType] = alloc[CXType](2) - !(__ptr_0 + 0) = T - __sn_wrap_libclang_clang_Type_getClassType((__ptr_0 + 0), (__ptr_0 + 1)) - !(__ptr_0 + 1) +def clang_Type_getClassType(T: Ptr[CXType])(__return: Ptr[CXType]): Unit = + __sn_wrap_libclang_clang_Type_getClassType(T, __return) -/** Return the type that was modified by this attributed type. +/** Return the class type of an member pointer type. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_Type_getModifiedType(T: CXType)(using Zone): CXType = +def clang_Type_getClassType(T: CXType)(using Zone): CXType = val __ptr_0: Ptr[CXType] = alloc[CXType](2) !(__ptr_0 + 0) = T - __sn_wrap_libclang_clang_Type_getModifiedType((__ptr_0 + 0), (__ptr_0 + 1)) + __sn_wrap_libclang_clang_Type_getClassType((__ptr_0 + 0), (__ptr_0 + 1)) !(__ptr_0 + 1) /** Return the type that was modified by this attributed type. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Type_getModifiedType(T: Ptr[CXType])(using Zone): CXType = val __ptr_0: Ptr[CXType] = alloc[CXType](1) @@ -3576,21 +3725,24 @@ def clang_Type_getModifiedType(T: Ptr[CXType])(using Zone): CXType = /** Return the type that was modified by this attributed type. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_Type_getModifiedType(T: Ptr[CXType])(__return: Ptr[CXType]): Unit = - __sn_wrap_libclang_clang_Type_getModifiedType(T, __return) +def clang_Type_getModifiedType(T: CXType)(using Zone): CXType = + val __ptr_0: Ptr[CXType] = alloc[CXType](2) + !(__ptr_0 + 0) = T + __sn_wrap_libclang_clang_Type_getModifiedType((__ptr_0 + 0), (__ptr_0 + 1)) + !(__ptr_0 + 1) -/** Retrieve the type named by the qualified-id. +/** Return the type that was modified by this attributed type. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_Type_getNamedType(T: Ptr[CXType])(__return: Ptr[CXType]): Unit = - __sn_wrap_libclang_clang_Type_getNamedType(T, __return) +def clang_Type_getModifiedType(T: Ptr[CXType])(__return: Ptr[CXType]): Unit = + __sn_wrap_libclang_clang_Type_getModifiedType(T, __return) /** Retrieve the type named by the qualified-id. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Type_getNamedType(T: Ptr[CXType])(using Zone): CXType = val __ptr_0: Ptr[CXType] = alloc[CXType](1) @@ -3599,7 +3751,7 @@ def clang_Type_getNamedType(T: Ptr[CXType])(using Zone): CXType = /** Retrieve the type named by the qualified-id. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Type_getNamedType(T: CXType)(using Zone): CXType = val __ptr_0: Ptr[CXType] = alloc[CXType](2) @@ -3607,16 +3759,23 @@ def clang_Type_getNamedType(T: CXType)(using Zone): CXType = __sn_wrap_libclang_clang_Type_getNamedType((__ptr_0 + 0), (__ptr_0 + 1)) !(__ptr_0 + 1) +/** Retrieve the type named by the qualified-id. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +def clang_Type_getNamedType(T: Ptr[CXType])(__return: Ptr[CXType]): Unit = + __sn_wrap_libclang_clang_Type_getNamedType(T, __return) + /** Retrieve the nullability kind of a pointer type. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Type_getNullability(T: Ptr[CXType]): CXTypeNullabilityKind = __sn_wrap_libclang_clang_Type_getNullability(T) /** Retrieve the nullability kind of a pointer type. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Type_getNullability(T: CXType)(using Zone): CXTypeNullabilityKind = val __ptr_0: Ptr[CXType] = alloc[CXType](1) @@ -3626,7 +3785,7 @@ def clang_Type_getNullability(T: CXType)(using Zone): CXTypeNullabilityKind = /** Retrieve the number of protocol references associated with an ObjC * object/id. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Type_getNumObjCProtocolRefs(T: CXType)(using Zone): CUnsignedInt = val __ptr_0: Ptr[CXType] = alloc[CXType](1) @@ -3636,21 +3795,21 @@ def clang_Type_getNumObjCProtocolRefs(T: CXType)(using Zone): CUnsignedInt = /** Retrieve the number of protocol references associated with an ObjC * object/id. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Type_getNumObjCProtocolRefs(T: Ptr[CXType]): CUnsignedInt = __sn_wrap_libclang_clang_Type_getNumObjCProtocolRefs(T) /** Retrieve the number of type arguments associated with an ObjC object. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Type_getNumObjCTypeArgs(T: Ptr[CXType]): CUnsignedInt = __sn_wrap_libclang_clang_Type_getNumObjCTypeArgs(T) /** Retrieve the number of type arguments associated with an ObjC object. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Type_getNumObjCTypeArgs(T: CXType)(using Zone): CUnsignedInt = val __ptr_0: Ptr[CXType] = alloc[CXType](1) @@ -3660,7 +3819,7 @@ def clang_Type_getNumObjCTypeArgs(T: CXType)(using Zone): CUnsignedInt = /** Returns the number of template arguments for given template specialization, * or -1 if type T is not a template specialization. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Type_getNumTemplateArguments(T: CXType)(using Zone): CInt = val __ptr_0: Ptr[CXType] = alloc[CXType](1) @@ -3670,35 +3829,35 @@ def clang_Type_getNumTemplateArguments(T: CXType)(using Zone): CInt = /** Returns the number of template arguments for given template specialization, * or -1 if type T is not a template specialization. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Type_getNumTemplateArguments(T: Ptr[CXType]): CInt = __sn_wrap_libclang_clang_Type_getNumTemplateArguments(T) /** Returns the Objective-C type encoding for the specified CXType. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_Type_getObjCEncoding(`type`: CXType)(using Zone): CXString = +def clang_Type_getObjCEncoding(`type`: Ptr[CXType])(using Zone): CXString = val __ptr_0: Ptr[CXString] = alloc[CXString](1) - val __ptr_1: Ptr[CXType] = alloc[CXType](1) - !(__ptr_1 + 0) = `type` - __sn_wrap_libclang_clang_Type_getObjCEncoding((__ptr_1 + 0), (__ptr_0 + 0)) + __sn_wrap_libclang_clang_Type_getObjCEncoding(`type`, (__ptr_0 + 0)) !(__ptr_0 + 0) -end clang_Type_getObjCEncoding /** Returns the Objective-C type encoding for the specified CXType. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_Type_getObjCEncoding(`type`: Ptr[CXType])(using Zone): CXString = - val __ptr_0: Ptr[CXString] = alloc[CXString](1) - __sn_wrap_libclang_clang_Type_getObjCEncoding(`type`, (__ptr_0 + 0)) - !(__ptr_0 + 0) +def clang_Type_getObjCEncoding(`type`: CXType)(using Zone): CXString = + val __ptr_0: Ptr[CXType] = alloc[CXType](1) + val __ptr_1: Ptr[CXString] = alloc[CXString](1) + !(__ptr_0 + 0) = `type` + __sn_wrap_libclang_clang_Type_getObjCEncoding((__ptr_0 + 0), (__ptr_1 + 0)) + !(__ptr_1 + 0) +end clang_Type_getObjCEncoding /** Returns the Objective-C type encoding for the specified CXType. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Type_getObjCEncoding(`type`: Ptr[CXType])( __return: Ptr[CXString] @@ -3707,7 +3866,16 @@ def clang_Type_getObjCEncoding(`type`: Ptr[CXType])( /** Retrieves the base type of the ObjCObjectType. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +def clang_Type_getObjCObjectBaseType(T: Ptr[CXType])( + __return: Ptr[CXType] +): Unit = + __sn_wrap_libclang_clang_Type_getObjCObjectBaseType(T, __return) + +/** Retrieves the base type of the ObjCObjectType. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Type_getObjCObjectBaseType(T: CXType)(using Zone): CXType = val __ptr_0: Ptr[CXType] = alloc[CXType](2) @@ -3721,25 +3889,28 @@ end clang_Type_getObjCObjectBaseType /** Retrieves the base type of the ObjCObjectType. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Type_getObjCObjectBaseType(T: Ptr[CXType])(using Zone): CXType = val __ptr_0: Ptr[CXType] = alloc[CXType](1) __sn_wrap_libclang_clang_Type_getObjCObjectBaseType(T, (__ptr_0 + 0)) !(__ptr_0 + 0) -/** Retrieves the base type of the ObjCObjectType. +/** Retrieve the decl for a protocol reference for an ObjC object/id. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_Type_getObjCObjectBaseType(T: Ptr[CXType])( - __return: Ptr[CXType] -): Unit = - __sn_wrap_libclang_clang_Type_getObjCObjectBaseType(T, __return) +def clang_Type_getObjCProtocolDecl(T: Ptr[CXType], i: CUnsignedInt)(using + Zone +): CXCursor = + val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) + __sn_wrap_libclang_clang_Type_getObjCProtocolDecl(T, i, (__ptr_0 + 0)) + !(__ptr_0 + 0) +end clang_Type_getObjCProtocolDecl /** Retrieve the decl for a protocol reference for an ObjC object/id. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Type_getObjCProtocolDecl(T: Ptr[CXType], i: CUnsignedInt)( __return: Ptr[CXCursor] @@ -3748,37 +3919,25 @@ def clang_Type_getObjCProtocolDecl(T: Ptr[CXType], i: CUnsignedInt)( /** Retrieve the decl for a protocol reference for an ObjC object/id. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Type_getObjCProtocolDecl(T: CXType, i: CUnsignedInt)(using Zone ): CXCursor = - val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) - val __ptr_1: Ptr[CXType] = alloc[CXType](1) - !(__ptr_1 + 0) = T + val __ptr_0: Ptr[CXType] = alloc[CXType](1) + val __ptr_1: Ptr[CXCursor] = alloc[CXCursor](1) + !(__ptr_0 + 0) = T __sn_wrap_libclang_clang_Type_getObjCProtocolDecl( - (__ptr_1 + 0), + (__ptr_0 + 0), i, - (__ptr_0 + 0) + (__ptr_1 + 0) ) - !(__ptr_0 + 0) -end clang_Type_getObjCProtocolDecl - -/** Retrieve the decl for a protocol reference for an ObjC object/id. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ -def clang_Type_getObjCProtocolDecl(T: Ptr[CXType], i: CUnsignedInt)(using - Zone -): CXCursor = - val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) - __sn_wrap_libclang_clang_Type_getObjCProtocolDecl(T, i, (__ptr_0 + 0)) - !(__ptr_0 + 0) + !(__ptr_1 + 0) end clang_Type_getObjCProtocolDecl /** Retrieve a type argument associated with an ObjC object. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Type_getObjCTypeArg(T: Ptr[CXType], i: CUnsignedInt)( __return: Ptr[CXType] @@ -3787,7 +3946,7 @@ def clang_Type_getObjCTypeArg(T: Ptr[CXType], i: CUnsignedInt)( /** Retrieve a type argument associated with an ObjC object. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Type_getObjCTypeArg(T: CXType, i: CUnsignedInt)(using Zone): CXType = val __ptr_0: Ptr[CXType] = alloc[CXType](2) @@ -3797,7 +3956,7 @@ def clang_Type_getObjCTypeArg(T: CXType, i: CUnsignedInt)(using Zone): CXType = /** Retrieve a type argument associated with an ObjC object. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Type_getObjCTypeArg(T: Ptr[CXType], i: CUnsignedInt)(using Zone @@ -3810,7 +3969,7 @@ end clang_Type_getObjCTypeArg /** Return the offset of a field named S in a record of type T in bits as it * would be returned by __offsetof__ as per C++11[18.2p4] * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Type_getOffsetOf(T: CXType, S: CString)(using Zone): CLongLong = val __ptr_0: Ptr[CXType] = alloc[CXType](1) @@ -3820,14 +3979,14 @@ def clang_Type_getOffsetOf(T: CXType, S: CString)(using Zone): CLongLong = /** Return the offset of a field named S in a record of type T in bits as it * would be returned by __offsetof__ as per C++11[18.2p4] * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Type_getOffsetOf(T: Ptr[CXType], S: CString): CLongLong = __sn_wrap_libclang_clang_Type_getOffsetOf(T, S) /** Return the size of a type in bytes as per C++[expr.sizeof] standard. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Type_getSizeOf(T: CXType)(using Zone): CLongLong = val __ptr_0: Ptr[CXType] = alloc[CXType](1) @@ -3836,7 +3995,7 @@ def clang_Type_getSizeOf(T: CXType)(using Zone): CLongLong = /** Return the size of a type in bytes as per C++[expr.sizeof] standard. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Type_getSizeOf(T: Ptr[CXType]): CLongLong = __sn_wrap_libclang_clang_Type_getSizeOf(T) @@ -3844,56 +4003,47 @@ def clang_Type_getSizeOf(T: Ptr[CXType]): CLongLong = /** Returns the type template argument of a template class specialization at * given index. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_Type_getTemplateArgumentAsType(T: CXType, i: CUnsignedInt)(using - Zone -): CXType = - val __ptr_0: Ptr[CXType] = alloc[CXType](2) - !(__ptr_0 + 0) = T - __sn_wrap_libclang_clang_Type_getTemplateArgumentAsType( - (__ptr_0 + 0), - i, - (__ptr_0 + 1) - ) - !(__ptr_0 + 1) -end clang_Type_getTemplateArgumentAsType +def clang_Type_getTemplateArgumentAsType(T: Ptr[CXType], i: CUnsignedInt)( + __return: Ptr[CXType] +): Unit = + __sn_wrap_libclang_clang_Type_getTemplateArgumentAsType(T, i, __return) /** Returns the type template argument of a template class specialization at * given index. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Type_getTemplateArgumentAsType(T: Ptr[CXType], i: CUnsignedInt)(using Zone ): CXType = val __ptr_0: Ptr[CXType] = alloc[CXType](1) __sn_wrap_libclang_clang_Type_getTemplateArgumentAsType(T, i, (__ptr_0 + 0)) - !(__ptr_0 + 0) -end clang_Type_getTemplateArgumentAsType - -/** Returns the type template argument of a template class specialization at - * given index. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ -def clang_Type_getTemplateArgumentAsType(T: Ptr[CXType], i: CUnsignedInt)( - __return: Ptr[CXType] -): Unit = - __sn_wrap_libclang_clang_Type_getTemplateArgumentAsType(T, i, __return) + !(__ptr_0 + 0) +end clang_Type_getTemplateArgumentAsType -/** Gets the type contained by this atomic type. +/** Returns the type template argument of a template class specialization at + * given index. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_Type_getValueType(CT: Ptr[CXType])(using Zone): CXType = - val __ptr_0: Ptr[CXType] = alloc[CXType](1) - __sn_wrap_libclang_clang_Type_getValueType(CT, (__ptr_0 + 0)) - !(__ptr_0 + 0) +def clang_Type_getTemplateArgumentAsType(T: CXType, i: CUnsignedInt)(using + Zone +): CXType = + val __ptr_0: Ptr[CXType] = alloc[CXType](2) + !(__ptr_0 + 0) = T + __sn_wrap_libclang_clang_Type_getTemplateArgumentAsType( + (__ptr_0 + 0), + i, + (__ptr_0 + 1) + ) + !(__ptr_0 + 1) +end clang_Type_getTemplateArgumentAsType /** Gets the type contained by this atomic type. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Type_getValueType(CT: CXType)(using Zone): CXType = val __ptr_0: Ptr[CXType] = alloc[CXType](2) @@ -3903,14 +4053,23 @@ def clang_Type_getValueType(CT: CXType)(using Zone): CXType = /** Gets the type contained by this atomic type. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Type_getValueType(CT: Ptr[CXType])(__return: Ptr[CXType]): Unit = __sn_wrap_libclang_clang_Type_getValueType(CT, __return) +/** Gets the type contained by this atomic type. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +def clang_Type_getValueType(CT: Ptr[CXType])(using Zone): CXType = + val __ptr_0: Ptr[CXType] = alloc[CXType](1) + __sn_wrap_libclang_clang_Type_getValueType(CT, (__ptr_0 + 0)) + !(__ptr_0 + 0) + /** Determine if a typedef is 'transparent' tag. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Type_isTransparentTagTypedef(T: CXType)(using Zone): CUnsignedInt = val __ptr_0: Ptr[CXType] = alloc[CXType](1) @@ -3919,14 +4078,14 @@ def clang_Type_isTransparentTagTypedef(T: CXType)(using Zone): CUnsignedInt = /** Determine if a typedef is 'transparent' tag. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Type_isTransparentTagTypedef(T: Ptr[CXType]): CUnsignedInt = __sn_wrap_libclang_clang_Type_isTransparentTagTypedef(T) /** Visit the fields of a particular type. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Type_visitFields( T: Ptr[CXType], @@ -3937,7 +4096,7 @@ def clang_Type_visitFields( /** Visit the fields of a particular type. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_Type_visitFields( T: CXType, @@ -3953,18 +4112,7 @@ end clang_Type_visitFields * If there is not a container for the current context, this function will * return the empty string. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ -def clang_codeCompleteGetContainerUSR(Results: Ptr[CXCodeCompleteResults])( - __return: Ptr[CXString] -): Unit = - __sn_wrap_libclang_clang_codeCompleteGetContainerUSR(Results, __return) - -/** Returns the USR for the container for the current code completion context. - * If there is not a container for the current context, this function will - * return the empty string. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_codeCompleteGetContainerUSR(Results: Ptr[CXCodeCompleteResults])(using Zone @@ -3974,99 +4122,107 @@ def clang_codeCompleteGetContainerUSR(Results: Ptr[CXCodeCompleteResults])(using !(__ptr_0 + 0) end clang_codeCompleteGetContainerUSR -/** Returns the currently-entered selector for an Objective-C message send, - * formatted like "initWithFoo:bar:". Only guaranteed to return a non-empty - * string for CXCompletionContext_ObjCInstanceMessage and - * CXCompletionContext_ObjCClassMessage. +/** Returns the USR for the container for the current code completion context. + * If there is not a container for the current context, this function will + * return the empty string. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_codeCompleteGetObjCSelector(Results: Ptr[CXCodeCompleteResults])(using - Zone -): CXString = - val __ptr_0: Ptr[CXString] = alloc[CXString](1) - __sn_wrap_libclang_clang_codeCompleteGetObjCSelector(Results, (__ptr_0 + 0)) - !(__ptr_0 + 0) -end clang_codeCompleteGetObjCSelector +def clang_codeCompleteGetContainerUSR(Results: Ptr[CXCodeCompleteResults])( + __return: Ptr[CXString] +): Unit = + __sn_wrap_libclang_clang_codeCompleteGetContainerUSR(Results, __return) /** Returns the currently-entered selector for an Objective-C message send, * formatted like "initWithFoo:bar:". Only guaranteed to return a non-empty * string for CXCompletionContext_ObjCInstanceMessage and * CXCompletionContext_ObjCClassMessage. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_codeCompleteGetObjCSelector(Results: Ptr[CXCodeCompleteResults])( __return: Ptr[CXString] ): Unit = __sn_wrap_libclang_clang_codeCompleteGetObjCSelector(Results, __return) +/** Returns the currently-entered selector for an Objective-C message send, + * formatted like "initWithFoo:bar:". Only guaranteed to return a non-empty + * string for CXCompletionContext_ObjCInstanceMessage and + * CXCompletionContext_ObjCClassMessage. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +def clang_codeCompleteGetObjCSelector(Results: Ptr[CXCodeCompleteResults])(using + Zone +): CXString = + val __ptr_0: Ptr[CXString] = alloc[CXString](1) + __sn_wrap_libclang_clang_codeCompleteGetObjCSelector(Results, (__ptr_0 + 0)) + !(__ptr_0 + 0) +end clang_codeCompleteGetObjCSelector + /** Construct a USR for a specified Objective-C category. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_constructUSR_ObjCCategory( class_name: CString, category_name: CString -)(__return: Ptr[CXString]): Unit = +)(using Zone): CXString = + val __ptr_0: Ptr[CXString] = alloc[CXString](1) __sn_wrap_libclang_clang_constructUSR_ObjCCategory( class_name, category_name, - __return + (__ptr_0 + 0) ) + !(__ptr_0 + 0) +end clang_constructUSR_ObjCCategory /** Construct a USR for a specified Objective-C category. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_constructUSR_ObjCCategory( class_name: CString, category_name: CString -)(using Zone): CXString = - val __ptr_0: Ptr[CXString] = alloc[CXString](1) +)(__return: Ptr[CXString]): Unit = __sn_wrap_libclang_clang_constructUSR_ObjCCategory( class_name, category_name, - (__ptr_0 + 0) + __return ) + +/** Construct a USR for a specified Objective-C class. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +def clang_constructUSR_ObjCClass(class_name: CString)(using Zone): CXString = + val __ptr_0: Ptr[CXString] = alloc[CXString](1) + __sn_wrap_libclang_clang_constructUSR_ObjCClass(class_name, (__ptr_0 + 0)) !(__ptr_0 + 0) -end clang_constructUSR_ObjCCategory /** Construct a USR for a specified Objective-C class. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_constructUSR_ObjCClass(class_name: CString)( __return: Ptr[CXString] ): Unit = __sn_wrap_libclang_clang_constructUSR_ObjCClass(class_name, __return) -/** Construct a USR for a specified Objective-C class. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ -def clang_constructUSR_ObjCClass(class_name: CString)(using Zone): CXString = - val __ptr_0: Ptr[CXString] = alloc[CXString](1) - __sn_wrap_libclang_clang_constructUSR_ObjCClass(class_name, (__ptr_0 + 0)) - !(__ptr_0 + 0) - /** Construct a USR for a specified Objective-C instance variable and the USR * for its containing class. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_constructUSR_ObjCIvar(name: CString, classUSR: Ptr[CXString])(using - Zone -): CXString = - val __ptr_0: Ptr[CXString] = alloc[CXString](1) - __sn_wrap_libclang_clang_constructUSR_ObjCIvar(name, classUSR, (__ptr_0 + 0)) - !(__ptr_0 + 0) -end clang_constructUSR_ObjCIvar +def clang_constructUSR_ObjCIvar(name: CString, classUSR: Ptr[CXString])( + __return: Ptr[CXString] +): Unit = + __sn_wrap_libclang_clang_constructUSR_ObjCIvar(name, classUSR, __return) /** Construct a USR for a specified Objective-C instance variable and the USR * for its containing class. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_constructUSR_ObjCIvar(name: CString, classUSR: CXString)(using Zone @@ -4084,75 +4240,78 @@ end clang_constructUSR_ObjCIvar /** Construct a USR for a specified Objective-C instance variable and the USR * for its containing class. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_constructUSR_ObjCIvar(name: CString, classUSR: Ptr[CXString])( - __return: Ptr[CXString] -): Unit = - __sn_wrap_libclang_clang_constructUSR_ObjCIvar(name, classUSR, __return) +def clang_constructUSR_ObjCIvar(name: CString, classUSR: Ptr[CXString])(using + Zone +): CXString = + val __ptr_0: Ptr[CXString] = alloc[CXString](1) + __sn_wrap_libclang_clang_constructUSR_ObjCIvar(name, classUSR, (__ptr_0 + 0)) + !(__ptr_0 + 0) +end clang_constructUSR_ObjCIvar /** Construct a USR for a specified Objective-C method and the USR for its * containing class. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_constructUSR_ObjCMethod( name: CString, isInstanceMethod: CUnsignedInt, classUSR: Ptr[CXString] -)(__return: Ptr[CXString]): Unit = +)(using Zone): CXString = + val __ptr_0: Ptr[CXString] = alloc[CXString](1) __sn_wrap_libclang_clang_constructUSR_ObjCMethod( name, isInstanceMethod, classUSR, - __return + (__ptr_0 + 0) ) + !(__ptr_0 + 0) +end clang_constructUSR_ObjCMethod /** Construct a USR for a specified Objective-C method and the USR for its * containing class. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_constructUSR_ObjCMethod( name: CString, isInstanceMethod: CUnsignedInt, - classUSR: Ptr[CXString] + classUSR: CXString )(using Zone): CXString = - val __ptr_0: Ptr[CXString] = alloc[CXString](1) + val __ptr_0: Ptr[CXString] = alloc[CXString](2) + !(__ptr_0 + 0) = classUSR __sn_wrap_libclang_clang_constructUSR_ObjCMethod( name, isInstanceMethod, - classUSR, - (__ptr_0 + 0) + (__ptr_0 + 0), + (__ptr_0 + 1) ) - !(__ptr_0 + 0) + !(__ptr_0 + 1) end clang_constructUSR_ObjCMethod /** Construct a USR for a specified Objective-C method and the USR for its * containing class. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_constructUSR_ObjCMethod( name: CString, isInstanceMethod: CUnsignedInt, - classUSR: CXString -)(using Zone): CXString = - val __ptr_0: Ptr[CXString] = alloc[CXString](2) - !(__ptr_0 + 0) = classUSR + classUSR: Ptr[CXString] +)(__return: Ptr[CXString]): Unit = __sn_wrap_libclang_clang_constructUSR_ObjCMethod( name, isInstanceMethod, - (__ptr_0 + 0), - (__ptr_0 + 1) + classUSR, + __return ) - !(__ptr_0 + 1) -end clang_constructUSR_ObjCMethod /** Construct a USR for a specified Objective-C property and the USR for its * containing class. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_constructUSR_ObjCProperty(property: CString, classUSR: CXString)(using Zone @@ -4170,37 +4329,37 @@ end clang_constructUSR_ObjCProperty /** Construct a USR for a specified Objective-C property and the USR for its * containing class. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_constructUSR_ObjCProperty(property: CString, classUSR: Ptr[CXString])( - using Zone -): CXString = - val __ptr_0: Ptr[CXString] = alloc[CXString](1) + __return: Ptr[CXString] +): Unit = __sn_wrap_libclang_clang_constructUSR_ObjCProperty( property, classUSR, - (__ptr_0 + 0) + __return ) - !(__ptr_0 + 0) -end clang_constructUSR_ObjCProperty /** Construct a USR for a specified Objective-C property and the USR for its * containing class. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_constructUSR_ObjCProperty(property: CString, classUSR: Ptr[CXString])( - __return: Ptr[CXString] -): Unit = + using Zone +): CXString = + val __ptr_0: Ptr[CXString] = alloc[CXString](1) __sn_wrap_libclang_clang_constructUSR_ObjCProperty( property, classUSR, - __return + (__ptr_0 + 0) ) + !(__ptr_0 + 0) +end clang_constructUSR_ObjCProperty /** Construct a USR for a specified Objective-C protocol. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_constructUSR_ObjCProtocol(protocol_name: CString)(using Zone @@ -4215,35 +4374,35 @@ end clang_constructUSR_ObjCProtocol /** Construct a USR for a specified Objective-C protocol. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_constructUSR_ObjCProtocol(protocol_name: CString)( __return: Ptr[CXString] ): Unit = __sn_wrap_libclang_clang_constructUSR_ObjCProtocol(protocol_name, __return) -/** [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h +/** [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_disposeCXTUResourceUsage(usage: CXTUResourceUsage)(using Zone): Unit = val __ptr_0: Ptr[CXTUResourceUsage] = alloc[CXTUResourceUsage](1) !(__ptr_0 + 0) = usage __sn_wrap_libclang_clang_disposeCXTUResourceUsage((__ptr_0 + 0)) -/** [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h +/** [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_disposeCXTUResourceUsage(usage: Ptr[CXTUResourceUsage]): Unit = __sn_wrap_libclang_clang_disposeCXTUResourceUsage(usage) /** Free the given string. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/CXString.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/CXString.h */ def clang_disposeString(string: Ptr[CXString]): Unit = __sn_wrap_libclang_clang_disposeString(string) /** Free the given string. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/CXString.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/CXString.h */ def clang_disposeString(string: CXString)(using Zone): Unit = val __ptr_0: Ptr[CXString] = alloc[CXString](1) @@ -4252,14 +4411,14 @@ def clang_disposeString(string: CXString)(using Zone): Unit = /** Determine whether two cursors are equivalent. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_equalCursors(_0: Ptr[CXCursor], _1: Ptr[CXCursor]): CUnsignedInt = __sn_wrap_libclang_clang_equalCursors(_0, _1) /** Determine whether two cursors are equivalent. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_equalCursors(_0: CXCursor, _1: CXCursor)(using Zone): CUnsignedInt = val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](2) @@ -4270,7 +4429,8 @@ def clang_equalCursors(_0: CXCursor, _1: CXCursor)(using Zone): CUnsignedInt = /** Determine whether two source locations, which must refer into the same * translation unit, refer to exactly the same point in the source code. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: + * /opt/homebrew/opt/llvm@17/include/clang-c/CXSourceLocation.h */ def clang_equalLocations(loc1: CXSourceLocation, loc2: CXSourceLocation)(using Zone @@ -4284,7 +4444,8 @@ end clang_equalLocations /** Determine whether two source locations, which must refer into the same * translation unit, refer to exactly the same point in the source code. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: + * /opt/homebrew/opt/llvm@17/include/clang-c/CXSourceLocation.h */ def clang_equalLocations( loc1: Ptr[CXSourceLocation], @@ -4294,17 +4455,8 @@ def clang_equalLocations( /** Determine whether two ranges are equivalent. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ -def clang_equalRanges( - range1: Ptr[CXSourceRange], - range2: Ptr[CXSourceRange] -): CUnsignedInt = - __sn_wrap_libclang_clang_equalRanges(range1, range2) - -/** Determine whether two ranges are equivalent. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: + * /opt/homebrew/opt/llvm@17/include/clang-c/CXSourceLocation.h */ def clang_equalRanges(range1: CXSourceRange, range2: CXSourceRange)(using Zone @@ -4315,9 +4467,20 @@ def clang_equalRanges(range1: CXSourceRange, range2: CXSourceRange)(using __sn_wrap_libclang_clang_equalRanges((__ptr_0 + 0), (__ptr_0 + 1)) end clang_equalRanges +/** Determine whether two ranges are equivalent. + * + * [bindgen] header: + * /opt/homebrew/opt/llvm@17/include/clang-c/CXSourceLocation.h + */ +def clang_equalRanges( + range1: Ptr[CXSourceRange], + range2: Ptr[CXSourceRange] +): CUnsignedInt = + __sn_wrap_libclang_clang_equalRanges(range1, range2) + /** Determine whether two CXTypes represent the same type. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_equalTypes(A: CXType, B: CXType)(using Zone): CUnsignedInt = val __ptr_0: Ptr[CXType] = alloc[CXType](2) @@ -4327,14 +4490,14 @@ def clang_equalTypes(A: CXType, B: CXType)(using Zone): CUnsignedInt = /** Determine whether two CXTypes represent the same type. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_equalTypes(A: Ptr[CXType], B: Ptr[CXType]): CUnsignedInt = __sn_wrap_libclang_clang_equalTypes(A, B) /** Find #import/#include directives in a specific file. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_findIncludesInFile( TU: CXTranslationUnit, @@ -4345,7 +4508,7 @@ def clang_findIncludesInFile( /** Find #import/#include directives in a specific file. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_findIncludesInFile( TU: CXTranslationUnit, @@ -4359,7 +4522,7 @@ end clang_findIncludesInFile /** Find references of a declaration in a specific file. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_findReferencesInFile( cursor: CXCursor, @@ -4379,7 +4542,7 @@ end clang_findReferencesInFile /** Find references of a declaration in a specific file. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_findReferencesInFile( cursor: Ptr[CXCursor], @@ -4388,18 +4551,30 @@ def clang_findReferencesInFile( ): CXResult = __sn_wrap_libclang_clang_findReferencesInFile(cursor, file, visitor) -/** Format the given diagnostic in a manner that is suitable for display. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h +/** [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_formatDiagnostic(Diagnostic: CXDiagnostic, Options: CUnsignedInt)( - __return: Ptr[CXString] -): Unit = - __sn_wrap_libclang_clang_formatDiagnostic(Diagnostic, Options, __return) +def clang_findReferencesInFileWithBlock( + _0: CXCursor, + _1: CXFile, + _2: CXCursorAndRangeVisitorBlock +)(using Zone): CXResult = + val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) + !(__ptr_0 + 0) = _0 + __sn_wrap_libclang_clang_findReferencesInFileWithBlock((__ptr_0 + 0), _1, _2) +end clang_findReferencesInFileWithBlock + +/** [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +def clang_findReferencesInFileWithBlock( + _0: Ptr[CXCursor], + _1: CXFile, + _2: CXCursorAndRangeVisitorBlock +): CXResult = + __sn_wrap_libclang_clang_findReferencesInFileWithBlock(_0, _1, _2) /** Format the given diagnostic in a manner that is suitable for display. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/CXDiagnostic.h */ def clang_formatDiagnostic(Diagnostic: CXDiagnostic, Options: CUnsignedInt)( using Zone @@ -4409,16 +4584,25 @@ def clang_formatDiagnostic(Diagnostic: CXDiagnostic, Options: CUnsignedInt)( !(__ptr_0 + 0) end clang_formatDiagnostic +/** Format the given diagnostic in a manner that is suitable for display. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/CXDiagnostic.h + */ +def clang_formatDiagnostic(Diagnostic: CXDiagnostic, Options: CUnsignedInt)( + __return: Ptr[CXString] +): Unit = + __sn_wrap_libclang_clang_formatDiagnostic(Diagnostic, Options, __return) + /** Returns the address space of the given type. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getAddressSpace(T: Ptr[CXType]): CUnsignedInt = __sn_wrap_libclang_clang_getAddressSpace(T) /** Returns the address space of the given type. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getAddressSpace(T: CXType)(using Zone): CUnsignedInt = val __ptr_0: Ptr[CXType] = alloc[CXType](1) @@ -4427,7 +4611,16 @@ def clang_getAddressSpace(T: CXType)(using Zone): CUnsignedInt = /** Retrieve the type of a parameter of a function type. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +def clang_getArgType(T: Ptr[CXType], i: CUnsignedInt)( + __return: Ptr[CXType] +): Unit = + __sn_wrap_libclang_clang_getArgType(T, i, __return) + +/** Retrieve the type of a parameter of a function type. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getArgType(T: CXType, i: CUnsignedInt)(using Zone): CXType = val __ptr_0: Ptr[CXType] = alloc[CXType](2) @@ -4437,16 +4630,7 @@ def clang_getArgType(T: CXType, i: CUnsignedInt)(using Zone): CXType = /** Retrieve the type of a parameter of a function type. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ -def clang_getArgType(T: Ptr[CXType], i: CUnsignedInt)( - __return: Ptr[CXType] -): Unit = - __sn_wrap_libclang_clang_getArgType(T, i, __return) - -/** Retrieve the type of a parameter of a function type. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getArgType(T: Ptr[CXType], i: CUnsignedInt)(using Zone): CXType = val __ptr_0: Ptr[CXType] = alloc[CXType](1) @@ -4455,14 +4639,14 @@ def clang_getArgType(T: Ptr[CXType], i: CUnsignedInt)(using Zone): CXType = /** Return the element type of an array type. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getArrayElementType(T: Ptr[CXType])(__return: Ptr[CXType]): Unit = __sn_wrap_libclang_clang_getArrayElementType(T, __return) /** Return the element type of an array type. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getArrayElementType(T: CXType)(using Zone): CXType = val __ptr_0: Ptr[CXType] = alloc[CXType](2) @@ -4472,7 +4656,7 @@ def clang_getArrayElementType(T: CXType)(using Zone): CXType = /** Return the element type of an array type. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getArrayElementType(T: Ptr[CXType])(using Zone): CXType = val __ptr_0: Ptr[CXType] = alloc[CXType](1) @@ -4481,30 +4665,51 @@ def clang_getArrayElementType(T: Ptr[CXType])(using Zone): CXType = /** Return the array size of a constant array. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getArraySize(T: Ptr[CXType]): CLongLong = __sn_wrap_libclang_clang_getArraySize(T) /** Return the array size of a constant array. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getArraySize(T: CXType)(using Zone): CLongLong = val __ptr_0: Ptr[CXType] = alloc[CXType](1) !(__ptr_0 + 0) = T __sn_wrap_libclang_clang_getArraySize((__ptr_0 + 0)) +/** Retrieve the spelling of a given CXBinaryOperatorKind. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +def clang_getBinaryOperatorKindSpelling(kind: CXBinaryOperatorKind)(using + Zone +): CXString = + val __ptr_0: Ptr[CXString] = alloc[CXString](1) + __sn_wrap_libclang_clang_getBinaryOperatorKindSpelling(kind, (__ptr_0 + 0)) + !(__ptr_0 + 0) +end clang_getBinaryOperatorKindSpelling + +/** Retrieve the spelling of a given CXBinaryOperatorKind. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +def clang_getBinaryOperatorKindSpelling(kind: CXBinaryOperatorKind)( + __return: Ptr[CXString] +): Unit = + __sn_wrap_libclang_clang_getBinaryOperatorKindSpelling(kind, __return) + /** Retrieve the character data associated with the given string. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/CXString.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/CXString.h */ def clang_getCString(string: Ptr[CXString]): CString = __sn_wrap_libclang_clang_getCString(string) /** Retrieve the character data associated with the given string. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/CXString.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/CXString.h */ def clang_getCString(string: CXString)(using Zone): CString = val __ptr_0: Ptr[CXString] = alloc[CXString](1) @@ -4514,7 +4719,7 @@ def clang_getCString(string: CXString)(using Zone): CString = /** Return the memory usage of a translation unit. This object should be * released with clang_disposeCXTUResourceUsage(). * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getCXTUResourceUsage(TU: CXTranslationUnit)(using Zone @@ -4527,7 +4732,7 @@ end clang_getCXTUResourceUsage /** Return the memory usage of a translation unit. This object should be * released with clang_disposeCXTUResourceUsage(). * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getCXTUResourceUsage(TU: CXTranslationUnit)( __return: Ptr[CXTUResourceUsage] @@ -4536,7 +4741,14 @@ def clang_getCXTUResourceUsage(TU: CXTranslationUnit)( /** Returns the access control level for the referenced object. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +def clang_getCXXAccessSpecifier(_0: Ptr[CXCursor]): CX_CXXAccessSpecifier = + __sn_wrap_libclang_clang_getCXXAccessSpecifier(_0) + +/** Returns the access control level for the referenced object. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getCXXAccessSpecifier(_0: CXCursor)(using Zone @@ -4546,26 +4758,16 @@ def clang_getCXXAccessSpecifier(_0: CXCursor)(using __sn_wrap_libclang_clang_getCXXAccessSpecifier((__ptr_0 + 0)) end clang_getCXXAccessSpecifier -/** Returns the access control level for the referenced object. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ -def clang_getCXXAccessSpecifier(_0: Ptr[CXCursor]): CX_CXXAccessSpecifier = - __sn_wrap_libclang_clang_getCXXAccessSpecifier(_0) - /** Retrieve the canonical cursor corresponding to the given cursor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_getCanonicalCursor(_0: CXCursor)(using Zone): CXCursor = - val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](2) - !(__ptr_0 + 0) = _0 - __sn_wrap_libclang_clang_getCanonicalCursor((__ptr_0 + 0), (__ptr_0 + 1)) - !(__ptr_0 + 1) +def clang_getCanonicalCursor(_0: Ptr[CXCursor])(__return: Ptr[CXCursor]): Unit = + __sn_wrap_libclang_clang_getCanonicalCursor(_0, __return) /** Retrieve the canonical cursor corresponding to the given cursor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getCanonicalCursor(_0: Ptr[CXCursor])(using Zone): CXCursor = val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) @@ -4574,14 +4776,24 @@ def clang_getCanonicalCursor(_0: Ptr[CXCursor])(using Zone): CXCursor = /** Retrieve the canonical cursor corresponding to the given cursor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_getCanonicalCursor(_0: Ptr[CXCursor])(__return: Ptr[CXCursor]): Unit = - __sn_wrap_libclang_clang_getCanonicalCursor(_0, __return) +def clang_getCanonicalCursor(_0: CXCursor)(using Zone): CXCursor = + val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](2) + !(__ptr_0 + 0) = _0 + __sn_wrap_libclang_clang_getCanonicalCursor((__ptr_0 + 0), (__ptr_0 + 1)) + !(__ptr_0 + 1) + +/** Return the canonical type for a CXType. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +def clang_getCanonicalType(T: Ptr[CXType])(__return: Ptr[CXType]): Unit = + __sn_wrap_libclang_clang_getCanonicalType(T, __return) /** Return the canonical type for a CXType. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getCanonicalType(T: Ptr[CXType])(using Zone): CXType = val __ptr_0: Ptr[CXType] = alloc[CXType](1) @@ -4590,7 +4802,7 @@ def clang_getCanonicalType(T: Ptr[CXType])(using Zone): CXType = /** Return the canonical type for a CXType. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getCanonicalType(T: CXType)(using Zone): CXType = val __ptr_0: Ptr[CXType] = alloc[CXType](2) @@ -4598,34 +4810,27 @@ def clang_getCanonicalType(T: CXType)(using Zone): CXType = __sn_wrap_libclang_clang_getCanonicalType((__ptr_0 + 0), (__ptr_0 + 1)) !(__ptr_0 + 1) -/** Return the canonical type for a CXType. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ -def clang_getCanonicalType(T: Ptr[CXType])(__return: Ptr[CXType]): Unit = - __sn_wrap_libclang_clang_getCanonicalType(T, __return) - /** Return a version string, suitable for showing to a user, but not intended to * be parsed (the format is not guaranteed to be stable). * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_getClangVersion()(__return: Ptr[CXString]): Unit = - __sn_wrap_libclang_clang_getClangVersion(__return) +def clang_getClangVersion()(using Zone): CXString = + val __ptr_0: Ptr[CXString] = alloc[CXString](1) + __sn_wrap_libclang_clang_getClangVersion((__ptr_0 + 0)) + !(__ptr_0 + 0) /** Return a version string, suitable for showing to a user, but not intended to * be parsed (the format is not guaranteed to be stable). * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_getClangVersion()(using Zone): CXString = - val __ptr_0: Ptr[CXString] = alloc[CXString](1) - __sn_wrap_libclang_clang_getClangVersion((__ptr_0 + 0)) - !(__ptr_0 + 0) +def clang_getClangVersion()(__return: Ptr[CXString]): Unit = + __sn_wrap_libclang_clang_getClangVersion(__return) /** Retrieve the annotation associated with the given completion string. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getCompletionAnnotation( completion_string: CXCompletionString, @@ -4642,7 +4847,7 @@ end clang_getCompletionAnnotation /** Retrieve the annotation associated with the given completion string. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getCompletionAnnotation( completion_string: CXCompletionString, @@ -4657,69 +4862,69 @@ def clang_getCompletionAnnotation( /** Retrieve the brief documentation comment attached to the declaration that * corresponds to the given completion string. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_getCompletionBriefComment( - completion_string: CXCompletionString -)(__return: Ptr[CXString]): Unit = +def clang_getCompletionBriefComment(completion_string: CXCompletionString)(using + Zone +): CXString = + val __ptr_0: Ptr[CXString] = alloc[CXString](1) __sn_wrap_libclang_clang_getCompletionBriefComment( completion_string, - __return + (__ptr_0 + 0) ) + !(__ptr_0 + 0) +end clang_getCompletionBriefComment /** Retrieve the brief documentation comment attached to the declaration that * corresponds to the given completion string. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_getCompletionBriefComment(completion_string: CXCompletionString)(using - Zone -): CXString = - val __ptr_0: Ptr[CXString] = alloc[CXString](1) +def clang_getCompletionBriefComment( + completion_string: CXCompletionString +)(__return: Ptr[CXString]): Unit = __sn_wrap_libclang_clang_getCompletionBriefComment( completion_string, - (__ptr_0 + 0) + __return ) - !(__ptr_0 + 0) -end clang_getCompletionBriefComment /** Retrieve the text associated with a particular chunk within a completion * string. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getCompletionChunkText( completion_string: CXCompletionString, chunk_number: CUnsignedInt -)(using Zone): CXString = - val __ptr_0: Ptr[CXString] = alloc[CXString](1) +)(__return: Ptr[CXString]): Unit = __sn_wrap_libclang_clang_getCompletionChunkText( completion_string, chunk_number, - (__ptr_0 + 0) + __return ) - !(__ptr_0 + 0) -end clang_getCompletionChunkText /** Retrieve the text associated with a particular chunk within a completion * string. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getCompletionChunkText( completion_string: CXCompletionString, chunk_number: CUnsignedInt -)(__return: Ptr[CXString]): Unit = +)(using Zone): CXString = + val __ptr_0: Ptr[CXString] = alloc[CXString](1) __sn_wrap_libclang_clang_getCompletionChunkText( completion_string, chunk_number, - __return + (__ptr_0 + 0) ) + !(__ptr_0 + 0) +end clang_getCompletionChunkText /** Fix-its that *must* be applied before inserting the text for the * corresponding completion. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getCompletionFixIt( results: Ptr[CXCodeCompleteResults], @@ -4738,7 +4943,7 @@ def clang_getCompletionFixIt( /** Fix-its that *must* be applied before inserting the text for the * corresponding completion. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getCompletionFixIt( results: Ptr[CXCodeCompleteResults], @@ -4759,49 +4964,52 @@ end clang_getCompletionFixIt /** Retrieve the parent context of the given completion string. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getCompletionParent( completion_string: CXCompletionString, kind: Ptr[CXCursorKind] -)(__return: Ptr[CXString]): Unit = +)(using Zone): CXString = + val __ptr_0: Ptr[CXString] = alloc[CXString](1) __sn_wrap_libclang_clang_getCompletionParent( completion_string, kind, - __return + (__ptr_0 + 0) ) + !(__ptr_0 + 0) +end clang_getCompletionParent /** Retrieve the parent context of the given completion string. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getCompletionParent( completion_string: CXCompletionString, kind: Ptr[CXCursorKind] -)(using Zone): CXString = - val __ptr_0: Ptr[CXString] = alloc[CXString](1) +)(__return: Ptr[CXString]): Unit = __sn_wrap_libclang_clang_getCompletionParent( completion_string, kind, - (__ptr_0 + 0) + __return ) - !(__ptr_0 + 0) -end clang_getCompletionParent /** Map a source location to the cursor that describes the entity at that * location in the source code. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_getCursor(_0: CXTranslationUnit, _1: Ptr[CXSourceLocation])( - __return: Ptr[CXCursor] -): Unit = - __sn_wrap_libclang_clang_getCursor(_0, _1, __return) +def clang_getCursor(_0: CXTranslationUnit, _1: Ptr[CXSourceLocation])(using + Zone +): CXCursor = + val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) + __sn_wrap_libclang_clang_getCursor(_0, _1, (__ptr_0 + 0)) + !(__ptr_0 + 0) +end clang_getCursor /** Map a source location to the cursor that describes the entity at that * location in the source code. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getCursor(_0: CXTranslationUnit, _1: CXSourceLocation)(using Zone @@ -4816,20 +5024,25 @@ end clang_getCursor /** Map a source location to the cursor that describes the entity at that * location in the source code. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_getCursor(_0: CXTranslationUnit, _1: Ptr[CXSourceLocation])(using - Zone -): CXCursor = - val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) - __sn_wrap_libclang_clang_getCursor(_0, _1, (__ptr_0 + 0)) - !(__ptr_0 + 0) -end clang_getCursor +def clang_getCursor(_0: CXTranslationUnit, _1: Ptr[CXSourceLocation])( + __return: Ptr[CXCursor] +): Unit = + __sn_wrap_libclang_clang_getCursor(_0, _1, __return) + +/** Determine the availability of the entity that this cursor refers to, taking + * the current target platform into account. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +def clang_getCursorAvailability(cursor: Ptr[CXCursor]): CXAvailabilityKind = + __sn_wrap_libclang_clang_getCursorAvailability(cursor) /** Determine the availability of the entity that this cursor refers to, taking * the current target platform into account. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getCursorAvailability(cursor: CXCursor)(using Zone @@ -4839,26 +5052,31 @@ def clang_getCursorAvailability(cursor: CXCursor)(using __sn_wrap_libclang_clang_getCursorAvailability((__ptr_0 + 0)) end clang_getCursorAvailability -/** Determine the availability of the entity that this cursor refers to, taking - * the current target platform into account. +/** Retrieve the binary operator kind of this cursor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_getCursorAvailability(cursor: Ptr[CXCursor]): CXAvailabilityKind = - __sn_wrap_libclang_clang_getCursorAvailability(cursor) +def clang_getCursorBinaryOperatorKind(cursor: CXCursor)(using + Zone +): CXBinaryOperatorKind = + val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) + !(__ptr_0 + 0) = cursor + __sn_wrap_libclang_clang_getCursorBinaryOperatorKind((__ptr_0 + 0)) +end clang_getCursorBinaryOperatorKind -/** Retrieve a completion string for an arbitrary declaration or macro - * definition cursor. +/** Retrieve the binary operator kind of this cursor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_getCursorCompletionString(cursor: Ptr[CXCursor]): CXCompletionString = - __sn_wrap_libclang_clang_getCursorCompletionString(cursor) +def clang_getCursorBinaryOperatorKind( + cursor: Ptr[CXCursor] +): CXBinaryOperatorKind = + __sn_wrap_libclang_clang_getCursorBinaryOperatorKind(cursor) /** Retrieve a completion string for an arbitrary declaration or macro * definition cursor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getCursorCompletionString(cursor: CXCursor)(using Zone @@ -4868,20 +5086,28 @@ def clang_getCursorCompletionString(cursor: CXCursor)(using __sn_wrap_libclang_clang_getCursorCompletionString((__ptr_0 + 0)) end clang_getCursorCompletionString +/** Retrieve a completion string for an arbitrary declaration or macro + * definition cursor. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +def clang_getCursorCompletionString(cursor: Ptr[CXCursor]): CXCompletionString = + __sn_wrap_libclang_clang_getCursorCompletionString(cursor) + /** For a cursor that is either a reference to or a declaration of some entity, * retrieve a cursor that describes the definition of that entity. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_getCursorDefinition(_0: Ptr[CXCursor])(using Zone): CXCursor = - val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) - __sn_wrap_libclang_clang_getCursorDefinition(_0, (__ptr_0 + 0)) - !(__ptr_0 + 0) +def clang_getCursorDefinition(_0: Ptr[CXCursor])( + __return: Ptr[CXCursor] +): Unit = + __sn_wrap_libclang_clang_getCursorDefinition(_0, __return) /** For a cursor that is either a reference to or a declaration of some entity, * retrieve a cursor that describes the definition of that entity. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getCursorDefinition(_0: CXCursor)(using Zone): CXCursor = val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](2) @@ -4892,28 +5118,25 @@ def clang_getCursorDefinition(_0: CXCursor)(using Zone): CXCursor = /** For a cursor that is either a reference to or a declaration of some entity, * retrieve a cursor that describes the definition of that entity. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_getCursorDefinition(_0: Ptr[CXCursor])( - __return: Ptr[CXCursor] -): Unit = - __sn_wrap_libclang_clang_getCursorDefinition(_0, __return) +def clang_getCursorDefinition(_0: Ptr[CXCursor])(using Zone): CXCursor = + val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) + __sn_wrap_libclang_clang_getCursorDefinition(_0, (__ptr_0 + 0)) + !(__ptr_0 + 0) /** Retrieve the display name for the entity referenced by this cursor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_getCursorDisplayName(_0: CXCursor)(using Zone): CXString = - val __ptr_0: Ptr[CXString] = alloc[CXString](1) - val __ptr_1: Ptr[CXCursor] = alloc[CXCursor](1) - !(__ptr_1 + 0) = _0 - __sn_wrap_libclang_clang_getCursorDisplayName((__ptr_1 + 0), (__ptr_0 + 0)) - !(__ptr_0 + 0) -end clang_getCursorDisplayName +def clang_getCursorDisplayName(_0: Ptr[CXCursor])( + __return: Ptr[CXString] +): Unit = + __sn_wrap_libclang_clang_getCursorDisplayName(_0, __return) /** Retrieve the display name for the entity referenced by this cursor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getCursorDisplayName(_0: Ptr[CXCursor])(using Zone): CXString = val __ptr_0: Ptr[CXString] = alloc[CXString](1) @@ -4922,17 +5145,20 @@ def clang_getCursorDisplayName(_0: Ptr[CXCursor])(using Zone): CXString = /** Retrieve the display name for the entity referenced by this cursor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_getCursorDisplayName(_0: Ptr[CXCursor])( - __return: Ptr[CXString] -): Unit = - __sn_wrap_libclang_clang_getCursorDisplayName(_0, __return) +def clang_getCursorDisplayName(_0: CXCursor)(using Zone): CXString = + val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) + val __ptr_1: Ptr[CXString] = alloc[CXString](1) + !(__ptr_0 + 0) = _0 + __sn_wrap_libclang_clang_getCursorDisplayName((__ptr_0 + 0), (__ptr_1 + 0)) + !(__ptr_1 + 0) +end clang_getCursorDisplayName /** Retrieve the exception specification type associated with a given cursor. * This is a value of type CXCursor_ExceptionSpecificationKind. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getCursorExceptionSpecificationType(C: Ptr[CXCursor]): CInt = __sn_wrap_libclang_clang_getCursorExceptionSpecificationType(C) @@ -4940,7 +5166,7 @@ def clang_getCursorExceptionSpecificationType(C: Ptr[CXCursor]): CInt = /** Retrieve the exception specification type associated with a given cursor. * This is a value of type CXCursor_ExceptionSpecificationKind. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getCursorExceptionSpecificationType(C: CXCursor)(using Zone): CInt = val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) @@ -4950,7 +5176,7 @@ def clang_getCursorExceptionSpecificationType(C: CXCursor)(using Zone): CInt = /** Retrieve the physical extent of the source construct referenced by the given * cursor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getCursorExtent(_0: Ptr[CXCursor])( __return: Ptr[CXSourceRange] @@ -4960,7 +5186,7 @@ def clang_getCursorExtent(_0: Ptr[CXCursor])( /** Retrieve the physical extent of the source construct referenced by the given * cursor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getCursorExtent(_0: CXCursor)(using Zone): CXSourceRange = val __ptr_0: Ptr[CXSourceRange] = alloc[CXSourceRange](1) @@ -4973,7 +5199,7 @@ end clang_getCursorExtent /** Retrieve the physical extent of the source construct referenced by the given * cursor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getCursorExtent(_0: Ptr[CXCursor])(using Zone): CXSourceRange = val __ptr_0: Ptr[CXSourceRange] = alloc[CXSourceRange](1) @@ -4982,24 +5208,24 @@ def clang_getCursorExtent(_0: Ptr[CXCursor])(using Zone): CXSourceRange = /** Retrieve the kind of the given cursor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ -def clang_getCursorKind(_0: Ptr[CXCursor]): CXCursorKind = - __sn_wrap_libclang_clang_getCursorKind(_0) - -/** Retrieve the kind of the given cursor. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getCursorKind(_0: CXCursor)(using Zone): CXCursorKind = val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) !(__ptr_0 + 0) = _0 __sn_wrap_libclang_clang_getCursorKind((__ptr_0 + 0)) +/** Retrieve the kind of the given cursor. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +def clang_getCursorKind(_0: Ptr[CXCursor]): CXCursorKind = + __sn_wrap_libclang_clang_getCursorKind(_0) + /** These routines are used for testing and debugging, only, and should not be * relied upon. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getCursorKindSpelling(Kind: CXCursorKind)(using Zone): CXString = val __ptr_0: Ptr[CXString] = alloc[CXString](1) @@ -5009,7 +5235,7 @@ def clang_getCursorKindSpelling(Kind: CXCursorKind)(using Zone): CXString = /** These routines are used for testing and debugging, only, and should not be * relied upon. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getCursorKindSpelling(Kind: CXCursorKind)( __return: Ptr[CXString] @@ -5018,32 +5244,33 @@ def clang_getCursorKindSpelling(Kind: CXCursorKind)( /** Determine the "language" of the entity referred to by a given cursor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ -def clang_getCursorLanguage(cursor: Ptr[CXCursor]): CXLanguageKind = - __sn_wrap_libclang_clang_getCursorLanguage(cursor) - -/** Determine the "language" of the entity referred to by a given cursor. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getCursorLanguage(cursor: CXCursor)(using Zone): CXLanguageKind = val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) !(__ptr_0 + 0) = cursor __sn_wrap_libclang_clang_getCursorLanguage((__ptr_0 + 0)) +/** Determine the "language" of the entity referred to by a given cursor. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +def clang_getCursorLanguage(cursor: Ptr[CXCursor]): CXLanguageKind = + __sn_wrap_libclang_clang_getCursorLanguage(cursor) + /** Determine the lexical parent of the given cursor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_getCursorLexicalParent(cursor: Ptr[CXCursor])( - __return: Ptr[CXCursor] -): Unit = - __sn_wrap_libclang_clang_getCursorLexicalParent(cursor, __return) +def clang_getCursorLexicalParent(cursor: CXCursor)(using Zone): CXCursor = + val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](2) + !(__ptr_0 + 0) = cursor + __sn_wrap_libclang_clang_getCursorLexicalParent((__ptr_0 + 0), (__ptr_0 + 1)) + !(__ptr_0 + 1) /** Determine the lexical parent of the given cursor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getCursorLexicalParent(cursor: Ptr[CXCursor])(using Zone): CXCursor = val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) @@ -5052,17 +5279,16 @@ def clang_getCursorLexicalParent(cursor: Ptr[CXCursor])(using Zone): CXCursor = /** Determine the lexical parent of the given cursor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_getCursorLexicalParent(cursor: CXCursor)(using Zone): CXCursor = - val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](2) - !(__ptr_0 + 0) = cursor - __sn_wrap_libclang_clang_getCursorLexicalParent((__ptr_0 + 0), (__ptr_0 + 1)) - !(__ptr_0 + 1) +def clang_getCursorLexicalParent(cursor: Ptr[CXCursor])( + __return: Ptr[CXCursor] +): Unit = + __sn_wrap_libclang_clang_getCursorLexicalParent(cursor, __return) /** Determine the linkage of the entity referred to by a given cursor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getCursorLinkage(cursor: CXCursor)(using Zone): CXLinkageKind = val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) @@ -5071,7 +5297,7 @@ def clang_getCursorLinkage(cursor: CXCursor)(using Zone): CXLinkageKind = /** Determine the linkage of the entity referred to by a given cursor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getCursorLinkage(cursor: Ptr[CXCursor]): CXLinkageKind = __sn_wrap_libclang_clang_getCursorLinkage(cursor) @@ -5079,17 +5305,7 @@ def clang_getCursorLinkage(cursor: Ptr[CXCursor]): CXLinkageKind = /** Retrieve the physical location of the source constructor referenced by the * given cursor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ -def clang_getCursorLocation(_0: Ptr[CXCursor])(using Zone): CXSourceLocation = - val __ptr_0: Ptr[CXSourceLocation] = alloc[CXSourceLocation](1) - __sn_wrap_libclang_clang_getCursorLocation(_0, (__ptr_0 + 0)) - !(__ptr_0 + 0) - -/** Retrieve the physical location of the source constructor referenced by the - * given cursor. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getCursorLocation(_0: Ptr[CXCursor])( __return: Ptr[CXSourceLocation] @@ -5099,7 +5315,7 @@ def clang_getCursorLocation(_0: Ptr[CXCursor])( /** Retrieve the physical location of the source constructor referenced by the * given cursor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getCursorLocation(_0: CXCursor)(using Zone): CXSourceLocation = val __ptr_0: Ptr[CXSourceLocation] = alloc[CXSourceLocation](1) @@ -5109,22 +5325,34 @@ def clang_getCursorLocation(_0: CXCursor)(using Zone): CXSourceLocation = !(__ptr_0 + 0) end clang_getCursorLocation +/** Retrieve the physical location of the source constructor referenced by the + * given cursor. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +def clang_getCursorLocation(_0: Ptr[CXCursor])(using Zone): CXSourceLocation = + val __ptr_0: Ptr[CXSourceLocation] = alloc[CXSourceLocation](1) + __sn_wrap_libclang_clang_getCursorLocation(_0, (__ptr_0 + 0)) + !(__ptr_0 + 0) + /** Determine the availability of the entity that this cursor refers to on any * platforms for which availability information is known. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getCursorPlatformAvailability( - cursor: Ptr[CXCursor], + cursor: CXCursor, always_deprecated: Ptr[CInt], deprecated_message: Ptr[CXString], always_unavailable: Ptr[CInt], unavailable_message: Ptr[CXString], availability: Ptr[CXPlatformAvailability], availability_size: CInt -): CInt = +)(using Zone): CInt = + val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) + !(__ptr_0 + 0) = cursor __sn_wrap_libclang_clang_getCursorPlatformAvailability( - cursor, + (__ptr_0 + 0), always_deprecated, deprecated_message, always_unavailable, @@ -5132,47 +5360,35 @@ def clang_getCursorPlatformAvailability( availability, availability_size ) +end clang_getCursorPlatformAvailability /** Determine the availability of the entity that this cursor refers to on any * platforms for which availability information is known. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getCursorPlatformAvailability( - cursor: CXCursor, + cursor: Ptr[CXCursor], always_deprecated: Ptr[CInt], deprecated_message: Ptr[CXString], always_unavailable: Ptr[CInt], unavailable_message: Ptr[CXString], availability: Ptr[CXPlatformAvailability], availability_size: CInt -)(using Zone): CInt = - val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) - !(__ptr_0 + 0) = cursor +): CInt = __sn_wrap_libclang_clang_getCursorPlatformAvailability( - (__ptr_0 + 0), + cursor, always_deprecated, deprecated_message, - always_unavailable, - unavailable_message, - availability, - availability_size - ) -end clang_getCursorPlatformAvailability - -/** Pretty print declarations. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ -def clang_getCursorPrettyPrinted( - Cursor: Ptr[CXCursor], - Policy: CXPrintingPolicy -)(__return: Ptr[CXString]): Unit = - __sn_wrap_libclang_clang_getCursorPrettyPrinted(Cursor, Policy, __return) + always_unavailable, + unavailable_message, + availability, + availability_size + ) /** Pretty print declarations. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getCursorPrettyPrinted( Cursor: Ptr[CXCursor], @@ -5185,62 +5401,69 @@ end clang_getCursorPrettyPrinted /** Pretty print declarations. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getCursorPrettyPrinted(Cursor: CXCursor, Policy: CXPrintingPolicy)( using Zone ): CXString = - val __ptr_0: Ptr[CXString] = alloc[CXString](1) - val __ptr_1: Ptr[CXCursor] = alloc[CXCursor](1) - !(__ptr_1 + 0) = Cursor + val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) + val __ptr_1: Ptr[CXString] = alloc[CXString](1) + !(__ptr_0 + 0) = Cursor __sn_wrap_libclang_clang_getCursorPrettyPrinted( - (__ptr_1 + 0), + (__ptr_0 + 0), Policy, - (__ptr_0 + 0) + (__ptr_1 + 0) ) - !(__ptr_0 + 0) + !(__ptr_1 + 0) end clang_getCursorPrettyPrinted -/** Retrieve the default policy for the cursor. +/** Pretty print declarations. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_getCursorPrintingPolicy(_0: CXCursor)(using Zone): CXPrintingPolicy = - val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) - !(__ptr_0 + 0) = _0 - __sn_wrap_libclang_clang_getCursorPrintingPolicy((__ptr_0 + 0)) +def clang_getCursorPrettyPrinted( + Cursor: Ptr[CXCursor], + Policy: CXPrintingPolicy +)(__return: Ptr[CXString]): Unit = + __sn_wrap_libclang_clang_getCursorPrettyPrinted(Cursor, Policy, __return) /** Retrieve the default policy for the cursor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getCursorPrintingPolicy(_0: Ptr[CXCursor]): CXPrintingPolicy = __sn_wrap_libclang_clang_getCursorPrintingPolicy(_0) +/** Retrieve the default policy for the cursor. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +def clang_getCursorPrintingPolicy(_0: CXCursor)(using Zone): CXPrintingPolicy = + val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) + !(__ptr_0 + 0) = _0 + __sn_wrap_libclang_clang_getCursorPrintingPolicy((__ptr_0 + 0)) + /** Given a cursor that references something else, return the source range * covering that reference. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getCursorReferenceNameRange( C: Ptr[CXCursor], NameFlags: CUnsignedInt, PieceIndex: CUnsignedInt -)(using Zone): CXSourceRange = - val __ptr_0: Ptr[CXSourceRange] = alloc[CXSourceRange](1) +)(__return: Ptr[CXSourceRange]): Unit = __sn_wrap_libclang_clang_getCursorReferenceNameRange( C, NameFlags, PieceIndex, - (__ptr_0 + 0) + __return ) - !(__ptr_0 + 0) -end clang_getCursorReferenceNameRange /** Given a cursor that references something else, return the source range * covering that reference. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getCursorReferenceNameRange( C: CXCursor, @@ -5262,24 +5485,27 @@ end clang_getCursorReferenceNameRange /** Given a cursor that references something else, return the source range * covering that reference. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getCursorReferenceNameRange( C: Ptr[CXCursor], NameFlags: CUnsignedInt, PieceIndex: CUnsignedInt -)(__return: Ptr[CXSourceRange]): Unit = +)(using Zone): CXSourceRange = + val __ptr_0: Ptr[CXSourceRange] = alloc[CXSourceRange](1) __sn_wrap_libclang_clang_getCursorReferenceNameRange( C, NameFlags, PieceIndex, - __return + (__ptr_0 + 0) ) + !(__ptr_0 + 0) +end clang_getCursorReferenceNameRange /** For a cursor that is a reference, retrieve a cursor representing the entity * that it references. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getCursorReferenced(_0: Ptr[CXCursor])( __return: Ptr[CXCursor] @@ -5289,17 +5515,7 @@ def clang_getCursorReferenced(_0: Ptr[CXCursor])( /** For a cursor that is a reference, retrieve a cursor representing the entity * that it references. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ -def clang_getCursorReferenced(_0: Ptr[CXCursor])(using Zone): CXCursor = - val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) - __sn_wrap_libclang_clang_getCursorReferenced(_0, (__ptr_0 + 0)) - !(__ptr_0 + 0) - -/** For a cursor that is a reference, retrieve a cursor representing the entity - * that it references. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getCursorReferenced(_0: CXCursor)(using Zone): CXCursor = val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](2) @@ -5307,46 +5523,47 @@ def clang_getCursorReferenced(_0: CXCursor)(using Zone): CXCursor = __sn_wrap_libclang_clang_getCursorReferenced((__ptr_0 + 0), (__ptr_0 + 1)) !(__ptr_0 + 1) -/** Retrieve the return type associated with a given cursor. +/** For a cursor that is a reference, retrieve a cursor representing the entity + * that it references. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_getCursorResultType(C: Ptr[CXCursor])(__return: Ptr[CXType]): Unit = - __sn_wrap_libclang_clang_getCursorResultType(C, __return) +def clang_getCursorReferenced(_0: Ptr[CXCursor])(using Zone): CXCursor = + val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) + __sn_wrap_libclang_clang_getCursorReferenced(_0, (__ptr_0 + 0)) + !(__ptr_0 + 0) /** Retrieve the return type associated with a given cursor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_getCursorResultType(C: CXCursor)(using Zone): CXType = - val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) - val __ptr_1: Ptr[CXType] = alloc[CXType](1) - !(__ptr_0 + 0) = C - __sn_wrap_libclang_clang_getCursorResultType((__ptr_0 + 0), (__ptr_1 + 0)) - !(__ptr_1 + 0) -end clang_getCursorResultType +def clang_getCursorResultType(C: Ptr[CXCursor])(__return: Ptr[CXType]): Unit = + __sn_wrap_libclang_clang_getCursorResultType(C, __return) /** Retrieve the return type associated with a given cursor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getCursorResultType(C: Ptr[CXCursor])(using Zone): CXType = val __ptr_0: Ptr[CXType] = alloc[CXType](1) __sn_wrap_libclang_clang_getCursorResultType(C, (__ptr_0 + 0)) !(__ptr_0 + 0) -/** Determine the semantic parent of the given cursor. +/** Retrieve the return type associated with a given cursor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_getCursorSemanticParent(cursor: Ptr[CXCursor])(using Zone): CXCursor = - val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) - __sn_wrap_libclang_clang_getCursorSemanticParent(cursor, (__ptr_0 + 0)) +def clang_getCursorResultType(C: CXCursor)(using Zone): CXType = + val __ptr_0: Ptr[CXType] = alloc[CXType](1) + val __ptr_1: Ptr[CXCursor] = alloc[CXCursor](1) + !(__ptr_1 + 0) = C + __sn_wrap_libclang_clang_getCursorResultType((__ptr_1 + 0), (__ptr_0 + 0)) !(__ptr_0 + 0) +end clang_getCursorResultType /** Determine the semantic parent of the given cursor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getCursorSemanticParent(cursor: Ptr[CXCursor])( __return: Ptr[CXCursor] @@ -5355,7 +5572,16 @@ def clang_getCursorSemanticParent(cursor: Ptr[CXCursor])( /** Determine the semantic parent of the given cursor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +def clang_getCursorSemanticParent(cursor: Ptr[CXCursor])(using Zone): CXCursor = + val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) + __sn_wrap_libclang_clang_getCursorSemanticParent(cursor, (__ptr_0 + 0)) + !(__ptr_0 + 0) + +/** Determine the semantic parent of the given cursor. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getCursorSemanticParent(cursor: CXCursor)(using Zone): CXCursor = val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](2) @@ -5365,36 +5591,36 @@ def clang_getCursorSemanticParent(cursor: CXCursor)(using Zone): CXCursor = /** Retrieve a name for the entity referenced by this cursor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getCursorSpelling(_0: Ptr[CXCursor])(__return: Ptr[CXString]): Unit = __sn_wrap_libclang_clang_getCursorSpelling(_0, __return) /** Retrieve a name for the entity referenced by this cursor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_getCursorSpelling(_0: CXCursor)(using Zone): CXString = +def clang_getCursorSpelling(_0: Ptr[CXCursor])(using Zone): CXString = val __ptr_0: Ptr[CXString] = alloc[CXString](1) - val __ptr_1: Ptr[CXCursor] = alloc[CXCursor](1) - !(__ptr_1 + 0) = _0 - __sn_wrap_libclang_clang_getCursorSpelling((__ptr_1 + 0), (__ptr_0 + 0)) + __sn_wrap_libclang_clang_getCursorSpelling(_0, (__ptr_0 + 0)) !(__ptr_0 + 0) -end clang_getCursorSpelling /** Retrieve a name for the entity referenced by this cursor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_getCursorSpelling(_0: Ptr[CXCursor])(using Zone): CXString = - val __ptr_0: Ptr[CXString] = alloc[CXString](1) - __sn_wrap_libclang_clang_getCursorSpelling(_0, (__ptr_0 + 0)) - !(__ptr_0 + 0) +def clang_getCursorSpelling(_0: CXCursor)(using Zone): CXString = + val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) + val __ptr_1: Ptr[CXString] = alloc[CXString](1) + !(__ptr_0 + 0) = _0 + __sn_wrap_libclang_clang_getCursorSpelling((__ptr_0 + 0), (__ptr_1 + 0)) + !(__ptr_1 + 0) +end clang_getCursorSpelling /** Determine the "thread-local storage (TLS) kind" of the declaration referred * to by a cursor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getCursorTLSKind(cursor: CXCursor)(using Zone): CXTLSKind = val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) @@ -5404,43 +5630,43 @@ def clang_getCursorTLSKind(cursor: CXCursor)(using Zone): CXTLSKind = /** Determine the "thread-local storage (TLS) kind" of the declaration referred * to by a cursor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getCursorTLSKind(cursor: Ptr[CXCursor]): CXTLSKind = __sn_wrap_libclang_clang_getCursorTLSKind(cursor) /** Retrieve the type of a CXCursor (if any). * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_getCursorType(C: Ptr[CXCursor])(using Zone): CXType = +def clang_getCursorType(C: CXCursor)(using Zone): CXType = val __ptr_0: Ptr[CXType] = alloc[CXType](1) - __sn_wrap_libclang_clang_getCursorType(C, (__ptr_0 + 0)) + val __ptr_1: Ptr[CXCursor] = alloc[CXCursor](1) + !(__ptr_1 + 0) = C + __sn_wrap_libclang_clang_getCursorType((__ptr_1 + 0), (__ptr_0 + 0)) !(__ptr_0 + 0) +end clang_getCursorType /** Retrieve the type of a CXCursor (if any). * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_getCursorType(C: CXCursor)(using Zone): CXType = - val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) - val __ptr_1: Ptr[CXType] = alloc[CXType](1) - !(__ptr_0 + 0) = C - __sn_wrap_libclang_clang_getCursorType((__ptr_0 + 0), (__ptr_1 + 0)) - !(__ptr_1 + 0) -end clang_getCursorType +def clang_getCursorType(C: Ptr[CXCursor])(__return: Ptr[CXType]): Unit = + __sn_wrap_libclang_clang_getCursorType(C, __return) /** Retrieve the type of a CXCursor (if any). * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_getCursorType(C: Ptr[CXCursor])(__return: Ptr[CXType]): Unit = - __sn_wrap_libclang_clang_getCursorType(C, __return) +def clang_getCursorType(C: Ptr[CXCursor])(using Zone): CXType = + val __ptr_0: Ptr[CXType] = alloc[CXType](1) + __sn_wrap_libclang_clang_getCursorType(C, (__ptr_0 + 0)) + !(__ptr_0 + 0) /** Retrieve a Unified Symbol Resolution (USR) for the entity referenced by the * given cursor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getCursorUSR(_0: Ptr[CXCursor])(__return: Ptr[CXString]): Unit = __sn_wrap_libclang_clang_getCursorUSR(_0, __return) @@ -5448,45 +5674,66 @@ def clang_getCursorUSR(_0: Ptr[CXCursor])(__return: Ptr[CXString]): Unit = /** Retrieve a Unified Symbol Resolution (USR) for the entity referenced by the * given cursor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_getCursorUSR(_0: CXCursor)(using Zone): CXString = +def clang_getCursorUSR(_0: Ptr[CXCursor])(using Zone): CXString = val __ptr_0: Ptr[CXString] = alloc[CXString](1) - val __ptr_1: Ptr[CXCursor] = alloc[CXCursor](1) - !(__ptr_1 + 0) = _0 - __sn_wrap_libclang_clang_getCursorUSR((__ptr_1 + 0), (__ptr_0 + 0)) + __sn_wrap_libclang_clang_getCursorUSR(_0, (__ptr_0 + 0)) !(__ptr_0 + 0) -end clang_getCursorUSR /** Retrieve a Unified Symbol Resolution (USR) for the entity referenced by the * given cursor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_getCursorUSR(_0: Ptr[CXCursor])(using Zone): CXString = - val __ptr_0: Ptr[CXString] = alloc[CXString](1) - __sn_wrap_libclang_clang_getCursorUSR(_0, (__ptr_0 + 0)) - !(__ptr_0 + 0) +def clang_getCursorUSR(_0: CXCursor)(using Zone): CXString = + val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) + val __ptr_1: Ptr[CXString] = alloc[CXString](1) + !(__ptr_0 + 0) = _0 + __sn_wrap_libclang_clang_getCursorUSR((__ptr_0 + 0), (__ptr_1 + 0)) + !(__ptr_1 + 0) +end clang_getCursorUSR -/** Describe the visibility of the entity referred to by a cursor. +/** Retrieve the unary operator kind of this cursor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_getCursorVisibility(cursor: CXCursor)(using Zone): CXVisibilityKind = +def clang_getCursorUnaryOperatorKind( + cursor: Ptr[CXCursor] +): CXUnaryOperatorKind = + __sn_wrap_libclang_clang_getCursorUnaryOperatorKind(cursor) + +/** Retrieve the unary operator kind of this cursor. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +def clang_getCursorUnaryOperatorKind(cursor: CXCursor)(using + Zone +): CXUnaryOperatorKind = val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) !(__ptr_0 + 0) = cursor - __sn_wrap_libclang_clang_getCursorVisibility((__ptr_0 + 0)) + __sn_wrap_libclang_clang_getCursorUnaryOperatorKind((__ptr_0 + 0)) +end clang_getCursorUnaryOperatorKind /** Describe the visibility of the entity referred to by a cursor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getCursorVisibility(cursor: Ptr[CXCursor]): CXVisibilityKind = __sn_wrap_libclang_clang_getCursorVisibility(cursor) +/** Describe the visibility of the entity referred to by a cursor. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +def clang_getCursorVisibility(cursor: CXCursor)(using Zone): CXVisibilityKind = + val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) + !(__ptr_0 + 0) = cursor + __sn_wrap_libclang_clang_getCursorVisibility((__ptr_0 + 0)) + /** Returns the Objective-C type encoding for the specified declaration. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getDeclObjCTypeEncoding(C: Ptr[CXCursor])( __return: Ptr[CXString] @@ -5495,40 +5742,38 @@ def clang_getDeclObjCTypeEncoding(C: Ptr[CXCursor])( /** Returns the Objective-C type encoding for the specified declaration. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_getDeclObjCTypeEncoding(C: CXCursor)(using Zone): CXString = +def clang_getDeclObjCTypeEncoding(C: Ptr[CXCursor])(using Zone): CXString = val __ptr_0: Ptr[CXString] = alloc[CXString](1) - val __ptr_1: Ptr[CXCursor] = alloc[CXCursor](1) - !(__ptr_1 + 0) = C - __sn_wrap_libclang_clang_getDeclObjCTypeEncoding((__ptr_1 + 0), (__ptr_0 + 0)) + __sn_wrap_libclang_clang_getDeclObjCTypeEncoding(C, (__ptr_0 + 0)) !(__ptr_0 + 0) -end clang_getDeclObjCTypeEncoding /** Returns the Objective-C type encoding for the specified declaration. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_getDeclObjCTypeEncoding(C: Ptr[CXCursor])(using Zone): CXString = - val __ptr_0: Ptr[CXString] = alloc[CXString](1) - __sn_wrap_libclang_clang_getDeclObjCTypeEncoding(C, (__ptr_0 + 0)) - !(__ptr_0 + 0) +def clang_getDeclObjCTypeEncoding(C: CXCursor)(using Zone): CXString = + val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) + val __ptr_1: Ptr[CXString] = alloc[CXString](1) + !(__ptr_0 + 0) = C + __sn_wrap_libclang_clang_getDeclObjCTypeEncoding((__ptr_0 + 0), (__ptr_1 + 0)) + !(__ptr_1 + 0) +end clang_getDeclObjCTypeEncoding -/** [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h +/** [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getDefinitionSpellingAndExtent( - _0: CXCursor, + _0: Ptr[CXCursor], startBuf: Ptr[CString], endBuf: Ptr[CString], startLine: Ptr[CUnsignedInt], startColumn: Ptr[CUnsignedInt], endLine: Ptr[CUnsignedInt], endColumn: Ptr[CUnsignedInt] -)(using Zone): Unit = - val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) - !(__ptr_0 + 0) = _0 +): Unit = __sn_wrap_libclang_clang_getDefinitionSpellingAndExtent( - (__ptr_0 + 0), + _0, startBuf, endBuf, startLine, @@ -5536,21 +5781,22 @@ def clang_getDefinitionSpellingAndExtent( endLine, endColumn ) -end clang_getDefinitionSpellingAndExtent -/** [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h +/** [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getDefinitionSpellingAndExtent( - _0: Ptr[CXCursor], + _0: CXCursor, startBuf: Ptr[CString], endBuf: Ptr[CString], startLine: Ptr[CUnsignedInt], startColumn: Ptr[CUnsignedInt], endLine: Ptr[CUnsignedInt], endColumn: Ptr[CUnsignedInt] -): Unit = +)(using Zone): Unit = + val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) + !(__ptr_0 + 0) = _0 __sn_wrap_libclang_clang_getDefinitionSpellingAndExtent( - _0, + (__ptr_0 + 0), startBuf, endBuf, startLine, @@ -5558,11 +5804,22 @@ def clang_getDefinitionSpellingAndExtent( endLine, endColumn ) +end clang_getDefinitionSpellingAndExtent + +/** Retrieve the name of a particular diagnostic category. This is now + * deprecated. Use clang_getDiagnosticCategoryText() instead. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/CXDiagnostic.h + */ +def clang_getDiagnosticCategoryName(Category: CUnsignedInt)( + __return: Ptr[CXString] +): Unit = + __sn_wrap_libclang_clang_getDiagnosticCategoryName(Category, __return) /** Retrieve the name of a particular diagnostic category. This is now * deprecated. Use clang_getDiagnosticCategoryText() instead. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/CXDiagnostic.h */ def clang_getDiagnosticCategoryName(Category: CUnsignedInt)(using Zone @@ -5572,37 +5829,27 @@ def clang_getDiagnosticCategoryName(Category: CUnsignedInt)(using !(__ptr_0 + 0) end clang_getDiagnosticCategoryName -/** Retrieve the name of a particular diagnostic category. This is now - * deprecated. Use clang_getDiagnosticCategoryText() instead. +/** Retrieve the diagnostic category text for a given diagnostic. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/CXDiagnostic.h */ -def clang_getDiagnosticCategoryName(Category: CUnsignedInt)( +def clang_getDiagnosticCategoryText(_0: CXDiagnostic)( __return: Ptr[CXString] ): Unit = - __sn_wrap_libclang_clang_getDiagnosticCategoryName(Category, __return) + __sn_wrap_libclang_clang_getDiagnosticCategoryText(_0, __return) /** Retrieve the diagnostic category text for a given diagnostic. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/CXDiagnostic.h */ def clang_getDiagnosticCategoryText(_0: CXDiagnostic)(using Zone): CXString = val __ptr_0: Ptr[CXString] = alloc[CXString](1) __sn_wrap_libclang_clang_getDiagnosticCategoryText(_0, (__ptr_0 + 0)) !(__ptr_0 + 0) -/** Retrieve the diagnostic category text for a given diagnostic. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ -def clang_getDiagnosticCategoryText(_0: CXDiagnostic)( - __return: Ptr[CXString] -): Unit = - __sn_wrap_libclang_clang_getDiagnosticCategoryText(_0, __return) - /** Retrieve the replacement information for a given fix-it. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/CXDiagnostic.h */ def clang_getDiagnosticFixIt( Diagnostic: CXDiagnostic, @@ -5618,7 +5865,7 @@ def clang_getDiagnosticFixIt( /** Retrieve the replacement information for a given fix-it. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/CXDiagnostic.h */ def clang_getDiagnosticFixIt( Diagnostic: CXDiagnostic, @@ -5637,37 +5884,28 @@ end clang_getDiagnosticFixIt /** Retrieve the source location of the given diagnostic. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ -def clang_getDiagnosticLocation(_0: CXDiagnostic)(using - Zone -): CXSourceLocation = - val __ptr_0: Ptr[CXSourceLocation] = alloc[CXSourceLocation](1) - __sn_wrap_libclang_clang_getDiagnosticLocation(_0, (__ptr_0 + 0)) - !(__ptr_0 + 0) -end clang_getDiagnosticLocation - -/** Retrieve the source location of the given diagnostic. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/CXDiagnostic.h */ def clang_getDiagnosticLocation(_0: CXDiagnostic)( __return: Ptr[CXSourceLocation] ): Unit = __sn_wrap_libclang_clang_getDiagnosticLocation(_0, __return) -/** Retrieve the name of the command-line option that enabled this diagnostic. +/** Retrieve the source location of the given diagnostic. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/CXDiagnostic.h */ -def clang_getDiagnosticOption(Diag: CXDiagnostic, Disable: Ptr[CXString])( - __return: Ptr[CXString] -): Unit = - __sn_wrap_libclang_clang_getDiagnosticOption(Diag, Disable, __return) +def clang_getDiagnosticLocation(_0: CXDiagnostic)(using + Zone +): CXSourceLocation = + val __ptr_0: Ptr[CXSourceLocation] = alloc[CXSourceLocation](1) + __sn_wrap_libclang_clang_getDiagnosticLocation(_0, (__ptr_0 + 0)) + !(__ptr_0 + 0) +end clang_getDiagnosticLocation /** Retrieve the name of the command-line option that enabled this diagnostic. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/CXDiagnostic.h */ def clang_getDiagnosticOption(Diag: CXDiagnostic, Disable: Ptr[CXString])(using Zone @@ -5677,9 +5915,18 @@ def clang_getDiagnosticOption(Diag: CXDiagnostic, Disable: Ptr[CXString])(using !(__ptr_0 + 0) end clang_getDiagnosticOption +/** Retrieve the name of the command-line option that enabled this diagnostic. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/CXDiagnostic.h + */ +def clang_getDiagnosticOption(Diag: CXDiagnostic, Disable: Ptr[CXString])( + __return: Ptr[CXString] +): Unit = + __sn_wrap_libclang_clang_getDiagnosticOption(Diag, Disable, __return) + /** Retrieve a source range associated with the diagnostic. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/CXDiagnostic.h */ def clang_getDiagnosticRange(Diagnostic: CXDiagnostic, Range: CUnsignedInt)( __return: Ptr[CXSourceRange] @@ -5688,7 +5935,7 @@ def clang_getDiagnosticRange(Diagnostic: CXDiagnostic, Range: CUnsignedInt)( /** Retrieve a source range associated with the diagnostic. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/CXDiagnostic.h */ def clang_getDiagnosticRange(Diagnostic: CXDiagnostic, Range: CUnsignedInt)( using Zone @@ -5700,7 +5947,7 @@ end clang_getDiagnosticRange /** Retrieve the text of the given diagnostic. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/CXDiagnostic.h */ def clang_getDiagnosticSpelling(_0: CXDiagnostic)( __return: Ptr[CXString] @@ -5709,7 +5956,7 @@ def clang_getDiagnosticSpelling(_0: CXDiagnostic)( /** Retrieve the text of the given diagnostic. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/CXDiagnostic.h */ def clang_getDiagnosticSpelling(_0: CXDiagnostic)(using Zone): CXString = val __ptr_0: Ptr[CXString] = alloc[CXString](1) @@ -5718,7 +5965,7 @@ def clang_getDiagnosticSpelling(_0: CXDiagnostic)(using Zone): CXString = /** Return the element type of an array, complex, or vector type. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getElementType(T: CXType)(using Zone): CXType = val __ptr_0: Ptr[CXType] = alloc[CXType](2) @@ -5728,7 +5975,7 @@ def clang_getElementType(T: CXType)(using Zone): CXType = /** Return the element type of an array, complex, or vector type. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getElementType(T: Ptr[CXType])(using Zone): CXType = val __ptr_0: Ptr[CXType] = alloc[CXType](1) @@ -5737,7 +5984,7 @@ def clang_getElementType(T: Ptr[CXType])(using Zone): CXType = /** Return the element type of an array, complex, or vector type. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getElementType(T: Ptr[CXType])(__return: Ptr[CXType]): Unit = __sn_wrap_libclang_clang_getElementType(T, __return) @@ -5745,47 +5992,59 @@ def clang_getElementType(T: Ptr[CXType])(__return: Ptr[CXType]): Unit = /** Retrieve the integer value of an enum constant declaration as an unsigned * long long. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +def clang_getEnumConstantDeclUnsignedValue(C: CXCursor)(using + Zone +): CUnsignedLongLong = + val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) + !(__ptr_0 + 0) = C + __sn_wrap_libclang_clang_getEnumConstantDeclUnsignedValue((__ptr_0 + 0)) +end clang_getEnumConstantDeclUnsignedValue + +/** Retrieve the integer value of an enum constant declaration as an unsigned + * long long. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getEnumConstantDeclUnsignedValue( C: Ptr[CXCursor] ): CUnsignedLongLong = __sn_wrap_libclang_clang_getEnumConstantDeclUnsignedValue(C) -/** Retrieve the integer value of an enum constant declaration as an unsigned - * long long. +/** Retrieve the integer value of an enum constant declaration as a signed long + * long. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_getEnumConstantDeclUnsignedValue(C: CXCursor)(using - Zone -): CUnsignedLongLong = - val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) - !(__ptr_0 + 0) = C - __sn_wrap_libclang_clang_getEnumConstantDeclUnsignedValue((__ptr_0 + 0)) -end clang_getEnumConstantDeclUnsignedValue +def clang_getEnumConstantDeclValue(C: Ptr[CXCursor]): CLongLong = + __sn_wrap_libclang_clang_getEnumConstantDeclValue(C) /** Retrieve the integer value of an enum constant declaration as a signed long * long. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getEnumConstantDeclValue(C: CXCursor)(using Zone): CLongLong = val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) !(__ptr_0 + 0) = C __sn_wrap_libclang_clang_getEnumConstantDeclValue((__ptr_0 + 0)) -/** Retrieve the integer value of an enum constant declaration as a signed long - * long. +/** Retrieve the integer type of an enum declaration. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_getEnumConstantDeclValue(C: Ptr[CXCursor]): CLongLong = - __sn_wrap_libclang_clang_getEnumConstantDeclValue(C) +def clang_getEnumDeclIntegerType(C: CXCursor)(using Zone): CXType = + val __ptr_0: Ptr[CXType] = alloc[CXType](1) + val __ptr_1: Ptr[CXCursor] = alloc[CXCursor](1) + !(__ptr_1 + 0) = C + __sn_wrap_libclang_clang_getEnumDeclIntegerType((__ptr_1 + 0), (__ptr_0 + 0)) + !(__ptr_0 + 0) +end clang_getEnumDeclIntegerType /** Retrieve the integer type of an enum declaration. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getEnumDeclIntegerType(C: Ptr[CXCursor])(using Zone): CXType = val __ptr_0: Ptr[CXType] = alloc[CXType](1) @@ -5794,19 +6053,7 @@ def clang_getEnumDeclIntegerType(C: Ptr[CXCursor])(using Zone): CXType = /** Retrieve the integer type of an enum declaration. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ -def clang_getEnumDeclIntegerType(C: CXCursor)(using Zone): CXType = - val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) - val __ptr_1: Ptr[CXType] = alloc[CXType](1) - !(__ptr_0 + 0) = C - __sn_wrap_libclang_clang_getEnumDeclIntegerType((__ptr_0 + 0), (__ptr_1 + 0)) - !(__ptr_1 + 0) -end clang_getEnumDeclIntegerType - -/** Retrieve the integer type of an enum declaration. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getEnumDeclIntegerType(C: Ptr[CXCursor])( __return: Ptr[CXType] @@ -5816,25 +6063,26 @@ def clang_getEnumDeclIntegerType(C: Ptr[CXCursor])( /** Retrieve the exception specification type associated with a function type. * This is a value of type CXCursor_ExceptionSpecificationKind. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_getExceptionSpecificationType(T: CXType)(using Zone): CInt = - val __ptr_0: Ptr[CXType] = alloc[CXType](1) - !(__ptr_0 + 0) = T - __sn_wrap_libclang_clang_getExceptionSpecificationType((__ptr_0 + 0)) +def clang_getExceptionSpecificationType(T: Ptr[CXType]): CInt = + __sn_wrap_libclang_clang_getExceptionSpecificationType(T) /** Retrieve the exception specification type associated with a function type. * This is a value of type CXCursor_ExceptionSpecificationKind. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_getExceptionSpecificationType(T: Ptr[CXType]): CInt = - __sn_wrap_libclang_clang_getExceptionSpecificationType(T) +def clang_getExceptionSpecificationType(T: CXType)(using Zone): CInt = + val __ptr_0: Ptr[CXType] = alloc[CXType](1) + !(__ptr_0 + 0) = T + __sn_wrap_libclang_clang_getExceptionSpecificationType((__ptr_0 + 0)) /** Retrieve the file, line, column, and offset represented by the given source * location. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: + * /opt/homebrew/opt/llvm@17/include/clang-c/CXSourceLocation.h */ def clang_getExpansionLocation( location: Ptr[CXSourceLocation], @@ -5854,7 +6102,8 @@ def clang_getExpansionLocation( /** Retrieve the file, line, column, and offset represented by the given source * location. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: + * /opt/homebrew/opt/llvm@17/include/clang-c/CXSourceLocation.h */ def clang_getExpansionLocation( location: CXSourceLocation, @@ -5874,18 +6123,18 @@ def clang_getExpansionLocation( ) end clang_getExpansionLocation -/** Retrieve the bit width of a bit field declaration as an integer. +/** Retrieve the bit width of a bit-field declaration as an integer. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getFieldDeclBitWidth(C: CXCursor)(using Zone): CInt = val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) !(__ptr_0 + 0) = C __sn_wrap_libclang_clang_getFieldDeclBitWidth((__ptr_0 + 0)) -/** Retrieve the bit width of a bit field declaration as an integer. +/** Retrieve the bit width of a bit-field declaration as an integer. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getFieldDeclBitWidth(C: Ptr[CXCursor]): CInt = __sn_wrap_libclang_clang_getFieldDeclBitWidth(C) @@ -5893,7 +6142,8 @@ def clang_getFieldDeclBitWidth(C: Ptr[CXCursor]): CInt = /** Retrieve the file, line, column, and offset represented by the given source * location. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: + * /opt/homebrew/opt/llvm@17/include/clang-c/CXSourceLocation.h */ def clang_getFileLocation( location: CXSourceLocation, @@ -5916,7 +6166,8 @@ end clang_getFileLocation /** Retrieve the file, line, column, and offset represented by the given source * location. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: + * /opt/homebrew/opt/llvm@17/include/clang-c/CXSourceLocation.h */ def clang_getFileLocation( location: Ptr[CXSourceLocation], @@ -5929,23 +6180,23 @@ def clang_getFileLocation( /** Retrieve the complete file and path name of the given file. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/CXFile.h */ -def clang_getFileName(SFile: CXFile)(using Zone): CXString = - val __ptr_0: Ptr[CXString] = alloc[CXString](1) - __sn_wrap_libclang_clang_getFileName(SFile, (__ptr_0 + 0)) - !(__ptr_0 + 0) +def clang_getFileName(SFile: CXFile)(__return: Ptr[CXString]): Unit = + __sn_wrap_libclang_clang_getFileName(SFile, __return) /** Retrieve the complete file and path name of the given file. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/CXFile.h */ -def clang_getFileName(SFile: CXFile)(__return: Ptr[CXString]): Unit = - __sn_wrap_libclang_clang_getFileName(SFile, __return) +def clang_getFileName(SFile: CXFile)(using Zone): CXString = + val __ptr_0: Ptr[CXString] = alloc[CXString](1) + __sn_wrap_libclang_clang_getFileName(SFile, (__ptr_0 + 0)) + !(__ptr_0 + 0) /** Retrieve the calling convention associated with a function type. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getFunctionTypeCallingConv(T: CXType)(using Zone): CXCallingConv = val __ptr_0: Ptr[CXType] = alloc[CXType](1) @@ -5954,7 +6205,7 @@ def clang_getFunctionTypeCallingConv(T: CXType)(using Zone): CXCallingConv = /** Retrieve the calling convention associated with a function type. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getFunctionTypeCallingConv(T: Ptr[CXType]): CXCallingConv = __sn_wrap_libclang_clang_getFunctionTypeCallingConv(T) @@ -5962,7 +6213,23 @@ def clang_getFunctionTypeCallingConv(T: Ptr[CXType]): CXCallingConv = /** For cursors representing an iboutletcollection attribute, this function * returns the collection element type. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +def clang_getIBOutletCollectionType(_0: CXCursor)(using Zone): CXType = + val __ptr_0: Ptr[CXType] = alloc[CXType](1) + val __ptr_1: Ptr[CXCursor] = alloc[CXCursor](1) + !(__ptr_1 + 0) = _0 + __sn_wrap_libclang_clang_getIBOutletCollectionType( + (__ptr_1 + 0), + (__ptr_0 + 0) + ) + !(__ptr_0 + 0) +end clang_getIBOutletCollectionType + +/** For cursors representing an iboutletcollection attribute, this function + * returns the collection element type. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getIBOutletCollectionType(_0: Ptr[CXCursor])(using Zone): CXType = val __ptr_0: Ptr[CXType] = alloc[CXType](1) @@ -5972,32 +6239,16 @@ def clang_getIBOutletCollectionType(_0: Ptr[CXCursor])(using Zone): CXType = /** For cursors representing an iboutletcollection attribute, this function * returns the collection element type. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getIBOutletCollectionType(_0: Ptr[CXCursor])( __return: Ptr[CXType] ): Unit = __sn_wrap_libclang_clang_getIBOutletCollectionType(_0, __return) -/** For cursors representing an iboutletcollection attribute, this function - * returns the collection element type. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ -def clang_getIBOutletCollectionType(_0: CXCursor)(using Zone): CXType = - val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) - val __ptr_1: Ptr[CXType] = alloc[CXType](1) - !(__ptr_0 + 0) = _0 - __sn_wrap_libclang_clang_getIBOutletCollectionType( - (__ptr_0 + 0), - (__ptr_1 + 0) - ) - !(__ptr_1 + 0) -end clang_getIBOutletCollectionType - /** Retrieve the file that is included by the given inclusion directive cursor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getIncludedFile(cursor: CXCursor)(using Zone): CXFile = val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) @@ -6006,7 +6257,7 @@ def clang_getIncludedFile(cursor: CXCursor)(using Zone): CXFile = /** Retrieve the file that is included by the given inclusion directive cursor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getIncludedFile(cursor: Ptr[CXCursor]): CXFile = __sn_wrap_libclang_clang_getIncludedFile(cursor) @@ -6014,7 +6265,8 @@ def clang_getIncludedFile(cursor: Ptr[CXCursor]): CXFile = /** Legacy API to retrieve the file, line, column, and offset represented by the * given source location. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: + * /opt/homebrew/opt/llvm@17/include/clang-c/CXSourceLocation.h */ def clang_getInstantiationLocation( location: CXSourceLocation, @@ -6037,7 +6289,8 @@ end clang_getInstantiationLocation /** Legacy API to retrieve the file, line, column, and offset represented by the * given source location. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: + * /opt/homebrew/opt/llvm@17/include/clang-c/CXSourceLocation.h */ def clang_getInstantiationLocation( location: Ptr[CXSourceLocation], @@ -6057,36 +6310,36 @@ def clang_getInstantiationLocation( /** Retrieves the source location associated with a given file/line/column in a * particular translation unit. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getLocation( tu: CXTranslationUnit, file: CXFile, line: CUnsignedInt, column: CUnsignedInt -)(__return: Ptr[CXSourceLocation]): Unit = - __sn_wrap_libclang_clang_getLocation(tu, file, line, column, __return) +)(using Zone): CXSourceLocation = + val __ptr_0: Ptr[CXSourceLocation] = alloc[CXSourceLocation](1) + __sn_wrap_libclang_clang_getLocation(tu, file, line, column, (__ptr_0 + 0)) + !(__ptr_0 + 0) +end clang_getLocation /** Retrieves the source location associated with a given file/line/column in a * particular translation unit. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getLocation( tu: CXTranslationUnit, file: CXFile, line: CUnsignedInt, column: CUnsignedInt -)(using Zone): CXSourceLocation = - val __ptr_0: Ptr[CXSourceLocation] = alloc[CXSourceLocation](1) - __sn_wrap_libclang_clang_getLocation(tu, file, line, column, (__ptr_0 + 0)) - !(__ptr_0 + 0) -end clang_getLocation +)(__return: Ptr[CXSourceLocation]): Unit = + __sn_wrap_libclang_clang_getLocation(tu, file, line, column, __return) /** Retrieves the source location associated with a given character offset in a * particular translation unit. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getLocationForOffset( tu: CXTranslationUnit, @@ -6101,7 +6354,7 @@ end clang_getLocationForOffset /** Retrieves the source location associated with a given character offset in a * particular translation unit. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getLocationForOffset( tu: CXTranslationUnit, @@ -6110,16 +6363,45 @@ def clang_getLocationForOffset( )(__return: Ptr[CXSourceLocation]): Unit = __sn_wrap_libclang_clang_getLocationForOffset(tu, file, offset, __return) +/** For reference types (e.g., "const int&"), returns the type that the + * reference refers to (e.g "const int"). + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +def clang_getNonReferenceType(CT: Ptr[CXType])(using Zone): CXType = + val __ptr_0: Ptr[CXType] = alloc[CXType](1) + __sn_wrap_libclang_clang_getNonReferenceType(CT, (__ptr_0 + 0)) + !(__ptr_0 + 0) + +/** For reference types (e.g., "const int&"), returns the type that the + * reference refers to (e.g "const int"). + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +def clang_getNonReferenceType(CT: Ptr[CXType])(__return: Ptr[CXType]): Unit = + __sn_wrap_libclang_clang_getNonReferenceType(CT, __return) + +/** For reference types (e.g., "const int&"), returns the type that the + * reference refers to (e.g "const int"). + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +def clang_getNonReferenceType(CT: CXType)(using Zone): CXType = + val __ptr_0: Ptr[CXType] = alloc[CXType](2) + !(__ptr_0 + 0) = CT + __sn_wrap_libclang_clang_getNonReferenceType((__ptr_0 + 0), (__ptr_0 + 1)) + !(__ptr_0 + 1) + /** Retrieve the NULL cursor, which represents no entity. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getNullCursor()(__return: Ptr[CXCursor]): Unit = __sn_wrap_libclang_clang_getNullCursor(__return) /** Retrieve the NULL cursor, which represents no entity. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getNullCursor()(using Zone): CXCursor = val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) @@ -6128,40 +6410,44 @@ def clang_getNullCursor()(using Zone): CXCursor = /** Retrieve a NULL (invalid) source location. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ -def clang_getNullLocation()(using Zone): CXSourceLocation = - val __ptr_0: Ptr[CXSourceLocation] = alloc[CXSourceLocation](1) - __sn_wrap_libclang_clang_getNullLocation((__ptr_0 + 0)) - !(__ptr_0 + 0) - -/** Retrieve a NULL (invalid) source location. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: + * /opt/homebrew/opt/llvm@17/include/clang-c/CXSourceLocation.h */ def clang_getNullLocation()(__return: Ptr[CXSourceLocation]): Unit = __sn_wrap_libclang_clang_getNullLocation(__return) -/** Retrieve a NULL (invalid) source range. +/** Retrieve a NULL (invalid) source location. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: + * /opt/homebrew/opt/llvm@17/include/clang-c/CXSourceLocation.h */ -def clang_getNullRange()(__return: Ptr[CXSourceRange]): Unit = - __sn_wrap_libclang_clang_getNullRange(__return) +def clang_getNullLocation()(using Zone): CXSourceLocation = + val __ptr_0: Ptr[CXSourceLocation] = alloc[CXSourceLocation](1) + __sn_wrap_libclang_clang_getNullLocation((__ptr_0 + 0)) + !(__ptr_0 + 0) /** Retrieve a NULL (invalid) source range. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: + * /opt/homebrew/opt/llvm@17/include/clang-c/CXSourceLocation.h */ def clang_getNullRange()(using Zone): CXSourceRange = val __ptr_0: Ptr[CXSourceRange] = alloc[CXSourceRange](1) __sn_wrap_libclang_clang_getNullRange((__ptr_0 + 0)) !(__ptr_0 + 0) +/** Retrieve a NULL (invalid) source range. + * + * [bindgen] header: + * /opt/homebrew/opt/llvm@17/include/clang-c/CXSourceLocation.h + */ +def clang_getNullRange()(__return: Ptr[CXSourceRange]): Unit = + __sn_wrap_libclang_clang_getNullRange(__return) + /** Retrieve the number of non-variadic parameters associated with a function * type. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getNumArgTypes(T: CXType)(using Zone): CInt = val __ptr_0: Ptr[CXType] = alloc[CXType](1) @@ -6171,21 +6457,21 @@ def clang_getNumArgTypes(T: CXType)(using Zone): CInt = /** Retrieve the number of non-variadic parameters associated with a function * type. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getNumArgTypes(T: Ptr[CXType]): CInt = __sn_wrap_libclang_clang_getNumArgTypes(T) /** Return the number of elements of an array or vector type. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getNumElements(T: Ptr[CXType]): CLongLong = __sn_wrap_libclang_clang_getNumElements(T) /** Return the number of elements of an array or vector type. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getNumElements(T: CXType)(using Zone): CLongLong = val __ptr_0: Ptr[CXType] = alloc[CXType](1) @@ -6195,25 +6481,35 @@ def clang_getNumElements(T: CXType)(using Zone): CLongLong = /** Determine the number of overloaded declarations referenced by a * CXCursor_OverloadedDeclRef cursor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +def clang_getNumOverloadedDecls(cursor: CXCursor)(using Zone): CUnsignedInt = + val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) + !(__ptr_0 + 0) = cursor + __sn_wrap_libclang_clang_getNumOverloadedDecls((__ptr_0 + 0)) + +/** Determine the number of overloaded declarations referenced by a + * CXCursor_OverloadedDeclRef cursor. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getNumOverloadedDecls(cursor: Ptr[CXCursor]): CUnsignedInt = __sn_wrap_libclang_clang_getNumOverloadedDecls(cursor) -/** Determine the number of overloaded declarations referenced by a +/** Retrieve a cursor for one of the overloaded declarations referenced by a * CXCursor_OverloadedDeclRef cursor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_getNumOverloadedDecls(cursor: CXCursor)(using Zone): CUnsignedInt = - val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) - !(__ptr_0 + 0) = cursor - __sn_wrap_libclang_clang_getNumOverloadedDecls((__ptr_0 + 0)) +def clang_getOverloadedDecl(cursor: Ptr[CXCursor], index: CUnsignedInt)( + __return: Ptr[CXCursor] +): Unit = + __sn_wrap_libclang_clang_getOverloadedDecl(cursor, index, __return) /** Retrieve a cursor for one of the overloaded declarations referenced by a * CXCursor_OverloadedDeclRef cursor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getOverloadedDecl(cursor: Ptr[CXCursor], index: CUnsignedInt)(using Zone @@ -6226,7 +6522,7 @@ end clang_getOverloadedDecl /** Retrieve a cursor for one of the overloaded declarations referenced by a * CXCursor_OverloadedDeclRef cursor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getOverloadedDecl(cursor: CXCursor, index: CUnsignedInt)(using Zone @@ -6241,52 +6537,42 @@ def clang_getOverloadedDecl(cursor: CXCursor, index: CUnsignedInt)(using !(__ptr_0 + 1) end clang_getOverloadedDecl -/** Retrieve a cursor for one of the overloaded declarations referenced by a - * CXCursor_OverloadedDeclRef cursor. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ -def clang_getOverloadedDecl(cursor: Ptr[CXCursor], index: CUnsignedInt)( - __return: Ptr[CXCursor] -): Unit = - __sn_wrap_libclang_clang_getOverloadedDecl(cursor, index, __return) - /** Determine the set of methods that are overridden by the given method. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getOverriddenCursors( - cursor: CXCursor, + cursor: Ptr[CXCursor], overridden: Ptr[Ptr[CXCursor]], num_overridden: Ptr[CUnsignedInt] -)(using Zone): Unit = - val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) - !(__ptr_0 + 0) = cursor +): Unit = __sn_wrap_libclang_clang_getOverriddenCursors( - (__ptr_0 + 0), + cursor, overridden, num_overridden ) -end clang_getOverriddenCursors /** Determine the set of methods that are overridden by the given method. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getOverriddenCursors( - cursor: Ptr[CXCursor], + cursor: CXCursor, overridden: Ptr[Ptr[CXCursor]], num_overridden: Ptr[CUnsignedInt] -): Unit = +)(using Zone): Unit = + val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) + !(__ptr_0 + 0) = cursor __sn_wrap_libclang_clang_getOverriddenCursors( - cursor, + (__ptr_0 + 0), overridden, num_overridden ) +end clang_getOverriddenCursors /** For pointer types, returns the type of the pointee. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getPointeeType(T: CXType)(using Zone): CXType = val __ptr_0: Ptr[CXType] = alloc[CXType](2) @@ -6296,7 +6582,7 @@ def clang_getPointeeType(T: CXType)(using Zone): CXType = /** For pointer types, returns the type of the pointee. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getPointeeType(T: Ptr[CXType])(using Zone): CXType = val __ptr_0: Ptr[CXType] = alloc[CXType](1) @@ -6305,7 +6591,7 @@ def clang_getPointeeType(T: Ptr[CXType])(using Zone): CXType = /** For pointer types, returns the type of the pointee. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getPointeeType(T: Ptr[CXType])(__return: Ptr[CXType]): Unit = __sn_wrap_libclang_clang_getPointeeType(T, __return) @@ -6313,7 +6599,8 @@ def clang_getPointeeType(T: Ptr[CXType])(__return: Ptr[CXType]): Unit = /** Retrieve the file, line and column represented by the given source location, * as specified in a # line directive. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: + * /opt/homebrew/opt/llvm@17/include/clang-c/CXSourceLocation.h */ def clang_getPresumedLocation( location: CXSourceLocation, @@ -6334,7 +6621,8 @@ end clang_getPresumedLocation /** Retrieve the file, line and column represented by the given source location, * as specified in a # line directive. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: + * /opt/homebrew/opt/llvm@17/include/clang-c/CXSourceLocation.h */ def clang_getPresumedLocation( location: Ptr[CXSourceLocation], @@ -6346,22 +6634,24 @@ def clang_getPresumedLocation( /** Retrieve a source range given the beginning and ending source locations. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: + * /opt/homebrew/opt/llvm@17/include/clang-c/CXSourceLocation.h */ def clang_getRange(begin: CXSourceLocation, end: CXSourceLocation)(using Zone ): CXSourceRange = - val __ptr_0: Ptr[CXSourceRange] = alloc[CXSourceRange](1) - val __ptr_1: Ptr[CXSourceLocation] = alloc[CXSourceLocation](2) - !(__ptr_1 + 0) = begin - !(__ptr_1 + 1) = end - __sn_wrap_libclang_clang_getRange((__ptr_1 + 0), (__ptr_1 + 1), (__ptr_0 + 0)) - !(__ptr_0 + 0) + val __ptr_0: Ptr[CXSourceLocation] = alloc[CXSourceLocation](2) + val __ptr_1: Ptr[CXSourceRange] = alloc[CXSourceRange](1) + !(__ptr_0 + 0) = begin + !(__ptr_0 + 1) = end + __sn_wrap_libclang_clang_getRange((__ptr_0 + 0), (__ptr_0 + 1), (__ptr_1 + 0)) + !(__ptr_1 + 0) end clang_getRange /** Retrieve a source range given the beginning and ending source locations. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: + * /opt/homebrew/opt/llvm@17/include/clang-c/CXSourceLocation.h */ def clang_getRange(begin: Ptr[CXSourceLocation], end: Ptr[CXSourceLocation])( __return: Ptr[CXSourceRange] @@ -6370,7 +6660,8 @@ def clang_getRange(begin: Ptr[CXSourceLocation], end: Ptr[CXSourceLocation])( /** Retrieve a source range given the beginning and ending source locations. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: + * /opt/homebrew/opt/llvm@17/include/clang-c/CXSourceLocation.h */ def clang_getRange(begin: Ptr[CXSourceLocation], end: Ptr[CXSourceLocation])( using Zone @@ -6383,7 +6674,19 @@ end clang_getRange /** Retrieve a source location representing the last character within a source * range. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: + * /opt/homebrew/opt/llvm@17/include/clang-c/CXSourceLocation.h + */ +def clang_getRangeEnd(range: Ptr[CXSourceRange])( + __return: Ptr[CXSourceLocation] +): Unit = + __sn_wrap_libclang_clang_getRangeEnd(range, __return) + +/** Retrieve a source location representing the last character within a source + * range. + * + * [bindgen] header: + * /opt/homebrew/opt/llvm@17/include/clang-c/CXSourceLocation.h */ def clang_getRangeEnd(range: Ptr[CXSourceRange])(using Zone): CXSourceLocation = val __ptr_0: Ptr[CXSourceLocation] = alloc[CXSourceLocation](1) @@ -6393,30 +6696,22 @@ def clang_getRangeEnd(range: Ptr[CXSourceRange])(using Zone): CXSourceLocation = /** Retrieve a source location representing the last character within a source * range. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: + * /opt/homebrew/opt/llvm@17/include/clang-c/CXSourceLocation.h */ def clang_getRangeEnd(range: CXSourceRange)(using Zone): CXSourceLocation = - val __ptr_0: Ptr[CXSourceRange] = alloc[CXSourceRange](1) - val __ptr_1: Ptr[CXSourceLocation] = alloc[CXSourceLocation](1) - !(__ptr_0 + 0) = range - __sn_wrap_libclang_clang_getRangeEnd((__ptr_0 + 0), (__ptr_1 + 0)) - !(__ptr_1 + 0) + val __ptr_0: Ptr[CXSourceLocation] = alloc[CXSourceLocation](1) + val __ptr_1: Ptr[CXSourceRange] = alloc[CXSourceRange](1) + !(__ptr_1 + 0) = range + __sn_wrap_libclang_clang_getRangeEnd((__ptr_1 + 0), (__ptr_0 + 0)) + !(__ptr_0 + 0) end clang_getRangeEnd -/** Retrieve a source location representing the last character within a source - * range. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ -def clang_getRangeEnd(range: Ptr[CXSourceRange])( - __return: Ptr[CXSourceLocation] -): Unit = - __sn_wrap_libclang_clang_getRangeEnd(range, __return) - /** Retrieve a source location representing the first character within a source * range. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: + * /opt/homebrew/opt/llvm@17/include/clang-c/CXSourceLocation.h */ def clang_getRangeStart(range: Ptr[CXSourceRange])(using Zone @@ -6429,7 +6724,8 @@ end clang_getRangeStart /** Retrieve a source location representing the first character within a source * range. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: + * /opt/homebrew/opt/llvm@17/include/clang-c/CXSourceLocation.h */ def clang_getRangeStart(range: Ptr[CXSourceRange])( __return: Ptr[CXSourceLocation] @@ -6439,26 +6735,20 @@ def clang_getRangeStart(range: Ptr[CXSourceRange])( /** Retrieve a source location representing the first character within a source * range. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: + * /opt/homebrew/opt/llvm@17/include/clang-c/CXSourceLocation.h */ def clang_getRangeStart(range: CXSourceRange)(using Zone): CXSourceLocation = - val __ptr_0: Ptr[CXSourceRange] = alloc[CXSourceRange](1) - val __ptr_1: Ptr[CXSourceLocation] = alloc[CXSourceLocation](1) - !(__ptr_0 + 0) = range - __sn_wrap_libclang_clang_getRangeStart((__ptr_0 + 0), (__ptr_1 + 0)) - !(__ptr_1 + 0) + val __ptr_0: Ptr[CXSourceLocation] = alloc[CXSourceLocation](1) + val __ptr_1: Ptr[CXSourceRange] = alloc[CXSourceRange](1) + !(__ptr_1 + 0) = range + __sn_wrap_libclang_clang_getRangeStart((__ptr_1 + 0), (__ptr_0 + 0)) + !(__ptr_0 + 0) end clang_getRangeStart /** Retrieve the return type associated with a function type. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ -def clang_getResultType(T: Ptr[CXType])(__return: Ptr[CXType]): Unit = - __sn_wrap_libclang_clang_getResultType(T, __return) - -/** Retrieve the return type associated with a function type. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getResultType(T: Ptr[CXType])(using Zone): CXType = val __ptr_0: Ptr[CXType] = alloc[CXType](1) @@ -6467,7 +6757,14 @@ def clang_getResultType(T: Ptr[CXType])(using Zone): CXType = /** Retrieve the return type associated with a function type. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +def clang_getResultType(T: Ptr[CXType])(__return: Ptr[CXType]): Unit = + __sn_wrap_libclang_clang_getResultType(T, __return) + +/** Retrieve the return type associated with a function type. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getResultType(T: CXType)(using Zone): CXType = val __ptr_0: Ptr[CXType] = alloc[CXType](2) @@ -6479,18 +6776,7 @@ def clang_getResultType(T: CXType)(using Zone): CXType = * template, retrieve the cursor that represents the template that it * specializes or from which it was instantiated. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ -def clang_getSpecializedCursorTemplate(C: Ptr[CXCursor])( - __return: Ptr[CXCursor] -): Unit = - __sn_wrap_libclang_clang_getSpecializedCursorTemplate(C, __return) - -/** Given a cursor that may represent a specialization or instantiation of a - * template, retrieve the cursor that represents the template that it - * specializes or from which it was instantiated. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getSpecializedCursorTemplate(C: Ptr[CXCursor])(using Zone): CXCursor = val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) @@ -6501,7 +6787,7 @@ def clang_getSpecializedCursorTemplate(C: Ptr[CXCursor])(using Zone): CXCursor = * template, retrieve the cursor that represents the template that it * specializes or from which it was instantiated. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getSpecializedCursorTemplate(C: CXCursor)(using Zone): CXCursor = val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](2) @@ -6513,70 +6799,83 @@ def clang_getSpecializedCursorTemplate(C: CXCursor)(using Zone): CXCursor = !(__ptr_0 + 1) end clang_getSpecializedCursorTemplate +/** Given a cursor that may represent a specialization or instantiation of a + * template, retrieve the cursor that represents the template that it + * specializes or from which it was instantiated. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +def clang_getSpecializedCursorTemplate(C: Ptr[CXCursor])( + __return: Ptr[CXCursor] +): Unit = + __sn_wrap_libclang_clang_getSpecializedCursorTemplate(C, __return) + /** Retrieve the file, line, column, and offset represented by the given source * location. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: + * /opt/homebrew/opt/llvm@17/include/clang-c/CXSourceLocation.h */ def clang_getSpellingLocation( - location: Ptr[CXSourceLocation], + location: CXSourceLocation, file: Ptr[CXFile], line: Ptr[CUnsignedInt], column: Ptr[CUnsignedInt], offset: Ptr[CUnsignedInt] -): Unit = +)(using Zone): Unit = + val __ptr_0: Ptr[CXSourceLocation] = alloc[CXSourceLocation](1) + !(__ptr_0 + 0) = location __sn_wrap_libclang_clang_getSpellingLocation( - location, + (__ptr_0 + 0), file, line, column, offset ) +end clang_getSpellingLocation /** Retrieve the file, line, column, and offset represented by the given source * location. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: + * /opt/homebrew/opt/llvm@17/include/clang-c/CXSourceLocation.h */ def clang_getSpellingLocation( - location: CXSourceLocation, + location: Ptr[CXSourceLocation], file: Ptr[CXFile], line: Ptr[CUnsignedInt], column: Ptr[CUnsignedInt], offset: Ptr[CUnsignedInt] -)(using Zone): Unit = - val __ptr_0: Ptr[CXSourceLocation] = alloc[CXSourceLocation](1) - !(__ptr_0 + 0) = location +): Unit = __sn_wrap_libclang_clang_getSpellingLocation( - (__ptr_0 + 0), + location, file, line, column, offset ) -end clang_getSpellingLocation /** Given a cursor that represents a template, determine the cursor kind of the * specializations would be generated by instantiating the template. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_getTemplateCursorKind(C: CXCursor)(using Zone): CXCursorKind = - val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) - !(__ptr_0 + 0) = C - __sn_wrap_libclang_clang_getTemplateCursorKind((__ptr_0 + 0)) +def clang_getTemplateCursorKind(C: Ptr[CXCursor]): CXCursorKind = + __sn_wrap_libclang_clang_getTemplateCursorKind(C) /** Given a cursor that represents a template, determine the cursor kind of the * specializations would be generated by instantiating the template. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_getTemplateCursorKind(C: Ptr[CXCursor]): CXCursorKind = - __sn_wrap_libclang_clang_getTemplateCursorKind(C) +def clang_getTemplateCursorKind(C: CXCursor)(using Zone): CXCursorKind = + val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) + !(__ptr_0 + 0) = C + __sn_wrap_libclang_clang_getTemplateCursorKind((__ptr_0 + 0)) /** Get the raw lexical token starting with the given location. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getToken(TU: CXTranslationUnit, Location: CXSourceLocation)(using Zone @@ -6588,7 +6887,7 @@ end clang_getToken /** Get the raw lexical token starting with the given location. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getToken( TU: CXTranslationUnit, @@ -6598,7 +6897,7 @@ def clang_getToken( /** Retrieve a source range that covers the given token. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getTokenExtent(_0: CXTranslationUnit, _1: Ptr[CXToken])( __return: Ptr[CXSourceRange] @@ -6607,7 +6906,7 @@ def clang_getTokenExtent(_0: CXTranslationUnit, _1: Ptr[CXToken])( /** Retrieve a source range that covers the given token. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getTokenExtent(_0: CXTranslationUnit, _1: Ptr[CXToken])(using Zone @@ -6619,21 +6918,21 @@ end clang_getTokenExtent /** Retrieve a source range that covers the given token. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getTokenExtent(_0: CXTranslationUnit, _1: CXToken)(using Zone ): CXSourceRange = - val __ptr_0: Ptr[CXToken] = alloc[CXToken](1) - val __ptr_1: Ptr[CXSourceRange] = alloc[CXSourceRange](1) - !(__ptr_0 + 0) = _1 - __sn_wrap_libclang_clang_getTokenExtent(_0, (__ptr_0 + 0), (__ptr_1 + 0)) - !(__ptr_1 + 0) + val __ptr_0: Ptr[CXSourceRange] = alloc[CXSourceRange](1) + val __ptr_1: Ptr[CXToken] = alloc[CXToken](1) + !(__ptr_1 + 0) = _1 + __sn_wrap_libclang_clang_getTokenExtent(_0, (__ptr_1 + 0), (__ptr_0 + 0)) + !(__ptr_0 + 0) end clang_getTokenExtent /** Determine the kind of the given token. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getTokenKind(_0: CXToken)(using Zone): CXTokenKind = val __ptr_0: Ptr[CXToken] = alloc[CXToken](1) @@ -6642,23 +6941,14 @@ def clang_getTokenKind(_0: CXToken)(using Zone): CXTokenKind = /** Determine the kind of the given token. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getTokenKind(_0: Ptr[CXToken]): CXTokenKind = __sn_wrap_libclang_clang_getTokenKind(_0) /** Retrieve the source location of the given token. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ -def clang_getTokenLocation(_0: CXTranslationUnit, _1: Ptr[CXToken])( - __return: Ptr[CXSourceLocation] -): Unit = - __sn_wrap_libclang_clang_getTokenLocation(_0, _1, __return) - -/** Retrieve the source location of the given token. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getTokenLocation(_0: CXTranslationUnit, _1: Ptr[CXToken])(using Zone @@ -6670,30 +6960,30 @@ end clang_getTokenLocation /** Retrieve the source location of the given token. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getTokenLocation(_0: CXTranslationUnit, _1: CXToken)(using Zone ): CXSourceLocation = - val __ptr_0: Ptr[CXToken] = alloc[CXToken](1) - val __ptr_1: Ptr[CXSourceLocation] = alloc[CXSourceLocation](1) - !(__ptr_0 + 0) = _1 - __sn_wrap_libclang_clang_getTokenLocation(_0, (__ptr_0 + 0), (__ptr_1 + 0)) - !(__ptr_1 + 0) + val __ptr_0: Ptr[CXSourceLocation] = alloc[CXSourceLocation](1) + val __ptr_1: Ptr[CXToken] = alloc[CXToken](1) + !(__ptr_1 + 0) = _1 + __sn_wrap_libclang_clang_getTokenLocation(_0, (__ptr_1 + 0), (__ptr_0 + 0)) + !(__ptr_0 + 0) end clang_getTokenLocation -/** Determine the spelling of the given token. +/** Retrieve the source location of the given token. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_getTokenSpelling(_0: CXTranslationUnit, _1: Ptr[CXToken])( - __return: Ptr[CXString] +def clang_getTokenLocation(_0: CXTranslationUnit, _1: Ptr[CXToken])( + __return: Ptr[CXSourceLocation] ): Unit = - __sn_wrap_libclang_clang_getTokenSpelling(_0, _1, __return) + __sn_wrap_libclang_clang_getTokenLocation(_0, _1, __return) /** Determine the spelling of the given token. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getTokenSpelling(_0: CXTranslationUnit, _1: Ptr[CXToken])(using Zone @@ -6705,21 +6995,39 @@ end clang_getTokenSpelling /** Determine the spelling of the given token. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +def clang_getTokenSpelling(_0: CXTranslationUnit, _1: Ptr[CXToken])( + __return: Ptr[CXString] +): Unit = + __sn_wrap_libclang_clang_getTokenSpelling(_0, _1, __return) + +/** Determine the spelling of the given token. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getTokenSpelling(_0: CXTranslationUnit, _1: CXToken)(using Zone ): CXString = - val __ptr_0: Ptr[CXString] = alloc[CXString](1) - val __ptr_1: Ptr[CXToken] = alloc[CXToken](1) - !(__ptr_1 + 0) = _1 - __sn_wrap_libclang_clang_getTokenSpelling(_0, (__ptr_1 + 0), (__ptr_0 + 0)) - !(__ptr_0 + 0) + val __ptr_0: Ptr[CXToken] = alloc[CXToken](1) + val __ptr_1: Ptr[CXString] = alloc[CXString](1) + !(__ptr_0 + 0) = _1 + __sn_wrap_libclang_clang_getTokenSpelling(_0, (__ptr_0 + 0), (__ptr_1 + 0)) + !(__ptr_1 + 0) end clang_getTokenSpelling /** Retrieve the cursor that represents the given translation unit. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +def clang_getTranslationUnitCursor(_0: CXTranslationUnit)( + __return: Ptr[CXCursor] +): Unit = + __sn_wrap_libclang_clang_getTranslationUnitCursor(_0, __return) + +/** Retrieve the cursor that represents the given translation unit. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getTranslationUnitCursor(_0: CXTranslationUnit)(using Zone @@ -6729,18 +7037,9 @@ def clang_getTranslationUnitCursor(_0: CXTranslationUnit)(using !(__ptr_0 + 0) end clang_getTranslationUnitCursor -/** Retrieve the cursor that represents the given translation unit. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ -def clang_getTranslationUnitCursor(_0: CXTranslationUnit)( - __return: Ptr[CXCursor] -): Unit = - __sn_wrap_libclang_clang_getTranslationUnitCursor(_0, __return) - /** Get the original translation unit source file name. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getTranslationUnitSpelling(CTUnit: CXTranslationUnit)(using Zone @@ -6752,7 +7051,7 @@ end clang_getTranslationUnitSpelling /** Get the original translation unit source file name. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getTranslationUnitSpelling(CTUnit: CXTranslationUnit)( __return: Ptr[CXString] @@ -6761,35 +7060,35 @@ def clang_getTranslationUnitSpelling(CTUnit: CXTranslationUnit)( /** Return the cursor for the declaration of the given type. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_getTypeDeclaration(T: Ptr[CXType])(using Zone): CXCursor = - val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) - __sn_wrap_libclang_clang_getTypeDeclaration(T, (__ptr_0 + 0)) - !(__ptr_0 + 0) +def clang_getTypeDeclaration(T: CXType)(using Zone): CXCursor = + val __ptr_0: Ptr[CXType] = alloc[CXType](1) + val __ptr_1: Ptr[CXCursor] = alloc[CXCursor](1) + !(__ptr_0 + 0) = T + __sn_wrap_libclang_clang_getTypeDeclaration((__ptr_0 + 0), (__ptr_1 + 0)) + !(__ptr_1 + 0) +end clang_getTypeDeclaration /** Return the cursor for the declaration of the given type. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_getTypeDeclaration(T: CXType)(using Zone): CXCursor = +def clang_getTypeDeclaration(T: Ptr[CXType])(using Zone): CXCursor = val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) - val __ptr_1: Ptr[CXType] = alloc[CXType](1) - !(__ptr_1 + 0) = T - __sn_wrap_libclang_clang_getTypeDeclaration((__ptr_1 + 0), (__ptr_0 + 0)) + __sn_wrap_libclang_clang_getTypeDeclaration(T, (__ptr_0 + 0)) !(__ptr_0 + 0) -end clang_getTypeDeclaration /** Return the cursor for the declaration of the given type. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getTypeDeclaration(T: Ptr[CXType])(__return: Ptr[CXCursor]): Unit = __sn_wrap_libclang_clang_getTypeDeclaration(T, __return) /** Retrieve the spelling of a given CXTypeKind. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getTypeKindSpelling(K: CXTypeKind)(using Zone): CXString = val __ptr_0: Ptr[CXString] = alloc[CXString](1) @@ -6798,7 +7097,7 @@ def clang_getTypeKindSpelling(K: CXTypeKind)(using Zone): CXString = /** Retrieve the spelling of a given CXTypeKind. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getTypeKindSpelling(K: CXTypeKind)(__return: Ptr[CXString]): Unit = __sn_wrap_libclang_clang_getTypeKindSpelling(K, __return) @@ -6806,7 +7105,7 @@ def clang_getTypeKindSpelling(K: CXTypeKind)(__return: Ptr[CXString]): Unit = /** Pretty-print the underlying type using the rules of the language of the * translation unit from which it came. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getTypeSpelling(CT: Ptr[CXType])(using Zone): CXString = val __ptr_0: Ptr[CXString] = alloc[CXString](1) @@ -6816,88 +7115,138 @@ def clang_getTypeSpelling(CT: Ptr[CXType])(using Zone): CXString = /** Pretty-print the underlying type using the rules of the language of the * translation unit from which it came. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getTypeSpelling(CT: CXType)(using Zone): CXString = - val __ptr_0: Ptr[CXString] = alloc[CXString](1) - val __ptr_1: Ptr[CXType] = alloc[CXType](1) - !(__ptr_1 + 0) = CT - __sn_wrap_libclang_clang_getTypeSpelling((__ptr_1 + 0), (__ptr_0 + 0)) - !(__ptr_0 + 0) + val __ptr_0: Ptr[CXType] = alloc[CXType](1) + val __ptr_1: Ptr[CXString] = alloc[CXString](1) + !(__ptr_0 + 0) = CT + __sn_wrap_libclang_clang_getTypeSpelling((__ptr_0 + 0), (__ptr_1 + 0)) + !(__ptr_1 + 0) end clang_getTypeSpelling /** Pretty-print the underlying type using the rules of the language of the * translation unit from which it came. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getTypeSpelling(CT: Ptr[CXType])(__return: Ptr[CXString]): Unit = __sn_wrap_libclang_clang_getTypeSpelling(CT, __return) /** Retrieve the underlying type of a typedef declaration. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getTypedefDeclUnderlyingType(C: CXCursor)(using Zone): CXType = - val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) - val __ptr_1: Ptr[CXType] = alloc[CXType](1) - !(__ptr_0 + 0) = C + val __ptr_0: Ptr[CXType] = alloc[CXType](1) + val __ptr_1: Ptr[CXCursor] = alloc[CXCursor](1) + !(__ptr_1 + 0) = C __sn_wrap_libclang_clang_getTypedefDeclUnderlyingType( - (__ptr_0 + 0), - (__ptr_1 + 0) + (__ptr_1 + 0), + (__ptr_0 + 0) ) - !(__ptr_1 + 0) + !(__ptr_0 + 0) end clang_getTypedefDeclUnderlyingType /** Retrieve the underlying type of a typedef declaration. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +def clang_getTypedefDeclUnderlyingType(C: Ptr[CXCursor])(using Zone): CXType = + val __ptr_0: Ptr[CXType] = alloc[CXType](1) + __sn_wrap_libclang_clang_getTypedefDeclUnderlyingType(C, (__ptr_0 + 0)) + !(__ptr_0 + 0) + +/** Retrieve the underlying type of a typedef declaration. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getTypedefDeclUnderlyingType(C: Ptr[CXCursor])( __return: Ptr[CXType] ): Unit = __sn_wrap_libclang_clang_getTypedefDeclUnderlyingType(C, __return) -/** Retrieve the underlying type of a typedef declaration. +/** Returns the typedef name of the given type. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_getTypedefDeclUnderlyingType(C: Ptr[CXCursor])(using Zone): CXType = - val __ptr_0: Ptr[CXType] = alloc[CXType](1) - __sn_wrap_libclang_clang_getTypedefDeclUnderlyingType(C, (__ptr_0 + 0)) +def clang_getTypedefName(CT: Ptr[CXType])(using Zone): CXString = + val __ptr_0: Ptr[CXString] = alloc[CXString](1) + __sn_wrap_libclang_clang_getTypedefName(CT, (__ptr_0 + 0)) !(__ptr_0 + 0) /** Returns the typedef name of the given type. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_getTypedefName(CT: CXType)(using Zone): CXString = - val __ptr_0: Ptr[CXString] = alloc[CXString](1) - val __ptr_1: Ptr[CXType] = alloc[CXType](1) - !(__ptr_1 + 0) = CT - __sn_wrap_libclang_clang_getTypedefName((__ptr_1 + 0), (__ptr_0 + 0)) - !(__ptr_0 + 0) + val __ptr_0: Ptr[CXType] = alloc[CXType](1) + val __ptr_1: Ptr[CXString] = alloc[CXString](1) + !(__ptr_0 + 0) = CT + __sn_wrap_libclang_clang_getTypedefName((__ptr_0 + 0), (__ptr_1 + 0)) + !(__ptr_1 + 0) end clang_getTypedefName /** Returns the typedef name of the given type. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_getTypedefName(CT: Ptr[CXType])(using Zone): CXString = +def clang_getTypedefName(CT: Ptr[CXType])(__return: Ptr[CXString]): Unit = + __sn_wrap_libclang_clang_getTypedefName(CT, __return) + +/** Retrieve the spelling of a given CXUnaryOperatorKind. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +def clang_getUnaryOperatorKindSpelling(kind: CXUnaryOperatorKind)(using + Zone +): CXString = val __ptr_0: Ptr[CXString] = alloc[CXString](1) - __sn_wrap_libclang_clang_getTypedefName(CT, (__ptr_0 + 0)) + __sn_wrap_libclang_clang_getUnaryOperatorKindSpelling(kind, (__ptr_0 + 0)) !(__ptr_0 + 0) +end clang_getUnaryOperatorKindSpelling -/** Returns the typedef name of the given type. +/** Retrieve the spelling of a given CXUnaryOperatorKind. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_getTypedefName(CT: Ptr[CXType])(__return: Ptr[CXString]): Unit = - __sn_wrap_libclang_clang_getTypedefName(CT, __return) +def clang_getUnaryOperatorKindSpelling(kind: CXUnaryOperatorKind)( + __return: Ptr[CXString] +): Unit = + __sn_wrap_libclang_clang_getUnaryOperatorKindSpelling(kind, __return) + +/** Retrieve the unqualified variant of the given type, removing as little sugar + * as possible. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +def clang_getUnqualifiedType(CT: Ptr[CXType])(__return: Ptr[CXType]): Unit = + __sn_wrap_libclang_clang_getUnqualifiedType(CT, __return) + +/** Retrieve the unqualified variant of the given type, removing as little sugar + * as possible. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +def clang_getUnqualifiedType(CT: Ptr[CXType])(using Zone): CXType = + val __ptr_0: Ptr[CXType] = alloc[CXType](1) + __sn_wrap_libclang_clang_getUnqualifiedType(CT, (__ptr_0 + 0)) + !(__ptr_0 + 0) + +/** Retrieve the unqualified variant of the given type, removing as little sugar + * as possible. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +def clang_getUnqualifiedType(CT: CXType)(using Zone): CXType = + val __ptr_0: Ptr[CXType] = alloc[CXType](2) + !(__ptr_0 + 0) = CT + __sn_wrap_libclang_clang_getUnqualifiedType((__ptr_0 + 0), (__ptr_0 + 1)) + !(__ptr_0 + 1) /** Compute a hash value for the given cursor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_hashCursor(_0: CXCursor)(using Zone): CUnsignedInt = val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) @@ -6906,31 +7255,26 @@ def clang_hashCursor(_0: CXCursor)(using Zone): CUnsignedInt = /** Compute a hash value for the given cursor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_hashCursor(_0: Ptr[CXCursor]): CUnsignedInt = __sn_wrap_libclang_clang_hashCursor(_0) /** Retrieve the CXSourceLocation represented by the given CXIdxLoc. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_indexLoc_getCXSourceLocation(loc: CXIdxLoc)(using +def clang_indexLoc_getCXSourceLocation(loc: Ptr[CXIdxLoc])(using Zone ): CXSourceLocation = val __ptr_0: Ptr[CXSourceLocation] = alloc[CXSourceLocation](1) - val __ptr_1: Ptr[CXIdxLoc] = alloc[CXIdxLoc](1) - !(__ptr_1 + 0) = loc - __sn_wrap_libclang_clang_indexLoc_getCXSourceLocation( - (__ptr_1 + 0), - (__ptr_0 + 0) - ) + __sn_wrap_libclang_clang_indexLoc_getCXSourceLocation(loc, (__ptr_0 + 0)) !(__ptr_0 + 0) end clang_indexLoc_getCXSourceLocation /** Retrieve the CXSourceLocation represented by the given CXIdxLoc. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_indexLoc_getCXSourceLocation(loc: Ptr[CXIdxLoc])( __return: Ptr[CXSourceLocation] @@ -6939,20 +7283,25 @@ def clang_indexLoc_getCXSourceLocation(loc: Ptr[CXIdxLoc])( /** Retrieve the CXSourceLocation represented by the given CXIdxLoc. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_indexLoc_getCXSourceLocation(loc: Ptr[CXIdxLoc])(using +def clang_indexLoc_getCXSourceLocation(loc: CXIdxLoc)(using Zone ): CXSourceLocation = val __ptr_0: Ptr[CXSourceLocation] = alloc[CXSourceLocation](1) - __sn_wrap_libclang_clang_indexLoc_getCXSourceLocation(loc, (__ptr_0 + 0)) + val __ptr_1: Ptr[CXIdxLoc] = alloc[CXIdxLoc](1) + !(__ptr_1 + 0) = loc + __sn_wrap_libclang_clang_indexLoc_getCXSourceLocation( + (__ptr_1 + 0), + (__ptr_0 + 0) + ) !(__ptr_0 + 0) end clang_indexLoc_getCXSourceLocation /** Retrieve the CXIdxFile, file, line, column, and offset represented by the * given CXIdxLoc. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_indexLoc_getFileLocation( loc: CXIdxLoc, @@ -6977,7 +7326,7 @@ end clang_indexLoc_getFileLocation /** Retrieve the CXIdxFile, file, line, column, and offset represented by the * given CXIdxLoc. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_indexLoc_getFileLocation( loc: Ptr[CXIdxLoc], @@ -6999,7 +7348,7 @@ def clang_indexLoc_getFileLocation( /** Determine whether a CXType has the "const" qualifier set, without looking * through typedefs that may have added "const" at a different level. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_isConstQualifiedType(T: CXType)(using Zone): CUnsignedInt = val __ptr_0: Ptr[CXType] = alloc[CXType](1) @@ -7009,7 +7358,7 @@ def clang_isConstQualifiedType(T: CXType)(using Zone): CUnsignedInt = /** Determine whether a CXType has the "const" qualifier set, without looking * through typedefs that may have added "const" at a different level. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_isConstQualifiedType(T: Ptr[CXType]): CUnsignedInt = __sn_wrap_libclang_clang_isConstQualifiedType(T) @@ -7017,47 +7366,47 @@ def clang_isConstQualifiedType(T: Ptr[CXType]): CUnsignedInt = /** Determine whether the declaration pointed to by this cursor is also a * definition of that entity. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ -def clang_isCursorDefinition(_0: Ptr[CXCursor]): CUnsignedInt = - __sn_wrap_libclang_clang_isCursorDefinition(_0) - -/** Determine whether the declaration pointed to by this cursor is also a - * definition of that entity. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_isCursorDefinition(_0: CXCursor)(using Zone): CUnsignedInt = val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) !(__ptr_0 + 0) = _0 __sn_wrap_libclang_clang_isCursorDefinition((__ptr_0 + 0)) -/** Return 1 if the CXType is a variadic function type, and 0 otherwise. +/** Determine whether the declaration pointed to by this cursor is also a + * definition of that entity. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_isFunctionTypeVariadic(T: CXType)(using Zone): CUnsignedInt = - val __ptr_0: Ptr[CXType] = alloc[CXType](1) - !(__ptr_0 + 0) = T - __sn_wrap_libclang_clang_isFunctionTypeVariadic((__ptr_0 + 0)) +def clang_isCursorDefinition(_0: Ptr[CXCursor]): CUnsignedInt = + __sn_wrap_libclang_clang_isCursorDefinition(_0) /** Return 1 if the CXType is a variadic function type, and 0 otherwise. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_isFunctionTypeVariadic(T: Ptr[CXType]): CUnsignedInt = __sn_wrap_libclang_clang_isFunctionTypeVariadic(T) +/** Return 1 if the CXType is a variadic function type, and 0 otherwise. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +def clang_isFunctionTypeVariadic(T: CXType)(using Zone): CUnsignedInt = + val __ptr_0: Ptr[CXType] = alloc[CXType](1) + !(__ptr_0 + 0) = T + __sn_wrap_libclang_clang_isFunctionTypeVariadic((__ptr_0 + 0)) + /** Determine whether the given declaration is invalid. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_isInvalidDeclaration(_0: Ptr[CXCursor]): CUnsignedInt = __sn_wrap_libclang_clang_isInvalidDeclaration(_0) /** Determine whether the given declaration is invalid. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_isInvalidDeclaration(_0: CXCursor)(using Zone): CUnsignedInt = val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) @@ -7066,24 +7415,24 @@ def clang_isInvalidDeclaration(_0: CXCursor)(using Zone): CUnsignedInt = /** Return 1 if the CXType is a POD (plain old data) type, and 0 otherwise. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h - */ -def clang_isPODType(T: Ptr[CXType]): CUnsignedInt = - __sn_wrap_libclang_clang_isPODType(T) - -/** Return 1 if the CXType is a POD (plain old data) type, and 0 otherwise. - * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_isPODType(T: CXType)(using Zone): CUnsignedInt = val __ptr_0: Ptr[CXType] = alloc[CXType](1) !(__ptr_0 + 0) = T __sn_wrap_libclang_clang_isPODType((__ptr_0 + 0)) +/** Return 1 if the CXType is a POD (plain old data) type, and 0 otherwise. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +def clang_isPODType(T: Ptr[CXType]): CUnsignedInt = + __sn_wrap_libclang_clang_isPODType(T) + /** Determine whether a CXType has the "restrict" qualifier set, without looking * through typedefs that may have added "restrict" at a different level. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_isRestrictQualifiedType(T: Ptr[CXType]): CUnsignedInt = __sn_wrap_libclang_clang_isRestrictQualifiedType(T) @@ -7091,7 +7440,7 @@ def clang_isRestrictQualifiedType(T: Ptr[CXType]): CUnsignedInt = /** Determine whether a CXType has the "restrict" qualifier set, without looking * through typedefs that may have added "restrict" at a different level. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_isRestrictQualifiedType(T: CXType)(using Zone): CUnsignedInt = val __ptr_0: Ptr[CXType] = alloc[CXType](1) @@ -7101,25 +7450,25 @@ def clang_isRestrictQualifiedType(T: CXType)(using Zone): CUnsignedInt = /** Returns 1 if the base class specified by the cursor with kind * CX_CXXBaseSpecifier is virtual. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_isVirtualBase(_0: CXCursor)(using Zone): CUnsignedInt = - val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) - !(__ptr_0 + 0) = _0 - __sn_wrap_libclang_clang_isVirtualBase((__ptr_0 + 0)) +def clang_isVirtualBase(_0: Ptr[CXCursor]): CUnsignedInt = + __sn_wrap_libclang_clang_isVirtualBase(_0) /** Returns 1 if the base class specified by the cursor with kind * CX_CXXBaseSpecifier is virtual. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -def clang_isVirtualBase(_0: Ptr[CXCursor]): CUnsignedInt = - __sn_wrap_libclang_clang_isVirtualBase(_0) +def clang_isVirtualBase(_0: CXCursor)(using Zone): CUnsignedInt = + val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) + !(__ptr_0 + 0) = _0 + __sn_wrap_libclang_clang_isVirtualBase((__ptr_0 + 0)) /** Determine whether a CXType has the "volatile" qualifier set, without looking * through typedefs that may have added "volatile" at a different level. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_isVolatileQualifiedType(T: CXType)(using Zone): CUnsignedInt = val __ptr_0: Ptr[CXType] = alloc[CXType](1) @@ -7129,7 +7478,7 @@ def clang_isVolatileQualifiedType(T: CXType)(using Zone): CUnsignedInt = /** Determine whether a CXType has the "volatile" qualifier set, without looking * through typedefs that may have added "volatile" at a different level. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_isVolatileQualifiedType(T: Ptr[CXType]): CUnsignedInt = __sn_wrap_libclang_clang_isVolatileQualifiedType(T) @@ -7137,7 +7486,7 @@ def clang_isVolatileQualifiedType(T: Ptr[CXType]): CUnsignedInt = /** Tokenize the source code described by the given range into raw lexical * tokens. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_tokenize( TU: CXTranslationUnit, @@ -7153,7 +7502,7 @@ end clang_tokenize /** Tokenize the source code described by the given range into raw lexical * tokens. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_tokenize( TU: CXTranslationUnit, @@ -7165,25 +7514,49 @@ def clang_tokenize( /** Visit the children of a particular cursor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_visitChildren( - parent: Ptr[CXCursor], + parent: CXCursor, visitor: CXCursorVisitor, client_data: CXClientData -): CUnsignedInt = - __sn_wrap_libclang_clang_visitChildren(parent, visitor, client_data) +)(using Zone): CUnsignedInt = + val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) + !(__ptr_0 + 0) = parent + __sn_wrap_libclang_clang_visitChildren((__ptr_0 + 0), visitor, client_data) +end clang_visitChildren /** Visit the children of a particular cursor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ def clang_visitChildren( - parent: CXCursor, + parent: Ptr[CXCursor], visitor: CXCursorVisitor, client_data: CXClientData -)(using Zone): CUnsignedInt = +): CUnsignedInt = + __sn_wrap_libclang_clang_visitChildren(parent, visitor, client_data) + +/** Visits the children of a cursor using the specified block. Behaves + * identically to clang_visitChildren() in all other respects. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +def clang_visitChildrenWithBlock(parent: CXCursor, block: CXCursorVisitorBlock)( + using Zone +): CUnsignedInt = val __ptr_0: Ptr[CXCursor] = alloc[CXCursor](1) !(__ptr_0 + 0) = parent - __sn_wrap_libclang_clang_visitChildren((__ptr_0 + 0), visitor, client_data) -end clang_visitChildren + __sn_wrap_libclang_clang_visitChildrenWithBlock((__ptr_0 + 0), block) +end clang_visitChildrenWithBlock + +/** Visits the children of a cursor using the specified block. Behaves + * identically to clang_visitChildren() in all other respects. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +def clang_visitChildrenWithBlock( + parent: Ptr[CXCursor], + block: CXCursorVisitorBlock +): CUnsignedInt = + __sn_wrap_libclang_clang_visitChildrenWithBlock(parent, block) diff --git a/modules/libclang/src/main/scala/generated/libclang/structs.scala b/modules/libclang/src/main/scala/generated/libclang/structs.scala index 8aa6bf46..19ea5876 100644 --- a/modules/libclang/src/main/scala/generated/libclang/structs.scala +++ b/modules/libclang/src/main/scala/generated/libclang/structs.scala @@ -1,18 +1,13 @@ package libclang -package structs import _root_.scala.scalanative.unsafe.* import _root_.scala.scalanative.unsigned.* import _root_.scala.scalanative.libc.* import _root_.scala.scalanative.* -import _root_.libclang.enumerations.* -import _root_.libclang.aliases.* -import _root_.libclang.structs.* - /** Contains the results of code-completion. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXCodeCompleteResults = CStruct2[Ptr[CXCompletionResult], CUnsignedInt] @@ -37,7 +32,7 @@ end CXCodeCompleteResults /** A single result of code completion. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXCompletionResult = CStruct2[CXCursorKind, CXCompletionString] object CXCompletionResult: @@ -63,7 +58,7 @@ end CXCompletionResult /** A cursor representing some element in the abstract syntax tree for a * translation unit. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXCursor = CStruct3[CXCursorKind, CInt, CArray[Ptr[Byte], Nat._3]] object CXCursor: @@ -88,7 +83,7 @@ object CXCursor: def data_=(value: CArray[Ptr[Byte], Nat._3]): Unit = !struct.at3 = value end CXCursor -/** [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h +/** [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXCursorAndRangeVisitor = CStruct2[Ptr[Byte], CFuncPtr3[Ptr[ Byte @@ -117,7 +112,7 @@ object CXCursorAndRangeVisitor: ): Unit = !struct.at2 = value end CXCursorAndRangeVisitor -/** [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h +/** [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXCursorSetImpl = CStruct0 object CXCursorSetImpl: @@ -126,7 +121,7 @@ object CXCursorSetImpl: /** Uniquely identifies a CXFile, that refers to the same underlying file, * across an indexing session. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/CXFile.h */ opaque type CXFileUniqueID = CStruct1[CArray[CUnsignedLongLong, Nat._3]] object CXFileUniqueID: @@ -146,7 +141,7 @@ object CXFileUniqueID: value end CXFileUniqueID -/** [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h +/** [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXIdxAttrInfo = CStruct3[CXIdxAttrKind, CXCursor, CXIdxLoc] object CXIdxAttrInfo: @@ -171,7 +166,7 @@ object CXIdxAttrInfo: def loc_=(value: CXIdxLoc): Unit = !struct.at3 = value end CXIdxAttrInfo -/** [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h +/** [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXIdxBaseClassInfo = CStruct3[Ptr[CXIdxEntityInfo], CXCursor, CXIdxLoc] @@ -197,7 +192,7 @@ object CXIdxBaseClassInfo: def loc_=(value: CXIdxLoc): Unit = !struct.at3 = value end CXIdxBaseClassInfo -/** [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h +/** [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXIdxCXXClassDeclInfo = CStruct3[Ptr[CXIdxDeclInfo], Ptr[Ptr[CXIdxBaseClassInfo]], CUnsignedInt] @@ -227,7 +222,7 @@ object CXIdxCXXClassDeclInfo: def numBases_=(value: CUnsignedInt): Unit = !struct.at3 = value end CXIdxCXXClassDeclInfo -/** [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h +/** [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXIdxContainerInfo = CStruct1[CXCursor] object CXIdxContainerInfo: @@ -243,49 +238,39 @@ object CXIdxContainerInfo: def cursor_=(value: CXCursor): Unit = !struct.at1 = value end CXIdxContainerInfo -/** [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h +/** [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ -opaque type CXIdxDeclInfo = - CStruct13[ +opaque type CXIdxDeclInfo = CStruct13[ + Ptr[CXIdxEntityInfo], + CXCursor, + CXIdxLoc, + Ptr[CXIdxContainerInfo], + Ptr[CXIdxContainerInfo], + CInt, + CInt, + CInt, + Ptr[CXIdxContainerInfo], + CInt, + Ptr[Ptr[CXIdxAttrInfo]], + CUnsignedInt, + CUnsignedInt +] +object CXIdxDeclInfo: + given _tag: Tag[CXIdxDeclInfo] = Tag.materializeCStruct13Tag[ Ptr[CXIdxEntityInfo], CXCursor, CXIdxLoc, - Ptr[ - CXIdxContainerInfo - ], + Ptr[CXIdxContainerInfo], Ptr[CXIdxContainerInfo], CInt, CInt, CInt, - Ptr[ - CXIdxContainerInfo - ], + Ptr[CXIdxContainerInfo], CInt, Ptr[Ptr[CXIdxAttrInfo]], CUnsignedInt, CUnsignedInt ] -object CXIdxDeclInfo: - given _tag: Tag[CXIdxDeclInfo] = - Tag.materializeCStruct13Tag[ - Ptr[CXIdxEntityInfo], - CXCursor, - CXIdxLoc, - Ptr[ - CXIdxContainerInfo - ], - Ptr[CXIdxContainerInfo], - CInt, - CInt, - CInt, - Ptr[ - CXIdxContainerInfo - ], - CInt, - Ptr[Ptr[CXIdxAttrInfo]], - CUnsignedInt, - CUnsignedInt - ] def apply()(using Zone): Ptr[CXIdxDeclInfo] = scala.scalanative.unsafe.alloc[CXIdxDeclInfo](1) def apply( @@ -353,7 +338,7 @@ object CXIdxDeclInfo: end extension end CXIdxDeclInfo -/** [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h +/** [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXIdxEntityInfo = CStruct8[ CXIdxEntityKind, @@ -422,7 +407,7 @@ end CXIdxEntityInfo /** Data for IndexerCallbacks#indexEntityReference. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXIdxEntityRefInfo = CStruct7[CXIdxEntityRefKind, CXCursor, CXIdxLoc, Ptr[CXIdxEntityInfo], Ptr[ @@ -473,7 +458,7 @@ object CXIdxEntityRefInfo: end extension end CXIdxEntityRefInfo -/** [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h +/** [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXIdxIBOutletCollectionAttrInfo = CStruct4[Ptr[CXIdxAttrInfo], Ptr[CXIdxEntityInfo], CXCursor, CXIdxLoc] @@ -510,7 +495,7 @@ end CXIdxIBOutletCollectionAttrInfo /** Data for IndexerCallbacks#importedASTFile. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXIdxImportedASTFileInfo = CStruct4[CXFile, CXModule, CXIdxLoc, CInt] @@ -541,7 +526,7 @@ end CXIdxImportedASTFileInfo /** Data for ppIncludedFile callback. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXIdxIncludedFileInfo = CStruct6[CXIdxLoc, CString, CXFile, CInt, CInt, CInt] @@ -585,7 +570,7 @@ end CXIdxIncludedFileInfo /** Source location passed to index callbacks. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXIdxLoc = CStruct2[CArray[Ptr[Byte], Nat._2], CUnsignedInt] object CXIdxLoc: @@ -607,7 +592,7 @@ object CXIdxLoc: def int_data_=(value: CUnsignedInt): Unit = !struct.at2 = value end CXIdxLoc -/** [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h +/** [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXIdxObjCCategoryDeclInfo = CStruct5[Ptr[ CXIdxObjCContainerDeclInfo @@ -650,7 +635,7 @@ object CXIdxObjCCategoryDeclInfo: end extension end CXIdxObjCCategoryDeclInfo -/** [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h +/** [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXIdxObjCContainerDeclInfo = CStruct2[Ptr[CXIdxDeclInfo], CXIdxObjCContainerKind] @@ -673,7 +658,7 @@ object CXIdxObjCContainerDeclInfo: def kind_=(value: CXIdxObjCContainerKind): Unit = !struct.at2 = value end CXIdxObjCContainerDeclInfo -/** [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h +/** [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXIdxObjCInterfaceDeclInfo = CStruct3[Ptr[ CXIdxObjCContainerDeclInfo @@ -706,7 +691,7 @@ object CXIdxObjCInterfaceDeclInfo: !struct.at3 = value end CXIdxObjCInterfaceDeclInfo -/** [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h +/** [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXIdxObjCPropertyDeclInfo = CStruct3[Ptr[CXIdxDeclInfo], Ptr[CXIdxEntityInfo], Ptr[CXIdxEntityInfo]] @@ -736,7 +721,7 @@ object CXIdxObjCPropertyDeclInfo: def setter_=(value: Ptr[CXIdxEntityInfo]): Unit = !struct.at3 = value end CXIdxObjCPropertyDeclInfo -/** [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h +/** [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXIdxObjCProtocolRefInfo = CStruct3[Ptr[CXIdxEntityInfo], CXCursor, CXIdxLoc] @@ -762,7 +747,7 @@ object CXIdxObjCProtocolRefInfo: def loc_=(value: CXIdxLoc): Unit = !struct.at3 = value end CXIdxObjCProtocolRefInfo -/** [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h +/** [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXIdxObjCProtocolRefListInfo = CStruct2[Ptr[Ptr[CXIdxObjCProtocolRefInfo]], CUnsignedInt] @@ -787,7 +772,83 @@ object CXIdxObjCProtocolRefListInfo: def numProtocols_=(value: CUnsignedInt): Unit = !struct.at2 = value end CXIdxObjCProtocolRefListInfo -/** [bindgen] header: /usr/lib/llvm-14/include/clang-c/BuildSystem.h +/** Index initialization options. + * + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h + */ +opaque type CXIndexOptions = CStruct9[ + CUnsignedInt, + CUnsignedChar, + CUnsignedChar, + CUnsignedInt, + CUnsignedInt, + CUnsignedInt, + CUnsignedInt, + CString, + CString +] +object CXIndexOptions: + given _tag: Tag[CXIndexOptions] = Tag.materializeCStruct9Tag[ + CUnsignedInt, + CUnsignedChar, + CUnsignedChar, + CUnsignedInt, + CUnsignedInt, + CUnsignedInt, + CUnsignedInt, + CString, + CString + ] + def apply()(using Zone): Ptr[CXIndexOptions] = + scala.scalanative.unsafe.alloc[CXIndexOptions](1) + def apply( + Size: CUnsignedInt, + ThreadBackgroundPriorityForIndexing: CUnsignedChar, + ThreadBackgroundPriorityForEditing: CUnsignedChar, + ExcludeDeclarationsFromPCH: CUnsignedInt, + DisplayDiagnostics: CUnsignedInt, + StorePreamblesInMemory: CUnsignedInt, + PreambleStoragePath: CString, + InvocationEmissionPath: CString + )(using Zone): Ptr[CXIndexOptions] = + val ____ptr = apply() + (!____ptr).Size = Size + (!____ptr).ThreadBackgroundPriorityForIndexing = + ThreadBackgroundPriorityForIndexing + (!____ptr).ThreadBackgroundPriorityForEditing = + ThreadBackgroundPriorityForEditing + (!____ptr).ExcludeDeclarationsFromPCH = ExcludeDeclarationsFromPCH + (!____ptr).DisplayDiagnostics = DisplayDiagnostics + (!____ptr).StorePreamblesInMemory = StorePreamblesInMemory + (!____ptr).PreambleStoragePath = PreambleStoragePath + (!____ptr).InvocationEmissionPath = InvocationEmissionPath + ____ptr + end apply + extension (struct: CXIndexOptions) + def Size: CUnsignedInt = struct._1 + def Size_=(value: CUnsignedInt): Unit = !struct.at1 = value + def ThreadBackgroundPriorityForIndexing: CUnsignedChar = struct._2 + def ThreadBackgroundPriorityForIndexing_=(value: CUnsignedChar): Unit = + !struct.at2 = value + def ThreadBackgroundPriorityForEditing: CUnsignedChar = struct._3 + def ThreadBackgroundPriorityForEditing_=(value: CUnsignedChar): Unit = + !struct.at3 = value + def ExcludeDeclarationsFromPCH: CUnsignedInt = struct._4 + def ExcludeDeclarationsFromPCH_=(value: CUnsignedInt): Unit = !struct.at4 = + value + def DisplayDiagnostics: CUnsignedInt = struct._5 + def DisplayDiagnostics_=(value: CUnsignedInt): Unit = !struct.at5 = value + def StorePreamblesInMemory: CUnsignedInt = struct._6 + def StorePreamblesInMemory_=(value: CUnsignedInt): Unit = !struct.at6 = + value + def PreambleStoragePath: CString = struct._8 + def PreambleStoragePath_=(value: CString): Unit = !struct.at8 = value + def InvocationEmissionPath: CString = struct._9 + def InvocationEmissionPath_=(value: CString): Unit = !struct.at9 = value + end extension +end CXIndexOptions + +/** [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/BuildSystem.h */ opaque type CXModuleMapDescriptorImpl = CStruct0 object CXModuleMapDescriptorImpl: @@ -796,7 +857,7 @@ object CXModuleMapDescriptorImpl: /** Describes the availability of a given entity on a particular platform, e.g., * a particular class might only be available on Mac OS 10.7 or newer. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXPlatformAvailability = CStruct6[CXString, CXVersion, CXVersion, CXVersion, CInt, CXString] @@ -846,7 +907,8 @@ end CXPlatformAvailability /** Identifies a specific source location within a translation unit. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: + * /opt/homebrew/opt/llvm@17/include/clang-c/CXSourceLocation.h */ opaque type CXSourceLocation = CStruct2[CArray[Ptr[Byte], Nat._2], CUnsignedInt] object CXSourceLocation: @@ -870,7 +932,8 @@ end CXSourceLocation /** Identifies a half-open character range in the source code. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: + * /opt/homebrew/opt/llvm@17/include/clang-c/CXSourceLocation.h */ opaque type CXSourceRange = CStruct3[CArray[Ptr[Byte], Nat._2], CUnsignedInt, CUnsignedInt] @@ -902,7 +965,8 @@ end CXSourceRange /** Identifies an array of ranges. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: + * /opt/homebrew/opt/llvm@17/include/clang-c/CXSourceLocation.h */ opaque type CXSourceRangeList = CStruct2[CUnsignedInt, Ptr[CXSourceRange]] object CXSourceRangeList: @@ -926,7 +990,7 @@ end CXSourceRangeList /** A character string. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/CXString.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/CXString.h */ opaque type CXString = CStruct2[Ptr[Byte], CUnsignedInt] object CXString: @@ -948,7 +1012,7 @@ object CXString: def private_flags_=(value: CUnsignedInt): Unit = !struct.at2 = value end CXString -/** [bindgen] header: /usr/lib/llvm-14/include/clang-c/CXString.h +/** [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/CXString.h */ opaque type CXStringSet = CStruct2[Ptr[CXString], CUnsignedInt] object CXStringSet: @@ -972,7 +1036,7 @@ end CXStringSet /** The memory usage of a CXTranslationUnit, broken into categories. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXTUResourceUsage = CStruct3[Ptr[Byte], CUnsignedInt, Ptr[CXTUResourceUsageEntry]] @@ -1003,7 +1067,7 @@ object CXTUResourceUsage: value end CXTUResourceUsage -/** [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h +/** [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXTUResourceUsageEntry = CStruct2[CXTUResourceUsageKind, CUnsignedLongInt] @@ -1026,7 +1090,7 @@ object CXTUResourceUsageEntry: def amount_=(value: CUnsignedLongInt): Unit = !struct.at2 = value end CXTUResourceUsageEntry -/** [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h +/** [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXTargetInfoImpl = CStruct0 object CXTargetInfoImpl: @@ -1034,7 +1098,7 @@ object CXTargetInfoImpl: /** Describes a single preprocessing token. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXToken = CStruct2[CArray[CUnsignedInt, Nat._4], Ptr[Byte]] object CXToken: @@ -1057,7 +1121,7 @@ object CXToken: def ptr_data_=(value: Ptr[Byte]): Unit = !struct.at2 = value end CXToken -/** [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h +/** [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXTranslationUnitImpl = CStruct0 object CXTranslationUnitImpl: @@ -1065,7 +1129,7 @@ object CXTranslationUnitImpl: /** The type of an element in the abstract syntax tree. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXType = CStruct2[CXTypeKind, CArray[Ptr[Byte], Nat._2]] object CXType: @@ -1089,7 +1153,7 @@ end CXType /** Provides the contents of a file that has not yet been saved to disk. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXUnsavedFile = CStruct3[CString, CString, CUnsignedLongInt] object CXUnsavedFile: @@ -1116,7 +1180,7 @@ end CXUnsavedFile /** Describes a version number of the form major.minor.subminor. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type CXVersion = CStruct3[CInt, CInt, CInt] object CXVersion: @@ -1140,7 +1204,7 @@ object CXVersion: def Subminor_=(value: CInt): Unit = !struct.at3 = value end CXVersion -/** [bindgen] header: /usr/lib/llvm-14/include/clang-c/BuildSystem.h +/** [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/BuildSystem.h */ opaque type CXVirtualFileOverlayImpl = CStruct0 object CXVirtualFileOverlayImpl: @@ -1149,7 +1213,7 @@ object CXVirtualFileOverlayImpl: /** A group of callbacks used by #clang_indexSourceFile and * #clang_indexTranslationUnit. * - * [bindgen] header: /usr/lib/llvm-14/include/clang-c/Index.h + * [bindgen] header: /opt/homebrew/opt/llvm@17/include/clang-c/Index.h */ opaque type IndexerCallbacks = CStruct8[ CFuncPtr2[CXClientData, Ptr[Byte], CInt], @@ -1162,34 +1226,16 @@ opaque type IndexerCallbacks = CStruct8[ CFuncPtr2[CXClientData, Ptr[CXIdxEntityRefInfo], Unit] ] object IndexerCallbacks: - given _tag: Tag[IndexerCallbacks] = Tag - .materializeCStruct8Tag[ - CFuncPtr2[CXClientData, Ptr[Byte], CInt], - CFuncPtr3[ - CXClientData, - CXDiagnosticSet, - Ptr[Byte], - Unit - ], - CFuncPtr3[CXClientData, CXFile, Ptr[Byte], CXIdxClientFile], - CFuncPtr2[ - CXClientData, - Ptr[CXIdxIncludedFileInfo], - CXIdxClientFile - ], - CFuncPtr2[ - CXClientData, - Ptr[CXIdxImportedASTFileInfo], - CXIdxClientASTFile - ], - CFuncPtr2[CXClientData, Ptr[Byte], CXIdxClientContainer], - CFuncPtr2[ - CXClientData, - Ptr[CXIdxDeclInfo], - Unit - ], - CFuncPtr2[CXClientData, Ptr[CXIdxEntityRefInfo], Unit] - ] + given _tag: Tag[IndexerCallbacks] = Tag.materializeCStruct8Tag[ + CFuncPtr2[CXClientData, Ptr[Byte], CInt], + CFuncPtr3[CXClientData, CXDiagnosticSet, Ptr[Byte], Unit], + CFuncPtr3[CXClientData, CXFile, Ptr[Byte], CXIdxClientFile], + CFuncPtr2[CXClientData, Ptr[CXIdxIncludedFileInfo], CXIdxClientFile], + CFuncPtr2[CXClientData, Ptr[CXIdxImportedASTFileInfo], CXIdxClientASTFile], + CFuncPtr2[CXClientData, Ptr[Byte], CXIdxClientContainer], + CFuncPtr2[CXClientData, Ptr[CXIdxDeclInfo], Unit], + CFuncPtr2[CXClientData, Ptr[CXIdxEntityRefInfo], Unit] + ] def apply()(using Zone): Ptr[IndexerCallbacks] = scala.scalanative.unsafe.alloc[IndexerCallbacks](1) def apply( diff --git a/modules/libclang/src/main/scala/libclang/fluent.scala b/modules/libclang/src/main/scala/libclang/fluent.scala index fcfcef2a..556895cd 100644 --- a/modules/libclang/src/main/scala/libclang/fluent.scala +++ b/modules/libclang/src/main/scala/libclang/fluent.scala @@ -4,11 +4,6 @@ package fluent import scala.scalanative.unsafe.* import scala.annotation.targetName import scala.scalanative.unsigned.* -import enumerations.* -import structs.* -import functions.* -import libclang.aliases.CXClientData -import libclang.aliases.CXCursorVisitor extension (cxs: CXString) def string(using Zone): String = @@ -70,7 +65,6 @@ extension (loc: CXSourceLocation) def isFromSystemHeader(using Zone): Boolean = clang_Location_isInSystemHeader(loc) == 1 def getFilename(using Zone) = - import libclang.aliases.* val file = stackalloc[CXFile](1) clang_getFileLocation(loc, file, null, null, null) clang_getFileName(!file).string diff --git a/project/plugins.sbt b/project/plugins.sbt index 7cca4ba2..80619fa2 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -13,7 +13,7 @@ addSbtPlugin( ) addSbtPlugin( - "com.indoorvivants" % "bindgen-sbt-plugin" % "0.0.17+7-fece3de1-SNAPSHOT" + "com.indoorvivants" % "bindgen-sbt-plugin" % "0.0.24" ) addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.11.0")