blob: caf2392c19e0889f10d9944b08a813b295bcb55d [file] [log] [blame]
// AUTO GENERATED FILE, DO NOT EDIT.
//
// Generated by `package:ffigen`.
import 'dart:ffi' as ffi;
/// Bindings to LibClang.
class LibClang {
/// Holds the symbol lookup function.
final ffi.Pointer<T> Function<T extends ffi.NativeType>(String symbolName)
_lookup;
/// The symbols are looked up in [dynamicLibrary].
LibClang(ffi.DynamicLibrary dynamicLibrary) : _lookup = dynamicLibrary.lookup;
/// The symbols are looked up with [lookup].
LibClang.fromLookup(
ffi.Pointer<T> Function<T extends ffi.NativeType>(String symbolName)
lookup)
: _lookup = lookup;
/// Retrieve the character data associated with the given string.
ffi.Pointer<ffi.Int8> clang_getCString(
CXString string,
) {
return _clang_getCString(
string,
);
}
late final _clang_getCString_ptr =
_lookup<ffi.NativeFunction<ffi.Pointer<ffi.Int8> Function(CXString)>>(
'clang_getCString');
late final _clang_getCString = _clang_getCString_ptr
.asFunction<ffi.Pointer<ffi.Int8> Function(CXString)>();
/// Free the given string.
void clang_disposeString(
CXString string,
) {
return _clang_disposeString(
string,
);
}
late final _clang_disposeString_ptr =
_lookup<ffi.NativeFunction<ffi.Void Function(CXString)>>(
'clang_disposeString');
late final _clang_disposeString =
_clang_disposeString_ptr.asFunction<void Function(CXString)>();
/// Free the given string set.
void clang_disposeStringSet(
ffi.Pointer<CXStringSet> set_1,
) {
return _clang_disposeStringSet(
set_1,
);
}
late final _clang_disposeStringSet_ptr =
_lookup<ffi.NativeFunction<ffi.Void Function(ffi.Pointer<CXStringSet>)>>(
'clang_disposeStringSet');
late final _clang_disposeStringSet = _clang_disposeStringSet_ptr
.asFunction<void Function(ffi.Pointer<CXStringSet>)>();
/// Return the timestamp for use with Clang's -fbuild-session-timestamp=
/// option.
int clang_getBuildSessionTimestamp() {
return _clang_getBuildSessionTimestamp();
}
late final _clang_getBuildSessionTimestamp_ptr =
_lookup<ffi.NativeFunction<ffi.Uint64 Function()>>(
'clang_getBuildSessionTimestamp');
late final _clang_getBuildSessionTimestamp =
_clang_getBuildSessionTimestamp_ptr.asFunction<int Function()>();
/// Create a CXVirtualFileOverlay object. Must be disposed with
/// clang_VirtualFileOverlay_dispose().
CXVirtualFileOverlay clang_VirtualFileOverlay_create(
int options,
) {
return _clang_VirtualFileOverlay_create(
options,
);
}
late final _clang_VirtualFileOverlay_create_ptr =
_lookup<ffi.NativeFunction<CXVirtualFileOverlay Function(ffi.Uint32)>>(
'clang_VirtualFileOverlay_create');
late final _clang_VirtualFileOverlay_create =
_clang_VirtualFileOverlay_create_ptr
.asFunction<CXVirtualFileOverlay Function(int)>();
/// Map an absolute virtual file path to an absolute real one. The virtual
/// path must be canonicalized (not contain "."/"..").
int clang_VirtualFileOverlay_addFileMapping(
CXVirtualFileOverlay arg0,
ffi.Pointer<ffi.Int8> virtualPath,
ffi.Pointer<ffi.Int8> realPath,
) {
return _clang_VirtualFileOverlay_addFileMapping(
arg0,
virtualPath,
realPath,
);
}
late final _clang_VirtualFileOverlay_addFileMapping_ptr = _lookup<
ffi.NativeFunction<
ffi.Int32 Function(CXVirtualFileOverlay, ffi.Pointer<ffi.Int8>,
ffi.Pointer<ffi.Int8>)>>(
'clang_VirtualFileOverlay_addFileMapping');
late final _clang_VirtualFileOverlay_addFileMapping =
_clang_VirtualFileOverlay_addFileMapping_ptr.asFunction<
int Function(CXVirtualFileOverlay, ffi.Pointer<ffi.Int8>,
ffi.Pointer<ffi.Int8>)>();
/// 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.
int clang_VirtualFileOverlay_setCaseSensitivity(
CXVirtualFileOverlay arg0,
int caseSensitive,
) {
return _clang_VirtualFileOverlay_setCaseSensitivity(
arg0,
caseSensitive,
);
}
late final _clang_VirtualFileOverlay_setCaseSensitivity_ptr = _lookup<
ffi.NativeFunction<
ffi.Int32 Function(CXVirtualFileOverlay,
ffi.Int32)>>('clang_VirtualFileOverlay_setCaseSensitivity');
late final _clang_VirtualFileOverlay_setCaseSensitivity =
_clang_VirtualFileOverlay_setCaseSensitivity_ptr
.asFunction<int Function(CXVirtualFileOverlay, int)>();
/// Write out the CXVirtualFileOverlay object to a char buffer.
int clang_VirtualFileOverlay_writeToBuffer(
CXVirtualFileOverlay arg0,
int options,
ffi.Pointer<ffi.Pointer<ffi.Int8>> out_buffer_ptr,
ffi.Pointer<ffi.Uint32> out_buffer_size,
) {
return _clang_VirtualFileOverlay_writeToBuffer(
arg0,
options,
out_buffer_ptr,
out_buffer_size,
);
}
late final _clang_VirtualFileOverlay_writeToBuffer_ptr = _lookup<
ffi.NativeFunction<
ffi.Int32 Function(
CXVirtualFileOverlay,
ffi.Uint32,
ffi.Pointer<ffi.Pointer<ffi.Int8>>,
ffi.Pointer<ffi.Uint32>)>>(
'clang_VirtualFileOverlay_writeToBuffer');
late final _clang_VirtualFileOverlay_writeToBuffer =
_clang_VirtualFileOverlay_writeToBuffer_ptr.asFunction<
int Function(CXVirtualFileOverlay, int,
ffi.Pointer<ffi.Pointer<ffi.Int8>>, ffi.Pointer<ffi.Uint32>)>();
/// free memory allocated by libclang, such as the buffer returned by
/// CXVirtualFileOverlay() or clang_ModuleMapDescriptor_writeToBuffer().
void clang_free(
ffi.Pointer<ffi.Void> buffer,
) {
return _clang_free(
buffer,
);
}
late final _clang_free_ptr =
_lookup<ffi.NativeFunction<ffi.Void Function(ffi.Pointer<ffi.Void>)>>(
'clang_free');
late final _clang_free =
_clang_free_ptr.asFunction<void Function(ffi.Pointer<ffi.Void>)>();
/// Dispose a CXVirtualFileOverlay object.
void clang_VirtualFileOverlay_dispose(
CXVirtualFileOverlay arg0,
) {
return _clang_VirtualFileOverlay_dispose(
arg0,
);
}
late final _clang_VirtualFileOverlay_dispose_ptr =
_lookup<ffi.NativeFunction<ffi.Void Function(CXVirtualFileOverlay)>>(
'clang_VirtualFileOverlay_dispose');
late final _clang_VirtualFileOverlay_dispose =
_clang_VirtualFileOverlay_dispose_ptr
.asFunction<void Function(CXVirtualFileOverlay)>();
/// Create a CXModuleMapDescriptor object. Must be disposed with
/// clang_ModuleMapDescriptor_dispose().
CXModuleMapDescriptor clang_ModuleMapDescriptor_create(
int options,
) {
return _clang_ModuleMapDescriptor_create(
options,
);
}
late final _clang_ModuleMapDescriptor_create_ptr =
_lookup<ffi.NativeFunction<CXModuleMapDescriptor Function(ffi.Uint32)>>(
'clang_ModuleMapDescriptor_create');
late final _clang_ModuleMapDescriptor_create =
_clang_ModuleMapDescriptor_create_ptr
.asFunction<CXModuleMapDescriptor Function(int)>();
/// Sets the framework module name that the module.map describes.
int clang_ModuleMapDescriptor_setFrameworkModuleName(
CXModuleMapDescriptor arg0,
ffi.Pointer<ffi.Int8> name,
) {
return _clang_ModuleMapDescriptor_setFrameworkModuleName(
arg0,
name,
);
}
late final _clang_ModuleMapDescriptor_setFrameworkModuleName_ptr = _lookup<
ffi.NativeFunction<
ffi.Int32 Function(
CXModuleMapDescriptor, ffi.Pointer<ffi.Int8>)>>(
'clang_ModuleMapDescriptor_setFrameworkModuleName');
late final _clang_ModuleMapDescriptor_setFrameworkModuleName =
_clang_ModuleMapDescriptor_setFrameworkModuleName_ptr.asFunction<
int Function(CXModuleMapDescriptor, ffi.Pointer<ffi.Int8>)>();
/// Sets the umbrealla header name that the module.map describes.
int clang_ModuleMapDescriptor_setUmbrellaHeader(
CXModuleMapDescriptor arg0,
ffi.Pointer<ffi.Int8> name,
) {
return _clang_ModuleMapDescriptor_setUmbrellaHeader(
arg0,
name,
);
}
late final _clang_ModuleMapDescriptor_setUmbrellaHeader_ptr = _lookup<
ffi.NativeFunction<
ffi.Int32 Function(
CXModuleMapDescriptor, ffi.Pointer<ffi.Int8>)>>(
'clang_ModuleMapDescriptor_setUmbrellaHeader');
late final _clang_ModuleMapDescriptor_setUmbrellaHeader =
_clang_ModuleMapDescriptor_setUmbrellaHeader_ptr.asFunction<
int Function(CXModuleMapDescriptor, ffi.Pointer<ffi.Int8>)>();
/// Write out the CXModuleMapDescriptor object to a char buffer.
int clang_ModuleMapDescriptor_writeToBuffer(
CXModuleMapDescriptor arg0,
int options,
ffi.Pointer<ffi.Pointer<ffi.Int8>> out_buffer_ptr,
ffi.Pointer<ffi.Uint32> out_buffer_size,
) {
return _clang_ModuleMapDescriptor_writeToBuffer(
arg0,
options,
out_buffer_ptr,
out_buffer_size,
);
}
late final _clang_ModuleMapDescriptor_writeToBuffer_ptr = _lookup<
ffi.NativeFunction<
ffi.Int32 Function(
CXModuleMapDescriptor,
ffi.Uint32,
ffi.Pointer<ffi.Pointer<ffi.Int8>>,
ffi.Pointer<ffi.Uint32>)>>(
'clang_ModuleMapDescriptor_writeToBuffer');
late final _clang_ModuleMapDescriptor_writeToBuffer =
_clang_ModuleMapDescriptor_writeToBuffer_ptr.asFunction<
int Function(CXModuleMapDescriptor, int,
ffi.Pointer<ffi.Pointer<ffi.Int8>>, ffi.Pointer<ffi.Uint32>)>();
/// Dispose a CXModuleMapDescriptor object.
void clang_ModuleMapDescriptor_dispose(
CXModuleMapDescriptor arg0,
) {
return _clang_ModuleMapDescriptor_dispose(
arg0,
);
}
late final _clang_ModuleMapDescriptor_dispose_ptr =
_lookup<ffi.NativeFunction<ffi.Void Function(CXModuleMapDescriptor)>>(
'clang_ModuleMapDescriptor_dispose');
late final _clang_ModuleMapDescriptor_dispose =
_clang_ModuleMapDescriptor_dispose_ptr
.asFunction<void Function(CXModuleMapDescriptor)>();
/// Provides a shared context for creating translation units.
CXIndex clang_createIndex(
int excludeDeclarationsFromPCH,
int displayDiagnostics,
) {
return _clang_createIndex(
excludeDeclarationsFromPCH,
displayDiagnostics,
);
}
late final _clang_createIndex_ptr =
_lookup<ffi.NativeFunction<CXIndex Function(ffi.Int32, ffi.Int32)>>(
'clang_createIndex');
late final _clang_createIndex =
_clang_createIndex_ptr.asFunction<CXIndex Function(int, int)>();
/// Destroy the given index.
void clang_disposeIndex(
CXIndex index,
) {
return _clang_disposeIndex(
index,
);
}
late final _clang_disposeIndex_ptr =
_lookup<ffi.NativeFunction<ffi.Void Function(CXIndex)>>(
'clang_disposeIndex');
late final _clang_disposeIndex =
_clang_disposeIndex_ptr.asFunction<void Function(CXIndex)>();
/// Sets general options associated with a CXIndex.
void clang_CXIndex_setGlobalOptions(
CXIndex arg0,
int options,
) {
return _clang_CXIndex_setGlobalOptions(
arg0,
options,
);
}
late final _clang_CXIndex_setGlobalOptions_ptr =
_lookup<ffi.NativeFunction<ffi.Void Function(CXIndex, ffi.Uint32)>>(
'clang_CXIndex_setGlobalOptions');
late final _clang_CXIndex_setGlobalOptions =
_clang_CXIndex_setGlobalOptions_ptr
.asFunction<void Function(CXIndex, int)>();
/// Gets the general options associated with a CXIndex.
int clang_CXIndex_getGlobalOptions(
CXIndex arg0,
) {
return _clang_CXIndex_getGlobalOptions(
arg0,
);
}
late final _clang_CXIndex_getGlobalOptions_ptr =
_lookup<ffi.NativeFunction<ffi.Uint32 Function(CXIndex)>>(
'clang_CXIndex_getGlobalOptions');
late final _clang_CXIndex_getGlobalOptions =
_clang_CXIndex_getGlobalOptions_ptr.asFunction<int Function(CXIndex)>();
/// Sets the invocation emission path option in a CXIndex.
void clang_CXIndex_setInvocationEmissionPathOption(
CXIndex arg0,
ffi.Pointer<ffi.Int8> Path,
) {
return _clang_CXIndex_setInvocationEmissionPathOption(
arg0,
Path,
);
}
late final _clang_CXIndex_setInvocationEmissionPathOption_ptr = _lookup<
ffi.NativeFunction<
ffi.Void Function(CXIndex, ffi.Pointer<ffi.Int8>)>>(
'clang_CXIndex_setInvocationEmissionPathOption');
late final _clang_CXIndex_setInvocationEmissionPathOption =
_clang_CXIndex_setInvocationEmissionPathOption_ptr
.asFunction<void Function(CXIndex, ffi.Pointer<ffi.Int8>)>();
/// Retrieve the complete file and path name of the given file.
CXString clang_getFileName(
CXFile SFile,
) {
return _clang_getFileName(
SFile,
);
}
late final _clang_getFileName_ptr =
_lookup<ffi.NativeFunction<CXString Function(CXFile)>>(
'clang_getFileName');
late final _clang_getFileName =
_clang_getFileName_ptr.asFunction<CXString Function(CXFile)>();
/// Retrieve the last modification time of the given file.
int clang_getFileTime(
CXFile SFile,
) {
return _clang_getFileTime(
SFile,
);
}
late final _clang_getFileTime_ptr =
_lookup<ffi.NativeFunction<ffi.Int64 Function(CXFile)>>(
'clang_getFileTime');
late final _clang_getFileTime =
_clang_getFileTime_ptr.asFunction<int Function(CXFile)>();
/// Retrieve the unique ID for the given file.
int clang_getFileUniqueID(
CXFile file,
ffi.Pointer<CXFileUniqueID> outID,
) {
return _clang_getFileUniqueID(
file,
outID,
);
}
late final _clang_getFileUniqueID_ptr = _lookup<
ffi.NativeFunction<
ffi.Int32 Function(
CXFile, ffi.Pointer<CXFileUniqueID>)>>('clang_getFileUniqueID');
late final _clang_getFileUniqueID = _clang_getFileUniqueID_ptr
.asFunction<int Function(CXFile, ffi.Pointer<CXFileUniqueID>)>();
/// Determine whether the given header is guarded against multiple inclusions,
/// either with the conventional #ifndef/#define/#endif macro guards or with
/// #pragma once.
int clang_isFileMultipleIncludeGuarded(
CXTranslationUnit tu,
CXFile file,
) {
return _clang_isFileMultipleIncludeGuarded(
tu,
file,
);
}
late final _clang_isFileMultipleIncludeGuarded_ptr = _lookup<
ffi.NativeFunction<ffi.Uint32 Function(CXTranslationUnit, CXFile)>>(
'clang_isFileMultipleIncludeGuarded');
late final _clang_isFileMultipleIncludeGuarded =
_clang_isFileMultipleIncludeGuarded_ptr
.asFunction<int Function(CXTranslationUnit, CXFile)>();
/// Retrieve a file handle within the given translation unit.
CXFile clang_getFile(
CXTranslationUnit tu,
ffi.Pointer<ffi.Int8> file_name,
) {
return _clang_getFile(
tu,
file_name,
);
}
late final _clang_getFile_ptr = _lookup<
ffi.NativeFunction<
CXFile Function(
CXTranslationUnit, ffi.Pointer<ffi.Int8>)>>('clang_getFile');
late final _clang_getFile = _clang_getFile_ptr
.asFunction<CXFile Function(CXTranslationUnit, ffi.Pointer<ffi.Int8>)>();
/// Retrieve the buffer associated with the given file.
ffi.Pointer<ffi.Int8> clang_getFileContents(
CXTranslationUnit tu,
CXFile file,
ffi.Pointer<ffi.IntPtr> size,
) {
return _clang_getFileContents(
tu,
file,
size,
);
}
late final _clang_getFileContents_ptr = _lookup<
ffi.NativeFunction<
ffi.Pointer<ffi.Int8> Function(CXTranslationUnit, CXFile,
ffi.Pointer<ffi.IntPtr>)>>('clang_getFileContents');
late final _clang_getFileContents = _clang_getFileContents_ptr.asFunction<
ffi.Pointer<ffi.Int8> Function(
CXTranslationUnit, CXFile, ffi.Pointer<ffi.IntPtr>)>();
/// Returns non-zero if the file1 and file2 point to the same file, or they
/// are both NULL.
int clang_File_isEqual(
CXFile file1,
CXFile file2,
) {
return _clang_File_isEqual(
file1,
file2,
);
}
late final _clang_File_isEqual_ptr =
_lookup<ffi.NativeFunction<ffi.Int32 Function(CXFile, CXFile)>>(
'clang_File_isEqual');
late final _clang_File_isEqual =
_clang_File_isEqual_ptr.asFunction<int Function(CXFile, CXFile)>();
/// Returns the real path name of file.
CXString clang_File_tryGetRealPathName(
CXFile file,
) {
return _clang_File_tryGetRealPathName(
file,
);
}
late final _clang_File_tryGetRealPathName_ptr =
_lookup<ffi.NativeFunction<CXString Function(CXFile)>>(
'clang_File_tryGetRealPathName');
late final _clang_File_tryGetRealPathName = _clang_File_tryGetRealPathName_ptr
.asFunction<CXString Function(CXFile)>();
/// Retrieve a NULL (invalid) source location.
CXSourceLocation clang_getNullLocation() {
return _clang_getNullLocation();
}
late final _clang_getNullLocation_ptr =
_lookup<ffi.NativeFunction<CXSourceLocation Function()>>(
'clang_getNullLocation');
late final _clang_getNullLocation =
_clang_getNullLocation_ptr.asFunction<CXSourceLocation Function()>();
/// Determine whether two source locations, which must refer into the same
/// translation unit, refer to exactly the same point in the source code.
int clang_equalLocations(
CXSourceLocation loc1,
CXSourceLocation loc2,
) {
return _clang_equalLocations(
loc1,
loc2,
);
}
late final _clang_equalLocations_ptr = _lookup<
ffi.NativeFunction<
ffi.Uint32 Function(
CXSourceLocation, CXSourceLocation)>>('clang_equalLocations');
late final _clang_equalLocations = _clang_equalLocations_ptr
.asFunction<int Function(CXSourceLocation, CXSourceLocation)>();
/// Retrieves the source location associated with a given file/line/column in
/// a particular translation unit.
CXSourceLocation clang_getLocation(
CXTranslationUnit tu,
CXFile file,
int line,
int column,
) {
return _clang_getLocation(
tu,
file,
line,
column,
);
}
late final _clang_getLocation_ptr = _lookup<
ffi.NativeFunction<
CXSourceLocation Function(CXTranslationUnit, CXFile, ffi.Uint32,
ffi.Uint32)>>('clang_getLocation');
late final _clang_getLocation = _clang_getLocation_ptr.asFunction<
CXSourceLocation Function(CXTranslationUnit, CXFile, int, int)>();
/// Retrieves the source location associated with a given character offset in
/// a particular translation unit.
CXSourceLocation clang_getLocationForOffset(
CXTranslationUnit tu,
CXFile file,
int offset,
) {
return _clang_getLocationForOffset(
tu,
file,
offset,
);
}
late final _clang_getLocationForOffset_ptr = _lookup<
ffi.NativeFunction<
CXSourceLocation Function(CXTranslationUnit, CXFile,
ffi.Uint32)>>('clang_getLocationForOffset');
late final _clang_getLocationForOffset = _clang_getLocationForOffset_ptr
.asFunction<CXSourceLocation Function(CXTranslationUnit, CXFile, int)>();
/// Returns non-zero if the given source location is in a system header.
int clang_Location_isInSystemHeader(
CXSourceLocation location,
) {
return _clang_Location_isInSystemHeader(
location,
);
}
late final _clang_Location_isInSystemHeader_ptr =
_lookup<ffi.NativeFunction<ffi.Int32 Function(CXSourceLocation)>>(
'clang_Location_isInSystemHeader');
late final _clang_Location_isInSystemHeader =
_clang_Location_isInSystemHeader_ptr
.asFunction<int Function(CXSourceLocation)>();
/// Returns non-zero if the given source location is in the main file of the
/// corresponding translation unit.
int clang_Location_isFromMainFile(
CXSourceLocation location,
) {
return _clang_Location_isFromMainFile(
location,
);
}
late final _clang_Location_isFromMainFile_ptr =
_lookup<ffi.NativeFunction<ffi.Int32 Function(CXSourceLocation)>>(
'clang_Location_isFromMainFile');
late final _clang_Location_isFromMainFile = _clang_Location_isFromMainFile_ptr
.asFunction<int Function(CXSourceLocation)>();
/// Retrieve a NULL (invalid) source range.
CXSourceRange clang_getNullRange() {
return _clang_getNullRange();
}
late final _clang_getNullRange_ptr =
_lookup<ffi.NativeFunction<CXSourceRange Function()>>(
'clang_getNullRange');
late final _clang_getNullRange =
_clang_getNullRange_ptr.asFunction<CXSourceRange Function()>();
/// Retrieve a source range given the beginning and ending source locations.
CXSourceRange clang_getRange(
CXSourceLocation begin,
CXSourceLocation end,
) {
return _clang_getRange(
begin,
end,
);
}
late final _clang_getRange_ptr = _lookup<
ffi.NativeFunction<
CXSourceRange Function(
CXSourceLocation, CXSourceLocation)>>('clang_getRange');
late final _clang_getRange = _clang_getRange_ptr
.asFunction<CXSourceRange Function(CXSourceLocation, CXSourceLocation)>();
/// Determine whether two ranges are equivalent.
int clang_equalRanges(
CXSourceRange range1,
CXSourceRange range2,
) {
return _clang_equalRanges(
range1,
range2,
);
}
late final _clang_equalRanges_ptr = _lookup<
ffi.NativeFunction<
ffi.Uint32 Function(
CXSourceRange, CXSourceRange)>>('clang_equalRanges');
late final _clang_equalRanges = _clang_equalRanges_ptr
.asFunction<int Function(CXSourceRange, CXSourceRange)>();
/// Returns non-zero if range is null.
int clang_Range_isNull(
CXSourceRange range,
) {
return _clang_Range_isNull(
range,
);
}
late final _clang_Range_isNull_ptr =
_lookup<ffi.NativeFunction<ffi.Int32 Function(CXSourceRange)>>(
'clang_Range_isNull');
late final _clang_Range_isNull =
_clang_Range_isNull_ptr.asFunction<int Function(CXSourceRange)>();
/// Retrieve the file, line, column, and offset represented by the given
/// source location.
void clang_getExpansionLocation(
CXSourceLocation location,
ffi.Pointer<CXFile> file,
ffi.Pointer<ffi.Uint32> line,
ffi.Pointer<ffi.Uint32> column,
ffi.Pointer<ffi.Uint32> offset,
) {
return _clang_getExpansionLocation(
location,
file,
line,
column,
offset,
);
}
late final _clang_getExpansionLocation_ptr = _lookup<
ffi.NativeFunction<
ffi.Void Function(
CXSourceLocation,
ffi.Pointer<CXFile>,
ffi.Pointer<ffi.Uint32>,
ffi.Pointer<ffi.Uint32>,
ffi.Pointer<ffi.Uint32>)>>('clang_getExpansionLocation');
late final _clang_getExpansionLocation =
_clang_getExpansionLocation_ptr.asFunction<
void Function(
CXSourceLocation,
ffi.Pointer<CXFile>,
ffi.Pointer<ffi.Uint32>,
ffi.Pointer<ffi.Uint32>,
ffi.Pointer<ffi.Uint32>)>();
/// Retrieve the file, line and column represented by the given source
/// location, as specified in a # line directive.
void clang_getPresumedLocation(
CXSourceLocation location,
ffi.Pointer<CXString> filename,
ffi.Pointer<ffi.Uint32> line,
ffi.Pointer<ffi.Uint32> column,
) {
return _clang_getPresumedLocation(
location,
filename,
line,
column,
);
}
late final _clang_getPresumedLocation_ptr = _lookup<
ffi.NativeFunction<
ffi.Void Function(
CXSourceLocation,
ffi.Pointer<CXString>,
ffi.Pointer<ffi.Uint32>,
ffi.Pointer<ffi.Uint32>)>>('clang_getPresumedLocation');
late final _clang_getPresumedLocation =
_clang_getPresumedLocation_ptr.asFunction<
void Function(CXSourceLocation, ffi.Pointer<CXString>,
ffi.Pointer<ffi.Uint32>, ffi.Pointer<ffi.Uint32>)>();
/// Legacy API to retrieve the file, line, column, and offset represented by
/// the given source location.
void clang_getInstantiationLocation(
CXSourceLocation location,
ffi.Pointer<CXFile> file,
ffi.Pointer<ffi.Uint32> line,
ffi.Pointer<ffi.Uint32> column,
ffi.Pointer<ffi.Uint32> offset,
) {
return _clang_getInstantiationLocation(
location,
file,
line,
column,
offset,
);
}
late final _clang_getInstantiationLocation_ptr = _lookup<
ffi.NativeFunction<
ffi.Void Function(
CXSourceLocation,
ffi.Pointer<CXFile>,
ffi.Pointer<ffi.Uint32>,
ffi.Pointer<ffi.Uint32>,
ffi.Pointer<ffi.Uint32>)>>('clang_getInstantiationLocation');
late final _clang_getInstantiationLocation =
_clang_getInstantiationLocation_ptr.asFunction<
void Function(
CXSourceLocation,
ffi.Pointer<CXFile>,
ffi.Pointer<ffi.Uint32>,
ffi.Pointer<ffi.Uint32>,
ffi.Pointer<ffi.Uint32>)>();
/// Retrieve the file, line, column, and offset represented by the given
/// source location.
void clang_getSpellingLocation(
CXSourceLocation location,
ffi.Pointer<CXFile> file,
ffi.Pointer<ffi.Uint32> line,
ffi.Pointer<ffi.Uint32> column,
ffi.Pointer<ffi.Uint32> offset,
) {
return _clang_getSpellingLocation(
location,
file,
line,
column,
offset,
);
}
late final _clang_getSpellingLocation_ptr = _lookup<
ffi.NativeFunction<
ffi.Void Function(
CXSourceLocation,
ffi.Pointer<CXFile>,
ffi.Pointer<ffi.Uint32>,
ffi.Pointer<ffi.Uint32>,
ffi.Pointer<ffi.Uint32>)>>('clang_getSpellingLocation');
late final _clang_getSpellingLocation =
_clang_getSpellingLocation_ptr.asFunction<
void Function(
CXSourceLocation,
ffi.Pointer<CXFile>,
ffi.Pointer<ffi.Uint32>,
ffi.Pointer<ffi.Uint32>,
ffi.Pointer<ffi.Uint32>)>();
/// Retrieve the file, line, column, and offset represented by the given
/// source location.
void clang_getFileLocation(
CXSourceLocation location,
ffi.Pointer<CXFile> file,
ffi.Pointer<ffi.Uint32> line,
ffi.Pointer<ffi.Uint32> column,
ffi.Pointer<ffi.Uint32> offset,
) {
return _clang_getFileLocation(
location,
file,
line,
column,
offset,
);
}
late final _clang_getFileLocation_ptr = _lookup<
ffi.NativeFunction<
ffi.Void Function(
CXSourceLocation,
ffi.Pointer<CXFile>,
ffi.Pointer<ffi.Uint32>,
ffi.Pointer<ffi.Uint32>,
ffi.Pointer<ffi.Uint32>)>>('clang_getFileLocation');
late final _clang_getFileLocation = _clang_getFileLocation_ptr.asFunction<
void Function(
CXSourceLocation,
ffi.Pointer<CXFile>,
ffi.Pointer<ffi.Uint32>,
ffi.Pointer<ffi.Uint32>,
ffi.Pointer<ffi.Uint32>)>();
/// Retrieve a source location representing the first character within a
/// source range.
CXSourceLocation clang_getRangeStart(
CXSourceRange range,
) {
return _clang_getRangeStart(
range,
);
}
late final _clang_getRangeStart_ptr =
_lookup<ffi.NativeFunction<CXSourceLocation Function(CXSourceRange)>>(
'clang_getRangeStart');
late final _clang_getRangeStart = _clang_getRangeStart_ptr
.asFunction<CXSourceLocation Function(CXSourceRange)>();
/// Retrieve a source location representing the last character within a source
/// range.
CXSourceLocation clang_getRangeEnd(
CXSourceRange range,
) {
return _clang_getRangeEnd(
range,
);
}
late final _clang_getRangeEnd_ptr =
_lookup<ffi.NativeFunction<CXSourceLocation Function(CXSourceRange)>>(
'clang_getRangeEnd');
late final _clang_getRangeEnd = _clang_getRangeEnd_ptr
.asFunction<CXSourceLocation Function(CXSourceRange)>();
/// Retrieve all ranges that were skipped by the preprocessor.
ffi.Pointer<CXSourceRangeList> clang_getSkippedRanges(
CXTranslationUnit tu,
CXFile file,
) {
return _clang_getSkippedRanges(
tu,
file,
);
}
late final _clang_getSkippedRanges_ptr = _lookup<
ffi.NativeFunction<
ffi.Pointer<CXSourceRangeList> Function(
CXTranslationUnit, CXFile)>>('clang_getSkippedRanges');
late final _clang_getSkippedRanges = _clang_getSkippedRanges_ptr.asFunction<
ffi.Pointer<CXSourceRangeList> Function(CXTranslationUnit, CXFile)>();
/// Retrieve all ranges from all files that were skipped by the preprocessor.
ffi.Pointer<CXSourceRangeList> clang_getAllSkippedRanges(
CXTranslationUnit tu,
) {
return _clang_getAllSkippedRanges(
tu,
);
}
late final _clang_getAllSkippedRanges_ptr = _lookup<
ffi.NativeFunction<
ffi.Pointer<CXSourceRangeList> Function(
CXTranslationUnit)>>('clang_getAllSkippedRanges');
late final _clang_getAllSkippedRanges = _clang_getAllSkippedRanges_ptr
.asFunction<ffi.Pointer<CXSourceRangeList> Function(CXTranslationUnit)>();
/// Destroy the given CXSourceRangeList.
void clang_disposeSourceRangeList(
ffi.Pointer<CXSourceRangeList> ranges,
) {
return _clang_disposeSourceRangeList(
ranges,
);
}
late final _clang_disposeSourceRangeList_ptr = _lookup<
ffi.NativeFunction<
ffi.Void Function(
ffi.Pointer<CXSourceRangeList>)>>('clang_disposeSourceRangeList');
late final _clang_disposeSourceRangeList = _clang_disposeSourceRangeList_ptr
.asFunction<void Function(ffi.Pointer<CXSourceRangeList>)>();
/// Determine the number of diagnostics in a CXDiagnosticSet.
int clang_getNumDiagnosticsInSet(
CXDiagnosticSet Diags,
) {
return _clang_getNumDiagnosticsInSet(
Diags,
);
}
late final _clang_getNumDiagnosticsInSet_ptr =
_lookup<ffi.NativeFunction<ffi.Uint32 Function(CXDiagnosticSet)>>(
'clang_getNumDiagnosticsInSet');
late final _clang_getNumDiagnosticsInSet = _clang_getNumDiagnosticsInSet_ptr
.asFunction<int Function(CXDiagnosticSet)>();
/// Retrieve a diagnostic associated with the given CXDiagnosticSet.
CXDiagnostic clang_getDiagnosticInSet(
CXDiagnosticSet Diags,
int Index,
) {
return _clang_getDiagnosticInSet(
Diags,
Index,
);
}
late final _clang_getDiagnosticInSet_ptr = _lookup<
ffi.NativeFunction<
CXDiagnostic Function(
CXDiagnosticSet, ffi.Uint32)>>('clang_getDiagnosticInSet');
late final _clang_getDiagnosticInSet = _clang_getDiagnosticInSet_ptr
.asFunction<CXDiagnostic Function(CXDiagnosticSet, int)>();
/// Deserialize a set of diagnostics from a Clang diagnostics bitcode file.
CXDiagnosticSet clang_loadDiagnostics(
ffi.Pointer<ffi.Int8> file,
ffi.Pointer<ffi.Int32> error,
ffi.Pointer<CXString> errorString,
) {
return _clang_loadDiagnostics(
file,
error,
errorString,
);
}
late final _clang_loadDiagnostics_ptr = _lookup<
ffi.NativeFunction<
CXDiagnosticSet Function(
ffi.Pointer<ffi.Int8>,
ffi.Pointer<ffi.Int32>,
ffi.Pointer<CXString>)>>('clang_loadDiagnostics');
late final _clang_loadDiagnostics = _clang_loadDiagnostics_ptr.asFunction<
CXDiagnosticSet Function(ffi.Pointer<ffi.Int8>, ffi.Pointer<ffi.Int32>,
ffi.Pointer<CXString>)>();
/// Release a CXDiagnosticSet and all of its contained diagnostics.
void clang_disposeDiagnosticSet(
CXDiagnosticSet Diags,
) {
return _clang_disposeDiagnosticSet(
Diags,
);
}
late final _clang_disposeDiagnosticSet_ptr =
_lookup<ffi.NativeFunction<ffi.Void Function(CXDiagnosticSet)>>(
'clang_disposeDiagnosticSet');
late final _clang_disposeDiagnosticSet = _clang_disposeDiagnosticSet_ptr
.asFunction<void Function(CXDiagnosticSet)>();
/// Retrieve the child diagnostics of a CXDiagnostic.
CXDiagnosticSet clang_getChildDiagnostics(
CXDiagnostic D,
) {
return _clang_getChildDiagnostics(
D,
);
}
late final _clang_getChildDiagnostics_ptr =
_lookup<ffi.NativeFunction<CXDiagnosticSet Function(CXDiagnostic)>>(
'clang_getChildDiagnostics');
late final _clang_getChildDiagnostics = _clang_getChildDiagnostics_ptr
.asFunction<CXDiagnosticSet Function(CXDiagnostic)>();
/// Determine the number of diagnostics produced for the given translation
/// unit.
int clang_getNumDiagnostics(
CXTranslationUnit Unit,
) {
return _clang_getNumDiagnostics(
Unit,
);
}
late final _clang_getNumDiagnostics_ptr =
_lookup<ffi.NativeFunction<ffi.Uint32 Function(CXTranslationUnit)>>(
'clang_getNumDiagnostics');
late final _clang_getNumDiagnostics = _clang_getNumDiagnostics_ptr
.asFunction<int Function(CXTranslationUnit)>();
/// Retrieve a diagnostic associated with the given translation unit.
CXDiagnostic clang_getDiagnostic(
CXTranslationUnit Unit,
int Index,
) {
return _clang_getDiagnostic(
Unit,
Index,
);
}
late final _clang_getDiagnostic_ptr = _lookup<
ffi.NativeFunction<
CXDiagnostic Function(
CXTranslationUnit, ffi.Uint32)>>('clang_getDiagnostic');
late final _clang_getDiagnostic = _clang_getDiagnostic_ptr
.asFunction<CXDiagnostic Function(CXTranslationUnit, int)>();
/// Retrieve the complete set of diagnostics associated with a translation
/// unit.
CXDiagnosticSet clang_getDiagnosticSetFromTU(
CXTranslationUnit Unit,
) {
return _clang_getDiagnosticSetFromTU(
Unit,
);
}
late final _clang_getDiagnosticSetFromTU_ptr =
_lookup<ffi.NativeFunction<CXDiagnosticSet Function(CXTranslationUnit)>>(
'clang_getDiagnosticSetFromTU');
late final _clang_getDiagnosticSetFromTU = _clang_getDiagnosticSetFromTU_ptr
.asFunction<CXDiagnosticSet Function(CXTranslationUnit)>();
/// Destroy a diagnostic.
void clang_disposeDiagnostic(
CXDiagnostic Diagnostic,
) {
return _clang_disposeDiagnostic(
Diagnostic,
);
}
late final _clang_disposeDiagnostic_ptr =
_lookup<ffi.NativeFunction<ffi.Void Function(CXDiagnostic)>>(
'clang_disposeDiagnostic');
late final _clang_disposeDiagnostic =
_clang_disposeDiagnostic_ptr.asFunction<void Function(CXDiagnostic)>();
/// Format the given diagnostic in a manner that is suitable for display.
CXString clang_formatDiagnostic(
CXDiagnostic Diagnostic,
int Options,
) {
return _clang_formatDiagnostic(
Diagnostic,
Options,
);
}
late final _clang_formatDiagnostic_ptr =
_lookup<ffi.NativeFunction<CXString Function(CXDiagnostic, ffi.Uint32)>>(
'clang_formatDiagnostic');
late final _clang_formatDiagnostic = _clang_formatDiagnostic_ptr
.asFunction<CXString Function(CXDiagnostic, int)>();
/// Retrieve the set of display options most similar to the default behavior
/// of the clang compiler.
int clang_defaultDiagnosticDisplayOptions() {
return _clang_defaultDiagnosticDisplayOptions();
}
late final _clang_defaultDiagnosticDisplayOptions_ptr =
_lookup<ffi.NativeFunction<ffi.Uint32 Function()>>(
'clang_defaultDiagnosticDisplayOptions');
late final _clang_defaultDiagnosticDisplayOptions =
_clang_defaultDiagnosticDisplayOptions_ptr.asFunction<int Function()>();
/// Determine the severity of the given diagnostic.
int clang_getDiagnosticSeverity(
CXDiagnostic arg0,
) {
return _clang_getDiagnosticSeverity(
arg0,
);
}
late final _clang_getDiagnosticSeverity_ptr =
_lookup<ffi.NativeFunction<ffi.Int32 Function(CXDiagnostic)>>(
'clang_getDiagnosticSeverity');
late final _clang_getDiagnosticSeverity =
_clang_getDiagnosticSeverity_ptr.asFunction<int Function(CXDiagnostic)>();
/// Retrieve the source location of the given diagnostic.
CXSourceLocation clang_getDiagnosticLocation(
CXDiagnostic arg0,
) {
return _clang_getDiagnosticLocation(
arg0,
);
}
late final _clang_getDiagnosticLocation_ptr =
_lookup<ffi.NativeFunction<CXSourceLocation Function(CXDiagnostic)>>(
'clang_getDiagnosticLocation');
late final _clang_getDiagnosticLocation = _clang_getDiagnosticLocation_ptr
.asFunction<CXSourceLocation Function(CXDiagnostic)>();
/// Retrieve the text of the given diagnostic.
CXString clang_getDiagnosticSpelling(
CXDiagnostic arg0,
) {
return _clang_getDiagnosticSpelling(
arg0,
);
}
late final _clang_getDiagnosticSpelling_ptr =
_lookup<ffi.NativeFunction<CXString Function(CXDiagnostic)>>(
'clang_getDiagnosticSpelling');
late final _clang_getDiagnosticSpelling = _clang_getDiagnosticSpelling_ptr
.asFunction<CXString Function(CXDiagnostic)>();
/// Retrieve the name of the command-line option that enabled this diagnostic.
CXString clang_getDiagnosticOption(
CXDiagnostic Diag,
ffi.Pointer<CXString> Disable,
) {
return _clang_getDiagnosticOption(
Diag,
Disable,
);
}
late final _clang_getDiagnosticOption_ptr = _lookup<
ffi.NativeFunction<
CXString Function(CXDiagnostic,
ffi.Pointer<CXString>)>>('clang_getDiagnosticOption');
late final _clang_getDiagnosticOption = _clang_getDiagnosticOption_ptr
.asFunction<CXString Function(CXDiagnostic, ffi.Pointer<CXString>)>();
/// Retrieve the category number for this diagnostic.
int clang_getDiagnosticCategory(
CXDiagnostic arg0,
) {
return _clang_getDiagnosticCategory(
arg0,
);
}
late final _clang_getDiagnosticCategory_ptr =
_lookup<ffi.NativeFunction<ffi.Uint32 Function(CXDiagnostic)>>(
'clang_getDiagnosticCategory');
late final _clang_getDiagnosticCategory =
_clang_getDiagnosticCategory_ptr.asFunction<int Function(CXDiagnostic)>();
/// Retrieve the name of a particular diagnostic category. This is now
/// deprecated. Use clang_getDiagnosticCategoryText() instead.
CXString clang_getDiagnosticCategoryName(
int Category,
) {
return _clang_getDiagnosticCategoryName(
Category,
);
}
late final _clang_getDiagnosticCategoryName_ptr =
_lookup<ffi.NativeFunction<CXString Function(ffi.Uint32)>>(
'clang_getDiagnosticCategoryName');
late final _clang_getDiagnosticCategoryName =
_clang_getDiagnosticCategoryName_ptr.asFunction<CXString Function(int)>();
/// Retrieve the diagnostic category text for a given diagnostic.
CXString clang_getDiagnosticCategoryText(
CXDiagnostic arg0,
) {
return _clang_getDiagnosticCategoryText(
arg0,
);
}
late final _clang_getDiagnosticCategoryText_ptr =
_lookup<ffi.NativeFunction<CXString Function(CXDiagnostic)>>(
'clang_getDiagnosticCategoryText');
late final _clang_getDiagnosticCategoryText =
_clang_getDiagnosticCategoryText_ptr
.asFunction<CXString Function(CXDiagnostic)>();
/// Determine the number of source ranges associated with the given
/// diagnostic.
int clang_getDiagnosticNumRanges(
CXDiagnostic arg0,
) {
return _clang_getDiagnosticNumRanges(
arg0,
);
}
late final _clang_getDiagnosticNumRanges_ptr =
_lookup<ffi.NativeFunction<ffi.Uint32 Function(CXDiagnostic)>>(
'clang_getDiagnosticNumRanges');
late final _clang_getDiagnosticNumRanges = _clang_getDiagnosticNumRanges_ptr
.asFunction<int Function(CXDiagnostic)>();
/// Retrieve a source range associated with the diagnostic.
CXSourceRange clang_getDiagnosticRange(
CXDiagnostic Diagnostic,
int Range,
) {
return _clang_getDiagnosticRange(
Diagnostic,
Range,
);
}
late final _clang_getDiagnosticRange_ptr = _lookup<
ffi.NativeFunction<CXSourceRange Function(CXDiagnostic, ffi.Uint32)>>(
'clang_getDiagnosticRange');
late final _clang_getDiagnosticRange = _clang_getDiagnosticRange_ptr
.asFunction<CXSourceRange Function(CXDiagnostic, int)>();
/// Determine the number of fix-it hints associated with the given diagnostic.
int clang_getDiagnosticNumFixIts(
CXDiagnostic Diagnostic,
) {
return _clang_getDiagnosticNumFixIts(
Diagnostic,
);
}
late final _clang_getDiagnosticNumFixIts_ptr =
_lookup<ffi.NativeFunction<ffi.Uint32 Function(CXDiagnostic)>>(
'clang_getDiagnosticNumFixIts');
late final _clang_getDiagnosticNumFixIts = _clang_getDiagnosticNumFixIts_ptr
.asFunction<int Function(CXDiagnostic)>();
/// Retrieve the replacement information for a given fix-it.
CXString clang_getDiagnosticFixIt(
CXDiagnostic Diagnostic,
int FixIt,
ffi.Pointer<CXSourceRange> ReplacementRange,
) {
return _clang_getDiagnosticFixIt(
Diagnostic,
FixIt,
ReplacementRange,
);
}
late final _clang_getDiagnosticFixIt_ptr = _lookup<
ffi.NativeFunction<
CXString Function(CXDiagnostic, ffi.Uint32,
ffi.Pointer<CXSourceRange>)>>('clang_getDiagnosticFixIt');
late final _clang_getDiagnosticFixIt =
_clang_getDiagnosticFixIt_ptr.asFunction<
CXString Function(CXDiagnostic, int, ffi.Pointer<CXSourceRange>)>();
/// Get the original translation unit source file name.
CXString clang_getTranslationUnitSpelling(
CXTranslationUnit CTUnit,
) {
return _clang_getTranslationUnitSpelling(
CTUnit,
);
}
late final _clang_getTranslationUnitSpelling_ptr =
_lookup<ffi.NativeFunction<CXString Function(CXTranslationUnit)>>(
'clang_getTranslationUnitSpelling');
late final _clang_getTranslationUnitSpelling =
_clang_getTranslationUnitSpelling_ptr
.asFunction<CXString Function(CXTranslationUnit)>();
/// Return the CXTranslationUnit for a given source file and the provided
/// command line arguments one would pass to the compiler.
CXTranslationUnit clang_createTranslationUnitFromSourceFile(
CXIndex CIdx,
ffi.Pointer<ffi.Int8> source_filename,
int num_clang_command_line_args,
ffi.Pointer<ffi.Pointer<ffi.Int8>> clang_command_line_args,
int num_unsaved_files,
ffi.Pointer<CXUnsavedFile> unsaved_files,
) {
return _clang_createTranslationUnitFromSourceFile(
CIdx,
source_filename,
num_clang_command_line_args,
clang_command_line_args,
num_unsaved_files,
unsaved_files,
);
}
late final _clang_createTranslationUnitFromSourceFile_ptr = _lookup<
ffi.NativeFunction<
CXTranslationUnit Function(
CXIndex,
ffi.Pointer<ffi.Int8>,
ffi.Int32,
ffi.Pointer<ffi.Pointer<ffi.Int8>>,
ffi.Uint32,
ffi.Pointer<CXUnsavedFile>)>>(
'clang_createTranslationUnitFromSourceFile');
late final _clang_createTranslationUnitFromSourceFile =
_clang_createTranslationUnitFromSourceFile_ptr.asFunction<
CXTranslationUnit Function(
CXIndex,
ffi.Pointer<ffi.Int8>,
int,
ffi.Pointer<ffi.Pointer<ffi.Int8>>,
int,
ffi.Pointer<CXUnsavedFile>)>();
/// 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.
CXTranslationUnit clang_createTranslationUnit(
CXIndex CIdx,
ffi.Pointer<ffi.Int8> ast_filename,
) {
return _clang_createTranslationUnit(
CIdx,
ast_filename,
);
}
late final _clang_createTranslationUnit_ptr = _lookup<
ffi.NativeFunction<
CXTranslationUnit Function(
CXIndex, ffi.Pointer<ffi.Int8>)>>('clang_createTranslationUnit');
late final _clang_createTranslationUnit = _clang_createTranslationUnit_ptr
.asFunction<CXTranslationUnit Function(CXIndex, ffi.Pointer<ffi.Int8>)>();
/// Create a translation unit from an AST file ( -emit-ast).
int clang_createTranslationUnit2(
CXIndex CIdx,
ffi.Pointer<ffi.Int8> ast_filename,
ffi.Pointer<CXTranslationUnit> out_TU,
) {
return _clang_createTranslationUnit2(
CIdx,
ast_filename,
out_TU,
);
}
late final _clang_createTranslationUnit2_ptr = _lookup<
ffi.NativeFunction<
ffi.Int32 Function(CXIndex, ffi.Pointer<ffi.Int8>,
ffi.Pointer<CXTranslationUnit>)>>('clang_createTranslationUnit2');
late final _clang_createTranslationUnit2 =
_clang_createTranslationUnit2_ptr.asFunction<
int Function(CXIndex, ffi.Pointer<ffi.Int8>,
ffi.Pointer<CXTranslationUnit>)>();
/// Returns the set of flags that is suitable for parsing a translation unit
/// that is being edited.
int clang_defaultEditingTranslationUnitOptions() {
return _clang_defaultEditingTranslationUnitOptions();
}
late final _clang_defaultEditingTranslationUnitOptions_ptr =
_lookup<ffi.NativeFunction<ffi.Uint32 Function()>>(
'clang_defaultEditingTranslationUnitOptions');
late final _clang_defaultEditingTranslationUnitOptions =
_clang_defaultEditingTranslationUnitOptions_ptr
.asFunction<int Function()>();
/// 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.
CXTranslationUnit clang_parseTranslationUnit(
CXIndex CIdx,
ffi.Pointer<ffi.Int8> source_filename,
ffi.Pointer<ffi.Pointer<ffi.Int8>> command_line_args,
int num_command_line_args,
ffi.Pointer<CXUnsavedFile> unsaved_files,
int num_unsaved_files,
int options,
) {
return _clang_parseTranslationUnit(
CIdx,
source_filename,
command_line_args,
num_command_line_args,
unsaved_files,
num_unsaved_files,
options,
);
}
late final _clang_parseTranslationUnit_ptr = _lookup<
ffi.NativeFunction<
CXTranslationUnit Function(
CXIndex,
ffi.Pointer<ffi.Int8>,
ffi.Pointer<ffi.Pointer<ffi.Int8>>,
ffi.Int32,
ffi.Pointer<CXUnsavedFile>,
ffi.Uint32,
ffi.Uint32)>>('clang_parseTranslationUnit');
late final _clang_parseTranslationUnit =
_clang_parseTranslationUnit_ptr.asFunction<
CXTranslationUnit Function(
CXIndex,
ffi.Pointer<ffi.Int8>,
ffi.Pointer<ffi.Pointer<ffi.Int8>>,
int,
ffi.Pointer<CXUnsavedFile>,
int,
int)>();
/// Parse the given source file and the translation unit corresponding to that
/// file.
int clang_parseTranslationUnit2(
CXIndex CIdx,
ffi.Pointer<ffi.Int8> source_filename,
ffi.Pointer<ffi.Pointer<ffi.Int8>> command_line_args,
int num_command_line_args,
ffi.Pointer<CXUnsavedFile> unsaved_files,
int num_unsaved_files,
int options,
ffi.Pointer<CXTranslationUnit> out_TU,
) {
return _clang_parseTranslationUnit2(
CIdx,
source_filename,
command_line_args,
num_command_line_args,
unsaved_files,
num_unsaved_files,
options,
out_TU,
);
}
late final _clang_parseTranslationUnit2_ptr = _lookup<
ffi.NativeFunction<
ffi.Int32 Function(
CXIndex,
ffi.Pointer<ffi.Int8>,
ffi.Pointer<ffi.Pointer<ffi.Int8>>,
ffi.Int32,
ffi.Pointer<CXUnsavedFile>,
ffi.Uint32,
ffi.Uint32,
ffi.Pointer<CXTranslationUnit>)>>('clang_parseTranslationUnit2');
late final _clang_parseTranslationUnit2 =
_clang_parseTranslationUnit2_ptr.asFunction<
int Function(
CXIndex,
ffi.Pointer<ffi.Int8>,
ffi.Pointer<ffi.Pointer<ffi.Int8>>,
int,
ffi.Pointer<CXUnsavedFile>,
int,
int,
ffi.Pointer<CXTranslationUnit>)>();
/// 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.
int clang_parseTranslationUnit2FullArgv(
CXIndex CIdx,
ffi.Pointer<ffi.Int8> source_filename,
ffi.Pointer<ffi.Pointer<ffi.Int8>> command_line_args,
int num_command_line_args,
ffi.Pointer<CXUnsavedFile> unsaved_files,
int num_unsaved_files,
int options,
ffi.Pointer<CXTranslationUnit> out_TU,
) {
return _clang_parseTranslationUnit2FullArgv(
CIdx,
source_filename,
command_line_args,
num_command_line_args,
unsaved_files,
num_unsaved_files,
options,
out_TU,
);
}
late final _clang_parseTranslationUnit2FullArgv_ptr = _lookup<
ffi.NativeFunction<
ffi.Int32 Function(
CXIndex,
ffi.Pointer<ffi.Int8>,
ffi.Pointer<ffi.Pointer<ffi.Int8>>,
ffi.Int32,
ffi.Pointer<CXUnsavedFile>,
ffi.Uint32,
ffi.Uint32,
ffi.Pointer<CXTranslationUnit>)>>(
'clang_parseTranslationUnit2FullArgv');
late final _clang_parseTranslationUnit2FullArgv =
_clang_parseTranslationUnit2FullArgv_ptr.asFunction<
int Function(
CXIndex,
ffi.Pointer<ffi.Int8>,
ffi.Pointer<ffi.Pointer<ffi.Int8>>,
int,
ffi.Pointer<CXUnsavedFile>,
int,
int,
ffi.Pointer<CXTranslationUnit>)>();
/// Returns the set of flags that is suitable for saving a translation unit.
int clang_defaultSaveOptions(
CXTranslationUnit TU,
) {
return _clang_defaultSaveOptions(
TU,
);
}
late final _clang_defaultSaveOptions_ptr =
_lookup<ffi.NativeFunction<ffi.Uint32 Function(CXTranslationUnit)>>(
'clang_defaultSaveOptions');
late final _clang_defaultSaveOptions = _clang_defaultSaveOptions_ptr
.asFunction<int Function(CXTranslationUnit)>();
/// Saves a translation unit into a serialized representation of that
/// translation unit on disk.
int clang_saveTranslationUnit(
CXTranslationUnit TU,
ffi.Pointer<ffi.Int8> FileName,
int options,
) {
return _clang_saveTranslationUnit(
TU,
FileName,
options,
);
}
late final _clang_saveTranslationUnit_ptr = _lookup<
ffi.NativeFunction<
ffi.Int32 Function(CXTranslationUnit, ffi.Pointer<ffi.Int8>,
ffi.Uint32)>>('clang_saveTranslationUnit');
late final _clang_saveTranslationUnit =
_clang_saveTranslationUnit_ptr.asFunction<
int Function(CXTranslationUnit, ffi.Pointer<ffi.Int8>, int)>();
/// Suspend a translation unit in order to free memory associated with it.
int clang_suspendTranslationUnit(
CXTranslationUnit arg0,
) {
return _clang_suspendTranslationUnit(
arg0,
);
}
late final _clang_suspendTranslationUnit_ptr =
_lookup<ffi.NativeFunction<ffi.Uint32 Function(CXTranslationUnit)>>(
'clang_suspendTranslationUnit');
late final _clang_suspendTranslationUnit = _clang_suspendTranslationUnit_ptr
.asFunction<int Function(CXTranslationUnit)>();
/// Destroy the specified CXTranslationUnit object.
void clang_disposeTranslationUnit(
CXTranslationUnit arg0,
) {
return _clang_disposeTranslationUnit(
arg0,
);
}
late final _clang_disposeTranslationUnit_ptr =
_lookup<ffi.NativeFunction<ffi.Void Function(CXTranslationUnit)>>(
'clang_disposeTranslationUnit');
late final _clang_disposeTranslationUnit = _clang_disposeTranslationUnit_ptr
.asFunction<void Function(CXTranslationUnit)>();
/// Returns the set of flags that is suitable for reparsing a translation
/// unit.
int clang_defaultReparseOptions(
CXTranslationUnit TU,
) {
return _clang_defaultReparseOptions(
TU,
);
}
late final _clang_defaultReparseOptions_ptr =
_lookup<ffi.NativeFunction<ffi.Uint32 Function(CXTranslationUnit)>>(
'clang_defaultReparseOptions');
late final _clang_defaultReparseOptions = _clang_defaultReparseOptions_ptr
.asFunction<int Function(CXTranslationUnit)>();
/// Reparse the source files that produced this translation unit.
int clang_reparseTranslationUnit(
CXTranslationUnit TU,
int num_unsaved_files,
ffi.Pointer<CXUnsavedFile> unsaved_files,
int options,
) {
return _clang_reparseTranslationUnit(
TU,
num_unsaved_files,
unsaved_files,
options,
);
}
late final _clang_reparseTranslationUnit_ptr = _lookup<
ffi.NativeFunction<
ffi.Int32 Function(
CXTranslationUnit,
ffi.Uint32,
ffi.Pointer<CXUnsavedFile>,
ffi.Uint32)>>('clang_reparseTranslationUnit');
late final _clang_reparseTranslationUnit =
_clang_reparseTranslationUnit_ptr.asFunction<
int Function(
CXTranslationUnit, int, ffi.Pointer<CXUnsavedFile>, int)>();
/// Returns the human-readable null-terminated C string that represents the
/// name of the memory category. This string should never be freed.
ffi.Pointer<ffi.Int8> clang_getTUResourceUsageName(
int kind,
) {
return _clang_getTUResourceUsageName(
kind,
);
}
late final _clang_getTUResourceUsageName_ptr =
_lookup<ffi.NativeFunction<ffi.Pointer<ffi.Int8> Function(ffi.Int32)>>(
'clang_getTUResourceUsageName');
late final _clang_getTUResourceUsageName = _clang_getTUResourceUsageName_ptr
.asFunction<ffi.Pointer<ffi.Int8> Function(int)>();
/// Return the memory usage of a translation unit. This object should be
/// released with clang_disposeCXTUResourceUsage().
CXTUResourceUsage clang_getCXTUResourceUsage(
CXTranslationUnit TU,
) {
return _clang_getCXTUResourceUsage(
TU,
);
}
late final _clang_getCXTUResourceUsage_ptr = _lookup<
ffi.NativeFunction<CXTUResourceUsage Function(CXTranslationUnit)>>(
'clang_getCXTUResourceUsage');
late final _clang_getCXTUResourceUsage = _clang_getCXTUResourceUsage_ptr
.asFunction<CXTUResourceUsage Function(CXTranslationUnit)>();
void clang_disposeCXTUResourceUsage(
CXTUResourceUsage usage,
) {
return _clang_disposeCXTUResourceUsage(
usage,
);
}
late final _clang_disposeCXTUResourceUsage_ptr =
_lookup<ffi.NativeFunction<ffi.Void Function(CXTUResourceUsage)>>(
'clang_disposeCXTUResourceUsage');
late final _clang_disposeCXTUResourceUsage =
_clang_disposeCXTUResourceUsage_ptr
.asFunction<void Function(CXTUResourceUsage)>();
/// Get target information for this translation unit.
CXTargetInfo clang_getTranslationUnitTargetInfo(
CXTranslationUnit CTUnit,
) {
return _clang_getTranslationUnitTargetInfo(
CTUnit,
);
}
late final _clang_getTranslationUnitTargetInfo_ptr =
_lookup<ffi.NativeFunction<CXTargetInfo Function(CXTranslationUnit)>>(
'clang_getTranslationUnitTargetInfo');
late final _clang_getTranslationUnitTargetInfo =
_clang_getTranslationUnitTargetInfo_ptr
.asFunction<CXTargetInfo Function(CXTranslationUnit)>();
/// Destroy the CXTargetInfo object.
void clang_TargetInfo_dispose(
CXTargetInfo Info,
) {
return _clang_TargetInfo_dispose(
Info,
);
}
late final _clang_TargetInfo_dispose_ptr =
_lookup<ffi.NativeFunction<ffi.Void Function(CXTargetInfo)>>(
'clang_TargetInfo_dispose');
late final _clang_TargetInfo_dispose =
_clang_TargetInfo_dispose_ptr.asFunction<void Function(CXTargetInfo)>();
/// Get the normalized target triple as a string.
CXString clang_TargetInfo_getTriple(
CXTargetInfo Info,
) {
return _clang_TargetInfo_getTriple(
Info,
);
}
late final _clang_TargetInfo_getTriple_ptr =
_lookup<ffi.NativeFunction<CXString Function(CXTargetInfo)>>(
'clang_TargetInfo_getTriple');
late final _clang_TargetInfo_getTriple = _clang_TargetInfo_getTriple_ptr
.asFunction<CXString Function(CXTargetInfo)>();
/// Get the pointer width of the target in bits.
int clang_TargetInfo_getPointerWidth(
CXTargetInfo Info,
) {
return _clang_TargetInfo_getPointerWidth(
Info,
);
}
late final _clang_TargetInfo_getPointerWidth_ptr =
_lookup<ffi.NativeFunction<ffi.Int32 Function(CXTargetInfo)>>(
'clang_TargetInfo_getPointerWidth');
late final _clang_TargetInfo_getPointerWidth =
_clang_TargetInfo_getPointerWidth_ptr
.asFunction<int Function(CXTargetInfo)>();
/// Retrieve the NULL cursor, which represents no entity.
CXCursor clang_getNullCursor() {
return _clang_getNullCursor();
}
late final _clang_getNullCursor_ptr =
_lookup<ffi.NativeFunction<CXCursor Function()>>('clang_getNullCursor');
late final _clang_getNullCursor =
_clang_getNullCursor_ptr.asFunction<CXCursor Function()>();
/// Retrieve the cursor that represents the given translation unit.
CXCursor clang_getTranslationUnitCursor(
CXTranslationUnit arg0,
) {
return _clang_getTranslationUnitCursor(
arg0,
);
}
late final _clang_getTranslationUnitCursor_ptr =
_lookup<ffi.NativeFunction<CXCursor Function(CXTranslationUnit)>>(
'clang_getTranslationUnitCursor');
late final _clang_getTranslationUnitCursor =
_clang_getTranslationUnitCursor_ptr
.asFunction<CXCursor Function(CXTranslationUnit)>();
/// Determine whether two cursors are equivalent.
int clang_equalCursors(
CXCursor arg0,
CXCursor arg1,
) {
return _clang_equalCursors(
arg0,
arg1,
);
}
late final _clang_equalCursors_ptr =
_lookup<ffi.NativeFunction<ffi.Uint32 Function(CXCursor, CXCursor)>>(
'clang_equalCursors');
late final _clang_equalCursors =
_clang_equalCursors_ptr.asFunction<int Function(CXCursor, CXCursor)>();
/// Returns non-zero if cursor is null.
int clang_Cursor_isNull(
CXCursor cursor,
) {
return _clang_Cursor_isNull(
cursor,
);
}
late final _clang_Cursor_isNull_ptr =
_lookup<ffi.NativeFunction<ffi.Int32 Function(CXCursor)>>(
'clang_Cursor_isNull');
late final _clang_Cursor_isNull =
_clang_Cursor_isNull_ptr.asFunction<int Function(CXCursor)>();
/// Compute a hash value for the given cursor.
int clang_hashCursor(
CXCursor arg0,
) {
return _clang_hashCursor(
arg0,
);
}
late final _clang_hashCursor_ptr =
_lookup<ffi.NativeFunction<ffi.Uint32 Function(CXCursor)>>(
'clang_hashCursor');
late final _clang_hashCursor =
_clang_hashCursor_ptr.asFunction<int Function(CXCursor)>();
/// Retrieve the kind of the given cursor.
int clang_getCursorKind(
CXCursor arg0,
) {
return _clang_getCursorKind(
arg0,
);
}
late final _clang_getCursorKind_ptr =
_lookup<ffi.NativeFunction<ffi.Int32 Function(CXCursor)>>(
'clang_getCursorKind');
late final _clang_getCursorKind =
_clang_getCursorKind_ptr.asFunction<int Function(CXCursor)>();
/// Determine whether the given cursor kind represents a declaration.
int clang_isDeclaration(
int arg0,
) {
return _clang_isDeclaration(
arg0,
);
}
late final _clang_isDeclaration_ptr =
_lookup<ffi.NativeFunction<ffi.Uint32 Function(ffi.Int32)>>(
'clang_isDeclaration');
late final _clang_isDeclaration =
_clang_isDeclaration_ptr.asFunction<int Function(int)>();
/// Determine whether the given declaration is invalid.
int clang_isInvalidDeclaration(
CXCursor arg0,
) {
return _clang_isInvalidDeclaration(
arg0,
);
}
late final _clang_isInvalidDeclaration_ptr =
_lookup<ffi.NativeFunction<ffi.Uint32 Function(CXCursor)>>(
'clang_isInvalidDeclaration');
late final _clang_isInvalidDeclaration =
_clang_isInvalidDeclaration_ptr.asFunction<int Function(CXCursor)>();
/// Determine whether the given cursor kind represents a simple reference.
int clang_isReference(
int arg0,
) {
return _clang_isReference(
arg0,
);
}
late final _clang_isReference_ptr =
_lookup<ffi.NativeFunction<ffi.Uint32 Function(ffi.Int32)>>(
'clang_isReference');
late final _clang_isReference =
_clang_isReference_ptr.asFunction<int Function(int)>();
/// Determine whether the given cursor kind represents an expression.
int clang_isExpression(
int arg0,
) {
return _clang_isExpression(
arg0,
);
}
late final _clang_isExpression_ptr =
_lookup<ffi.NativeFunction<ffi.Uint32 Function(ffi.Int32)>>(
'clang_isExpression');
late final _clang_isExpression =
_clang_isExpression_ptr.asFunction<int Function(int)>();
/// Determine whether the given cursor kind represents a statement.
int clang_isStatement(
int arg0,
) {
return _clang_isStatement(
arg0,
);
}
late final _clang_isStatement_ptr =
_lookup<ffi.NativeFunction<ffi.Uint32 Function(ffi.Int32)>>(
'clang_isStatement');
late final _clang_isStatement =
_clang_isStatement_ptr.asFunction<int Function(int)>();
/// Determine whether the given cursor kind represents an attribute.
int clang_isAttribute(
int arg0,
) {
return _clang_isAttribute(
arg0,
);
}
late final _clang_isAttribute_ptr =
_lookup<ffi.NativeFunction<ffi.Uint32 Function(ffi.Int32)>>(
'clang_isAttribute');
late final _clang_isAttribute =
_clang_isAttribute_ptr.asFunction<int Function(int)>();
/// Determine whether the given cursor has any attributes.
int clang_Cursor_hasAttrs(
CXCursor C,
) {
return _clang_Cursor_hasAttrs(
C,
);
}
late final _clang_Cursor_hasAttrs_ptr =
_lookup<ffi.NativeFunction<ffi.Uint32 Function(CXCursor)>>(
'clang_Cursor_hasAttrs');
late final _clang_Cursor_hasAttrs =
_clang_Cursor_hasAttrs_ptr.asFunction<int Function(CXCursor)>();
/// Determine whether the given cursor kind represents an invalid cursor.
int clang_isInvalid(
int arg0,
) {
return _clang_isInvalid(
arg0,
);
}
late final _clang_isInvalid_ptr =
_lookup<ffi.NativeFunction<ffi.Uint32 Function(ffi.Int32)>>(
'clang_isInvalid');
late final _clang_isInvalid =
_clang_isInvalid_ptr.asFunction<int Function(int)>();
/// Determine whether the given cursor kind represents a translation unit.
int clang_isTranslationUnit(
int arg0,
) {
return _clang_isTranslationUnit(
arg0,
);
}
late final _clang_isTranslationUnit_ptr =
_lookup<ffi.NativeFunction<ffi.Uint32 Function(ffi.Int32)>>(
'clang_isTranslationUnit');
late final _clang_isTranslationUnit =
_clang_isTranslationUnit_ptr.asFunction<int Function(int)>();
/// * Determine whether the given cursor represents a preprocessing element,
/// such as a preprocessor directive or macro instantiation.
int clang_isPreprocessing(
int arg0,
) {
return _clang_isPreprocessing(
arg0,
);
}
late final _clang_isPreprocessing_ptr =
_lookup<ffi.NativeFunction<ffi.Uint32 Function(ffi.Int32)>>(
'clang_isPreprocessing');
late final _clang_isPreprocessing =
_clang_isPreprocessing_ptr.asFunction<int Function(int)>();
/// * Determine whether the given cursor represents a currently unexposed
/// piece of the AST (e.g., CXCursor_UnexposedStmt).
int clang_isUnexposed(
int arg0,
) {
return _clang_isUnexposed(
arg0,
);
}
late final _clang_isUnexposed_ptr =
_lookup<ffi.NativeFunction<ffi.Uint32 Function(ffi.Int32)>>(
'clang_isUnexposed');
late final _clang_isUnexposed =
_clang_isUnexposed_ptr.asFunction<int Function(int)>();
/// Determine the linkage of the entity referred to by a given cursor.
int clang_getCursorLinkage(
CXCursor cursor,
) {
return _clang_getCursorLinkage(
cursor,
);
}
late final _clang_getCursorLinkage_ptr =
_lookup<ffi.NativeFunction<ffi.Int32 Function(CXCursor)>>(
'clang_getCursorLinkage');
late final _clang_getCursorLinkage =
_clang_getCursorLinkage_ptr.asFunction<int Function(CXCursor)>();
/// Describe the visibility of the entity referred to by a cursor.
int clang_getCursorVisibility(
CXCursor cursor,
) {
return _clang_getCursorVisibility(
cursor,
);
}
late final _clang_getCursorVisibility_ptr =
_lookup<ffi.NativeFunction<ffi.Int32 Function(CXCursor)>>(
'clang_getCursorVisibility');
late final _clang_getCursorVisibility =
_clang_getCursorVisibility_ptr.asFunction<int Function(CXCursor)>();
/// Determine the availability of the entity that this cursor refers to,
/// taking the current target platform into account.
int clang_getCursorAvailability(
CXCursor cursor,
) {
return _clang_getCursorAvailability(
cursor,
);
}
late final _clang_getCursorAvailability_ptr =
_lookup<ffi.NativeFunction<ffi.Int32 Function(CXCursor)>>(
'clang_getCursorAvailability');
late final _clang_getCursorAvailability =
_clang_getCursorAvailability_ptr.asFunction<int Function(CXCursor)>();
/// Determine the availability of the entity that this cursor refers to on any
/// platforms for which availability information is known.
int clang_getCursorPlatformAvailability(
CXCursor cursor,
ffi.Pointer<ffi.Int32> always_deprecated,
ffi.Pointer<CXString> deprecated_message,
ffi.Pointer<ffi.Int32> always_unavailable,
ffi.Pointer<CXString> unavailable_message,
ffi.Pointer<CXPlatformAvailability> availability,
int availability_size,
) {
return _clang_getCursorPlatformAvailability(
cursor,
always_deprecated,
deprecated_message,
always_unavailable,
unavailable_message,
availability,
availability_size,
);
}
late final _clang_getCursorPlatformAvailability_ptr = _lookup<
ffi.NativeFunction<
ffi.Int32 Function(
CXCursor,
ffi.Pointer<ffi.Int32>,
ffi.Pointer<CXString>,
ffi.Pointer<ffi.Int32>,
ffi.Pointer<CXString>,
ffi.Pointer<CXPlatformAvailability>,
ffi.Int32)>>('clang_getCursorPlatformAvailability');
late final _clang_getCursorPlatformAvailability =
_clang_getCursorPlatformAvailability_ptr.asFunction<
int Function(
CXCursor,
ffi.Pointer<ffi.Int32>,
ffi.Pointer<CXString>,
ffi.Pointer<ffi.Int32>,
ffi.Pointer<CXString>,
ffi.Pointer<CXPlatformAvailability>,
int)>();
/// Free the memory associated with a CXPlatformAvailability structure.
void clang_disposeCXPlatformAvailability(
ffi.Pointer<CXPlatformAvailability> availability,
) {
return _clang_disposeCXPlatformAvailability(
availability,
);
}
late final _clang_disposeCXPlatformAvailability_ptr = _lookup<
ffi.NativeFunction<
ffi.Void Function(ffi.Pointer<CXPlatformAvailability>)>>(
'clang_disposeCXPlatformAvailability');
late final _clang_disposeCXPlatformAvailability =
_clang_disposeCXPlatformAvailability_ptr
.asFunction<void Function(ffi.Pointer<CXPlatformAvailability>)>();
/// Determine the "language" of the entity referred to by a given cursor.
int clang_getCursorLanguage(
CXCursor cursor,
) {
return _clang_getCursorLanguage(
cursor,
);
}
late final _clang_getCursorLanguage_ptr =
_lookup<ffi.NativeFunction<ffi.Int32 Function(CXCursor)>>(
'clang_getCursorLanguage');
late final _clang_getCursorLanguage =
_clang_getCursorLanguage_ptr.asFunction<int Function(CXCursor)>();
/// Determine the "thread-local storage (TLS) kind" of the declaration
/// referred to by a cursor.
int clang_getCursorTLSKind(
CXCursor cursor,
) {
return _clang_getCursorTLSKind(
cursor,
);
}
late final _clang_getCursorTLSKind_ptr =
_lookup<ffi.NativeFunction<ffi.Int32 Function(CXCursor)>>(
'clang_getCursorTLSKind');
late final _clang_getCursorTLSKind =
_clang_getCursorTLSKind_ptr.asFunction<int Function(CXCursor)>();
/// Returns the translation unit that a cursor originated from.
CXTranslationUnit clang_Cursor_getTranslationUnit(
CXCursor arg0,
) {
return _clang_Cursor_getTranslationUnit(
arg0,
);
}
late final _clang_Cursor_getTranslationUnit_ptr =
_lookup<ffi.NativeFunction<CXTranslationUnit Function(CXCursor)>>(
'clang_Cursor_getTranslationUnit');
late final _clang_Cursor_getTranslationUnit =
_clang_Cursor_getTranslationUnit_ptr
.asFunction<CXTranslationUnit Function(CXCursor)>();
/// Creates an empty CXCursorSet.
CXCursorSet clang_createCXCursorSet() {
return _clang_createCXCursorSet();
}
late final _clang_createCXCursorSet_ptr =
_lookup<ffi.NativeFunction<CXCursorSet Function()>>(
'clang_createCXCursorSet');
late final _clang_createCXCursorSet =
_clang_createCXCursorSet_ptr.asFunction<CXCursorSet Function()>();
/// Disposes a CXCursorSet and releases its associated memory.
void clang_disposeCXCursorSet(
CXCursorSet cset,
) {
return _clang_disposeCXCursorSet(
cset,
);
}
late final _clang_disposeCXCursorSet_ptr =
_lookup<ffi.NativeFunction<ffi.Void Function(CXCursorSet)>>(
'clang_disposeCXCursorSet');
late final _clang_disposeCXCursorSet =
_clang_disposeCXCursorSet_ptr.asFunction<void Function(CXCursorSet)>();
/// Queries a CXCursorSet to see if it contains a specific CXCursor.
int clang_CXCursorSet_contains(
CXCursorSet cset,
CXCursor cursor,
) {
return _clang_CXCursorSet_contains(
cset,
cursor,
);
}
late final _clang_CXCursorSet_contains_ptr =
_lookup<ffi.NativeFunction<ffi.Uint32 Function(CXCursorSet, CXCursor)>>(
'clang_CXCursorSet_contains');
late final _clang_CXCursorSet_contains = _clang_CXCursorSet_contains_ptr
.asFunction<int Function(CXCursorSet, CXCursor)>();
/// Inserts a CXCursor into a CXCursorSet.
int clang_CXCursorSet_insert(
CXCursorSet cset,
CXCursor cursor,
) {
return _clang_CXCursorSet_insert(
cset,
cursor,
);
}
late final _clang_CXCursorSet_insert_ptr =
_lookup<ffi.NativeFunction<ffi.Uint32 Function(CXCursorSet, CXCursor)>>(
'clang_CXCursorSet_insert');
late final _clang_CXCursorSet_insert = _clang_CXCursorSet_insert_ptr
.asFunction<int Function(CXCursorSet, CXCursor)>();
/// Determine the semantic parent of the given cursor.
CXCursor clang_getCursorSemanticParent(
CXCursor cursor,
) {
return _clang_getCursorSemanticParent(
cursor,
);
}
late final _clang_getCursorSemanticParent_ptr =
_lookup<ffi.NativeFunction<CXCursor Function(CXCursor)>>(
'clang_getCursorSemanticParent');
late final _clang_getCursorSemanticParent = _clang_getCursorSemanticParent_ptr
.asFunction<CXCursor Function(CXCursor)>();
/// Determine the lexical parent of the given cursor.
CXCursor clang_getCursorLexicalParent(
CXCursor cursor,
) {
return _clang_getCursorLexicalParent(
cursor,
);
}
late final _clang_getCursorLexicalParent_ptr =
_lookup<ffi.NativeFunction<CXCursor Function(CXCursor)>>(
'clang_getCursorLexicalParent');
late final _clang_getCursorLexicalParent = _clang_getCursorLexicalParent_ptr
.asFunction<CXCursor Function(CXCursor)>();
/// Determine the set of methods that are overridden by the given method.
void clang_getOverriddenCursors(
CXCursor cursor,
ffi.Pointer<ffi.Pointer<CXCursor>> overridden,
ffi.Pointer<ffi.Uint32> num_overridden,
) {
return _clang_getOverriddenCursors(
cursor,
overridden,
num_overridden,
);
}
late final _clang_getOverriddenCursors_ptr = _lookup<
ffi.NativeFunction<
ffi.Void Function(CXCursor, ffi.Pointer<ffi.Pointer<CXCursor>>,
ffi.Pointer<ffi.Uint32>)>>('clang_getOverriddenCursors');
late final _clang_getOverriddenCursors =
_clang_getOverriddenCursors_ptr.asFunction<
void Function(CXCursor, ffi.Pointer<ffi.Pointer<CXCursor>>,
ffi.Pointer<ffi.Uint32>)>();
/// Free the set of overridden cursors returned by
/// clang_getOverriddenCursors().
void clang_disposeOverriddenCursors(
ffi.Pointer<CXCursor> overridden,
) {
return _clang_disposeOverriddenCursors(
overridden,
);
}
late final _clang_disposeOverriddenCursors_ptr =
_lookup<ffi.NativeFunction<ffi.Void Function(ffi.Pointer<CXCursor>)>>(
'clang_disposeOverriddenCursors');
late final _clang_disposeOverriddenCursors =
_clang_disposeOverriddenCursors_ptr
.asFunction<void Function(ffi.Pointer<CXCursor>)>();
/// Retrieve the file that is included by the given inclusion directive
/// cursor.
CXFile clang_getIncludedFile(
CXCursor cursor,
) {
return _clang_getIncludedFile(
cursor,
);
}
late final _clang_getIncludedFile_ptr =
_lookup<ffi.NativeFunction<CXFile Function(CXCursor)>>(
'clang_getIncludedFile');
late final _clang_getIncludedFile =
_clang_getIncludedFile_ptr.asFunction<CXFile Function(CXCursor)>();
/// Map a source location to the cursor that describes the entity at that
/// location in the source code.
CXCursor clang_getCursor(
CXTranslationUnit arg0,
CXSourceLocation arg1,
) {
return _clang_getCursor(
arg0,
arg1,
);
}
late final _clang_getCursor_ptr = _lookup<
ffi.NativeFunction<
CXCursor Function(
CXTranslationUnit, CXSourceLocation)>>('clang_getCursor');
late final _clang_getCursor = _clang_getCursor_ptr
.asFunction<CXCursor Function(CXTranslationUnit, CXSourceLocation)>();
/// Retrieve the physical location of the source constructor referenced by the
/// given cursor.
CXSourceLocation clang_getCursorLocation(
CXCursor arg0,
) {
return _clang_getCursorLocation(
arg0,
);
}
late final _clang_getCursorLocation_ptr =
_lookup<ffi.NativeFunction<CXSourceLocation Function(CXCursor)>>(
'clang_getCursorLocation');
late final _clang_getCursorLocation = _clang_getCursorLocation_ptr
.asFunction<CXSourceLocation Function(CXCursor)>();
/// Retrieve the physical extent of the source construct referenced by the
/// given cursor.
CXSourceRange clang_getCursorExtent(
CXCursor arg0,
) {
return _clang_getCursorExtent(
arg0,
);
}
late final _clang_getCursorExtent_ptr =
_lookup<ffi.NativeFunction<CXSourceRange Function(CXCursor)>>(
'clang_getCursorExtent');
late final _clang_getCursorExtent =
_clang_getCursorExtent_ptr.asFunction<CXSourceRange Function(CXCursor)>();
/// Retrieve the type of a CXCursor (if any).
CXType clang_getCursorType(
CXCursor C,
) {
return _clang_getCursorType(
C,
);
}
late final _clang_getCursorType_ptr =
_lookup<ffi.NativeFunction<CXType Function(CXCursor)>>(
'clang_getCursorType');
late final _clang_getCursorType =
_clang_getCursorType_ptr.asFunction<CXType Function(CXCursor)>();
/// Pretty-print the underlying type using the rules of the language of the
/// translation unit from which it came.
CXString clang_getTypeSpelling(
CXType CT,
) {
return _clang_getTypeSpelling(
CT,
);
}
late final _clang_getTypeSpelling_ptr =
_lookup<ffi.NativeFunction<CXString Function(CXType)>>(
'clang_getTypeSpelling');
late final _clang_getTypeSpelling =
_clang_getTypeSpelling_ptr.asFunction<CXString Function(CXType)>();
/// Retrieve the underlying type of a typedef declaration.
CXType clang_getTypedefDeclUnderlyingType(
CXCursor C,
) {
return _clang_getTypedefDeclUnderlyingType(
C,
);
}
late final _clang_getTypedefDeclUnderlyingType_ptr =
_lookup<ffi.NativeFunction<CXType Function(CXCursor)>>(
'clang_getTypedefDeclUnderlyingType');
late final _clang_getTypedefDeclUnderlyingType =
_clang_getTypedefDeclUnderlyingType_ptr
.asFunction<CXType Function(CXCursor)>();
/// Retrieve the integer type of an enum declaration.
CXType clang_getEnumDeclIntegerType(
CXCursor C,
) {
return _clang_getEnumDeclIntegerType(
C,
);
}
late final _clang_getEnumDeclIntegerType_ptr =
_lookup<ffi.NativeFunction<CXType Function(CXCursor)>>(
'clang_getEnumDeclIntegerType');
late final _clang_getEnumDeclIntegerType =
_clang_getEnumDeclIntegerType_ptr.asFunction<CXType Function(CXCursor)>();
/// Retrieve the integer value of an enum constant declaration as a signed
/// long long.
int clang_getEnumConstantDeclValue(
CXCursor C,
) {
return _clang_getEnumConstantDeclValue(
C,
);
}
late final _clang_getEnumConstantDeclValue_ptr =
_lookup<ffi.NativeFunction<ffi.Int64 Function(CXCursor)>>(
'clang_getEnumConstantDeclValue');
late final _clang_getEnumConstantDeclValue =
_clang_getEnumConstantDeclValue_ptr.asFunction<int Function(CXCursor)>();
/// Retrieve the integer value of an enum constant declaration as an unsigned
/// long long.
int clang_getEnumConstantDeclUnsignedValue(
CXCursor C,
) {
return _clang_getEnumConstantDeclUnsignedValue(
C,
);
}
late final _clang_getEnumConstantDeclUnsignedValue_ptr =
_lookup<ffi.NativeFunction<ffi.Uint64 Function(CXCursor)>>(
'clang_getEnumConstantDeclUnsignedValue');
late final _clang_getEnumConstantDeclUnsignedValue =
_clang_getEnumConstantDeclUnsignedValue_ptr
.asFunction<int Function(CXCursor)>();
/// Retrieve the bit width of a bit field declaration as an integer.
int clang_getFieldDeclBitWidth(
CXCursor C,
) {
return _clang_getFieldDeclBitWidth(
C,
);
}
late final _clang_getFieldDeclBitWidth_ptr =
_lookup<ffi.NativeFunction<ffi.Int32 Function(CXCursor)>>(
'clang_getFieldDeclBitWidth');
late final _clang_getFieldDeclBitWidth =
_clang_getFieldDeclBitWidth_ptr.asFunction<int Function(CXCursor)>();
/// Retrieve the number of non-variadic arguments associated with a given
/// cursor.
int clang_Cursor_getNumArguments(
CXCursor C,
) {
return _clang_Cursor_getNumArguments(
C,
);
}
late final _clang_Cursor_getNumArguments_ptr =
_lookup<ffi.NativeFunction<ffi.Int32 Function(CXCursor)>>(
'clang_Cursor_getNumArguments');
late final _clang_Cursor_getNumArguments =
_clang_Cursor_getNumArguments_ptr.asFunction<int Function(CXCursor)>();
/// Retrieve the argument cursor of a function or method.
CXCursor clang_Cursor_getArgument(
CXCursor C,
int i,
) {
return _clang_Cursor_getArgument(
C,
i,
);
}
late final _clang_Cursor_getArgument_ptr =
_lookup<ffi.NativeFunction<CXCursor Function(CXCursor, ffi.Uint32)>>(
'clang_Cursor_getArgument');
late final _clang_Cursor_getArgument = _clang_Cursor_getArgument_ptr
.asFunction<CXCursor Function(CXCursor, int)>();
/// Returns the number of template args of a function decl representing a
/// template specialization.
int clang_Cursor_getNumTemplateArguments(
CXCursor C,
) {
return _clang_Cursor_getNumTemplateArguments(
C,
);
}
late final _clang_Cursor_getNumTemplateArguments_ptr =
_lookup<ffi.NativeFunction<ffi.Int32 Function(CXCursor)>>(
'clang_Cursor_getNumTemplateArguments');
late final _clang_Cursor_getNumTemplateArguments =
_clang_Cursor_getNumTemplateArguments_ptr
.asFunction<int Function(CXCursor)>();
/// Retrieve the kind of the I'th template argument of the CXCursor C.
int clang_Cursor_getTemplateArgumentKind(
CXCursor C,
int I,
) {
return _clang_Cursor_getTemplateArgumentKind(
C,
I,
);
}
late final _clang_Cursor_getTemplateArgumentKind_ptr =
_lookup<ffi.NativeFunction<ffi.Int32 Function(CXCursor, ffi.Uint32)>>(
'clang_Cursor_getTemplateArgumentKind');
late final _clang_Cursor_getTemplateArgumentKind =
_clang_Cursor_getTemplateArgumentKind_ptr
.asFunction<int Function(CXCursor, int)>();
/// Retrieve a CXType representing the type of a TemplateArgument of a
/// function decl representing a template specialization.
CXType clang_Cursor_getTemplateArgumentType(
CXCursor C,
int I,
) {
return _clang_Cursor_getTemplateArgumentType(
C,
I,
);
}
late final _clang_Cursor_getTemplateArgumentType_ptr =
_lookup<ffi.NativeFunction<CXType Function(CXCursor, ffi.Uint32)>>(
'clang_Cursor_getTemplateArgumentType');
late final _clang_Cursor_getTemplateArgumentType =
_clang_Cursor_getTemplateArgumentType_ptr
.asFunction<CXType Function(CXCursor, int)>();
/// Retrieve the value of an Integral TemplateArgument (of a function decl
/// representing a template specialization) as a signed long long.
int clang_Cursor_getTemplateArgumentValue(
CXCursor C,
int I,
) {
return _clang_Cursor_getTemplateArgumentValue(
C,
I,
);
}
late final _clang_Cursor_getTemplateArgumentValue_ptr =
_lookup<ffi.NativeFunction<ffi.Int64 Function(CXCursor, ffi.Uint32)>>(
'clang_Cursor_getTemplateArgumentValue');
late final _clang_Cursor_getTemplateArgumentValue =
_clang_Cursor_getTemplateArgumentValue_ptr
.asFunction<int Function(CXCursor, int)>();
/// Retrieve the value of an Integral TemplateArgument (of a function decl
/// representing a template specialization) as an unsigned long long.
int clang_Cursor_getTemplateArgumentUnsignedValue(
CXCursor C,
int I,
) {
return _clang_Cursor_getTemplateArgumentUnsignedValue(
C,
I,
);
}
late final _clang_Cursor_getTemplateArgumentUnsignedValue_ptr =
_lookup<ffi.NativeFunction<ffi.Uint64 Function(CXCursor, ffi.Uint32)>>(
'clang_Cursor_getTemplateArgumentUnsignedValue');
late final _clang_Cursor_getTemplateArgumentUnsignedValue =
_clang_Cursor_getTemplateArgumentUnsignedValue_ptr
.asFunction<int Function(CXCursor, int)>();
/// Determine whether two CXTypes represent the same type.
int clang_equalTypes(
CXType A,
CXType B,
) {
return _clang_equalTypes(
A,
B,
);
}
late final _clang_equalTypes_ptr =
_lookup<ffi.NativeFunction<ffi.Uint32 Function(CXType, CXType)>>(
'clang_equalTypes');
late final _clang_equalTypes =
_clang_equalTypes_ptr.asFunction<int Function(CXType, CXType)>();
/// Return the canonical type for a CXType.
CXType clang_getCanonicalType(
CXType T,
) {
return _clang_getCanonicalType(
T,
);
}
late final _clang_getCanonicalType_ptr =
_lookup<ffi.NativeFunction<CXType Function(CXType)>>(
'clang_getCanonicalType');
late final _clang_getCanonicalType =
_clang_getCanonicalType_ptr.asFunction<CXType Function(CXType)>();
/// Determine whether a CXType has the "const" qualifier set, without looking
/// through typedefs that may have added "const" at a different level.
int clang_isConstQualifiedType(
CXType T,
) {
return _clang_isConstQualifiedType(
T,
);
}
late final _clang_isConstQualifiedType_ptr =
_lookup<ffi.NativeFunction<ffi.Uint32 Function(CXType)>>(
'clang_isConstQualifiedType');
late final _clang_isConstQualifiedType =
_clang_isConstQualifiedType_ptr.asFunction<int Function(CXType)>();
/// Determine whether a CXCursor that is a macro, is function like.
int clang_Cursor_isMacroFunctionLike(
CXCursor C,
) {
return _clang_Cursor_isMacroFunctionLike(
C,
);
}
late final _clang_Cursor_isMacroFunctionLike_ptr =
_lookup<ffi.NativeFunction<ffi.Uint32 Function(CXCursor)>>(
'clang_Cursor_isMacroFunctionLike');
late final _clang_Cursor_isMacroFunctionLike =
_clang_Cursor_isMacroFunctionLike_ptr
.asFunction<int Function(CXCursor)>();
/// Determine whether a CXCursor that is a macro, is a builtin one.
int clang_Cursor_isMacroBuiltin(
CXCursor C,
) {
return _clang_Cursor_isMacroBuiltin(
C,
);
}
late final _clang_Cursor_isMacroBuiltin_ptr =
_lookup<ffi.NativeFunction<ffi.Uint32 Function(CXCursor)>>(
'clang_Cursor_isMacroBuiltin');
late final _clang_Cursor_isMacroBuiltin =
_clang_Cursor_isMacroBuiltin_ptr.asFunction<int Function(CXCursor)>();
/// Determine whether a CXCursor that is a function declaration, is an inline
/// declaration.
int clang_Cursor_isFunctionInlined(
CXCursor C,
) {
return _clang_Cursor_isFunctionInlined(
C,
);
}
late final _clang_Cursor_isFunctionInlined_ptr =
_lookup<ffi.NativeFunction<ffi.Uint32 Function(CXCursor)>>(
'clang_Cursor_isFunctionInlined');
late final _clang_Cursor_isFunctionInlined =
_clang_Cursor_isFunctionInlined_ptr.asFunction<int Function(CXCursor)>();
/// Determine whether a CXType has the "volatile" qualifier set, without
/// looking through typedefs that may have added "volatile" at a different
/// level.
int clang_isVolatileQualifiedType(
CXType T,
) {
return _clang_isVolatileQualifiedType(
T,
);
}
late final _clang_isVolatileQualifiedType_ptr =
_lookup<ffi.NativeFunction<ffi.Uint32 Function(CXType)>>(
'clang_isVolatileQualifiedType');
late final _clang_isVolatileQualifiedType =
_clang_isVolatileQualifiedType_ptr.asFunction<int Function(CXType)>();
/// Determine whether a CXType has the "restrict" qualifier set, without
/// looking through typedefs that may have added "restrict" at a different
/// level.
int clang_isRestrictQualifiedType(
CXType T,
) {
return _clang_isRestrictQualifiedType(
T,
);
}
late final _clang_isRestrictQualifiedType_ptr =
_lookup<ffi.NativeFunction<ffi.Uint32 Function(CXType)>>(
'clang_isRestrictQualifiedType');
late final _clang_isRestrictQualifiedType =
_clang_isRestrictQualifiedType_ptr.asFunction<int Function(CXType)>();
/// Returns the address space of the given type.
int clang_getAddressSpace(
CXType T,
) {
return _clang_getAddressSpace(
T,
);
}
late final _clang_getAddressSpace_ptr =
_lookup<ffi.NativeFunction<ffi.Uint32 Function(CXType)>>(
'clang_getAddressSpace');
late final _clang_getAddressSpace =
_clang_getAddressSpace_ptr.asFunction<int Function(CXType)>();
/// Returns the typedef name of the given type.
CXString clang_getTypedefName(
CXType CT,
) {
return _clang_getTypedefName(
CT,
);
}
late final _clang_getTypedefName_ptr =
_lookup<ffi.NativeFunction<CXString Function(CXType)>>(
'clang_getTypedefName');
late final _clang_getTypedefName =
_clang_getTypedefName_ptr.asFunction<CXString Function(CXType)>();
/// For pointer types, returns the type of the pointee.
CXType clang_getPointeeType(
CXType T,
) {
return _clang_getPointeeType(
T,
);
}
late final _clang_getPointeeType_ptr =
_lookup<ffi.NativeFunction<CXType Function(CXType)>>(
'clang_getPointeeType');
late final _clang_getPointeeType =
_clang_getPointeeType_ptr.asFunction<CXType Function(CXType)>();
/// Return the cursor for the declaration of the given type.
CXCursor clang_getTypeDeclaration(
CXType T,
) {
return _clang_getTypeDeclaration(
T,
);
}
late final _clang_getTypeDeclaration_ptr =
_lookup<ffi.NativeFunction<CXCursor Function(CXType)>>(
'clang_getTypeDeclaration');
late final _clang_getTypeDeclaration =
_clang_getTypeDeclaration_ptr.asFunction<CXCursor Function(CXType)>();
/// Returns the Objective-C type encoding for the specified declaration.
CXString clang_getDeclObjCTypeEncoding(
CXCursor C,
) {
return _clang_getDeclObjCTypeEncoding(
C,
);
}
late final _clang_getDeclObjCTypeEncoding_ptr =
_lookup<ffi.NativeFunction<CXString Function(CXCursor)>>(
'clang_getDeclObjCTypeEncoding');
late final _clang_getDeclObjCTypeEncoding = _clang_getDeclObjCTypeEncoding_ptr
.asFunction<CXString Function(CXCursor)>();
/// Returns the Objective-C type encoding for the specified CXType.
CXString clang_Type_getObjCEncoding(
CXType type,
) {
return _clang_Type_getObjCEncoding(
type,
);
}
late final _clang_Type_getObjCEncoding_ptr =
_lookup<ffi.NativeFunction<CXString Function(CXType)>>(
'clang_Type_getObjCEncoding');
late final _clang_Type_getObjCEncoding =
_clang_Type_getObjCEncoding_ptr.asFunction<CXString Function(CXType)>();
/// Retrieve the spelling of a given CXTypeKind.
CXString clang_getTypeKindSpelling(
int K,
) {
return _clang_getTypeKindSpelling(
K,
);
}
late final _clang_getTypeKindSpelling_ptr =
_lookup<ffi.NativeFunction<CXString Function(ffi.Int32)>>(
'clang_getTypeKindSpelling');
late final _clang_getTypeKindSpelling =
_clang_getTypeKindSpelling_ptr.asFunction<CXString Function(int)>();
/// Retrieve the calling convention associated with a function type.
int clang_getFunctionTypeCallingConv(
CXType T,
) {
return _clang_getFunctionTypeCallingConv(
T,
);
}
late final _clang_getFunctionTypeCallingConv_ptr =
_lookup<ffi.NativeFunction<ffi.Int32 Function(CXType)>>(
'clang_getFunctionTypeCallingConv');
late final _clang_getFunctionTypeCallingConv =
_clang_getFunctionTypeCallingConv_ptr.asFunction<int Function(CXType)>();
/// Retrieve the return type associated with a function type.
CXType clang_getResultType(
CXType T,
) {
return _clang_getResultType(
T,
);
}
late final _clang_getResultType_ptr =
_lookup<ffi.NativeFunction<CXType Function(CXType)>>(
'clang_getResultType');
late final _clang_getResultType =
_clang_getResultType_ptr.asFunction<CXType Function(CXType)>();
/// Retrieve the exception specification type associated with a function type.
/// This is a value of type CXCursor_ExceptionSpecificationKind.
int clang_getExceptionSpecificationType(
CXType T,
) {
return _clang_getExceptionSpecificationType(
T,
);
}
late final _clang_getExceptionSpecificationType_ptr =
_lookup<ffi.NativeFunction<ffi.Int32 Function(CXType)>>(
'clang_getExceptionSpecificationType');
late final _clang_getExceptionSpecificationType =
_clang_getExceptionSpecificationType_ptr
.asFunction<int Function(CXType)>();
/// Retrieve the number of non-variadic parameters associated with a function
/// type.
int clang_getNumArgTypes(
CXType T,
) {
return _clang_getNumArgTypes(
T,
);
}
late final _clang_getNumArgTypes_ptr =
_lookup<ffi.NativeFunction<ffi.Int32 Function(CXType)>>(
'clang_getNumArgTypes');
late final _clang_getNumArgTypes =
_clang_getNumArgTypes_ptr.asFunction<int Function(CXType)>();
/// Retrieve the type of a parameter of a function type.
CXType clang_getArgType(
CXType T,
int i,
) {
return _clang_getArgType(
T,
i,
);
}
late final _clang_getArgType_ptr =
_lookup<ffi.NativeFunction<CXType Function(CXType, ffi.Uint32)>>(
'clang_getArgType');
late final _clang_getArgType =
_clang_getArgType_ptr.asFunction<CXType Function(CXType, int)>();
/// Retrieves the base type of the ObjCObjectType.
CXType clang_Type_getObjCObjectBaseType(
CXType T,
) {
return _clang_Type_getObjCObjectBaseType(
T,
);
}
late final _clang_Type_getObjCObjectBaseType_ptr =
_lookup<ffi.NativeFunction<CXType Function(CXType)>>(
'clang_Type_getObjCObjectBaseType');
late final _clang_Type_getObjCObjectBaseType =
_clang_Type_getObjCObjectBaseType_ptr
.asFunction<CXType Function(CXType)>();
/// Retrieve the number of protocol references associated with an ObjC
/// object/id.
int clang_Type_getNumObjCProtocolRefs(
CXType T,
) {
return _clang_Type_getNumObjCProtocolRefs(
T,
);
}
late final _clang_Type_getNumObjCProtocolRefs_ptr =