Top Inners Constructors Methods
org.lwjgl.llvm

public Class ClangBuildSystem

extends Object
Class Inheritance
Imports
java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
ClangBuildSystem.Functions

Contains the function pointers loaded from ClangIndex.getLibrary().

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static void
clang_free(ByteBuffer
memory pointer to free
buffer
)

Free memory allocated by libclang, such as the buffer returned by VirtualFileOverlay_writeToBuffer or ModuleMapDescriptor_writeToBuffer.

public static long
clang_getBuildSessionTimestamp()

Return the timestamp for use with Clang's -fbuild-session-timestamp= option.

public static long
clang_ModuleMapDescriptor_create(int
is reserved, always pass 0
options
)

Create a CXModuleMapDescriptor object.

public static void
clang_ModuleMapDescriptor_dispose(long descriptor)

Dispose a CXModuleMapDescriptor object.

public static int

Returns:

0 for success, non-zero to indicate an error
clang_ModuleMapDescriptor_setFrameworkModuleName
(long descriptor, ByteBuffer name)

Sets the framework module name that the module.map describes.

public static int

Returns:

0 for success, non-zero to indicate an error
clang_ModuleMapDescriptor_setFrameworkModuleName
(long descriptor, CharSequence name)

Sets the framework module name that the module.map describes.

public static int

Returns:

0 for success, non-zero to indicate an error
clang_ModuleMapDescriptor_setUmbrellaHeader
(long descriptor, ByteBuffer name)

Sets the umbrella header name that the module.map describes.

public static int

Returns:

0 for success, non-zero to indicate an error
clang_ModuleMapDescriptor_setUmbrellaHeader
(long descriptor, CharSequence name)

Sets the umbrella header name that the module.map describes.

public static int

Returns:

0 for success, non-zero to indicate an error
clang_ModuleMapDescriptor_writeToBuffer
(long descriptor, int
is reserved, always pass 0
options
,
PointerBuffer
pointer to receive the buffer pointer, which should be disposed using free
out_buffer_ptr
,
IntBuffer
pointer to receive the buffer size
out_buffer_size
)

Write out the CXModuleMapDescriptor object to a char buffer.

public static int

Returns:

0 for success, non-zero to indicate an error
clang_VirtualFileOverlay_addFileMapping
(long overlay, ByteBuffer virtualPath, ByteBuffer realPath)

Map an absolute virtual file path to an absolute real one.

public static int

Returns:

0 for success, non-zero to indicate an error
clang_VirtualFileOverlay_addFileMapping
(long overlay, CharSequence virtualPath, CharSequence realPath)

Map an absolute virtual file path to an absolute real one.

public static long
clang_VirtualFileOverlay_create(int
is reserved, always pass 0
options
)

Create a CXVirtualFileOverlay object.

public static void
clang_VirtualFileOverlay_dispose(long overlay)

Dispose a CXVirtualFileOverlay object.

public static int

Returns:

0 for success, non-zero to indicate an error
clang_VirtualFileOverlay_setCaseSensitivity
(long overlay, int caseSensitive)

Set the case sensitivity for the CXVirtualFileOverlay object.

public static int

Returns:

0 for success, non-zero to indicate an error
clang_VirtualFileOverlay_writeToBuffer
(long overlay, int
is reserved, always pass 0
options
,
PointerBuffer
pointer to receive the buffer pointer, which should be disposed using free
out_buffer_ptr
,
IntBuffer
pointer to receive the buffer size
out_buffer_size
)

Write out the CXVirtualFileOverlay object to a char buffer.

public static void
nclang_free(long buffer)

Unsafe version of: free

public static int
public static int
public static int
nclang_ModuleMapDescriptor_writeToBuffer(long descriptor, int options, long out_buffer_ptr, long out_buffer_size)

Unsafe version of: ModuleMapDescriptor_writeToBuffer

public static int
nclang_VirtualFileOverlay_addFileMapping(long overlay, long virtualPath, long realPath)

Unsafe version of: VirtualFileOverlay_addFileMapping

public static int
nclang_VirtualFileOverlay_writeToBuffer(long overlay, int options, long out_buffer_ptr, long out_buffer_size)

Unsafe version of: VirtualFileOverlay_writeToBuffer

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ClangBuildSystemback to summary
protected ClangBuildSystem()

Method Detail

clang_freeback to summary
public static void clang_free(ByteBuffer buffer)

Free memory allocated by libclang, such as the buffer returned by VirtualFileOverlay_writeToBuffer or ModuleMapDescriptor_writeToBuffer.

Parameters
buffer:ByteBuffer

memory pointer to free

clang_getBuildSessionTimestampback to summary
public static long clang_getBuildSessionTimestamp()

Return the timestamp for use with Clang's -fbuild-session-timestamp= option.

Annotations
@NativeType:unsigned long long
clang_ModuleMapDescriptor_createback to summary
public static long clang_ModuleMapDescriptor_create(int options)

Create a CXModuleMapDescriptor object. Must be disposed with ModuleMapDescriptor_dispose.

Parameters
options:int

is reserved, always pass 0

Annotations
@NativeType:CXModuleMapDescriptor
clang_ModuleMapDescriptor_disposeback to summary
public static void clang_ModuleMapDescriptor_dispose(long descriptor)

Dispose a CXModuleMapDescriptor object.

clang_ModuleMapDescriptor_setFrameworkModuleNameback to summary
public static int clang_ModuleMapDescriptor_setFrameworkModuleName(long descriptor, ByteBuffer name)

Sets the framework module name that the module.map describes.

Returns:int

0 for success, non-zero to indicate an error

Annotations
@NativeType:enum CXErrorCode
clang_ModuleMapDescriptor_setFrameworkModuleNameback to summary
public static int clang_ModuleMapDescriptor_setFrameworkModuleName(long descriptor, CharSequence name)

Sets the framework module name that the module.map describes.

Returns:int

0 for success, non-zero to indicate an error

Annotations
@NativeType:enum CXErrorCode
clang_ModuleMapDescriptor_setUmbrellaHeaderback to summary
public static int clang_ModuleMapDescriptor_setUmbrellaHeader(long descriptor, ByteBuffer name)

Sets the umbrella header name that the module.map describes.

Returns:int

0 for success, non-zero to indicate an error

Annotations
@NativeType:enum CXErrorCode
clang_ModuleMapDescriptor_setUmbrellaHeaderback to summary
public static int clang_ModuleMapDescriptor_setUmbrellaHeader(long descriptor, CharSequence name)

Sets the umbrella header name that the module.map describes.

Returns:int

0 for success, non-zero to indicate an error

Annotations
@NativeType:enum CXErrorCode
clang_ModuleMapDescriptor_writeToBufferback to summary
public static int clang_ModuleMapDescriptor_writeToBuffer(long descriptor, int options, PointerBuffer out_buffer_ptr, IntBuffer out_buffer_size)

Write out the CXModuleMapDescriptor object to a char buffer.

Parameters
options:int

is reserved, always pass 0

out_buffer_ptr:PointerBuffer

pointer to receive the buffer pointer, which should be disposed using free

out_buffer_size:IntBuffer

pointer to receive the buffer size

Returns:int

0 for success, non-zero to indicate an error

Annotations
@NativeType:enum CXErrorCode
clang_VirtualFileOverlay_addFileMappingback to summary
public static int clang_VirtualFileOverlay_addFileMapping(long overlay, ByteBuffer virtualPath, ByteBuffer realPath)

Map an absolute virtual file path to an absolute real one. The virtual path must be canonicalized (not contain "."/"..").

Returns:int

0 for success, non-zero to indicate an error

Annotations
@NativeType:enum CXErrorCode
clang_VirtualFileOverlay_addFileMappingback to summary
public static int clang_VirtualFileOverlay_addFileMapping(long overlay, CharSequence virtualPath, CharSequence realPath)

Map an absolute virtual file path to an absolute real one. The virtual path must be canonicalized (not contain "."/"..").

Returns:int

0 for success, non-zero to indicate an error

Annotations
@NativeType:enum CXErrorCode
clang_VirtualFileOverlay_createback to summary
public static long clang_VirtualFileOverlay_create(int options)

Create a CXVirtualFileOverlay object. Must be disposed with VirtualFileOverlay_dispose.

Parameters
options:int

is reserved, always pass 0

Annotations
@NativeType:CXVirtualFileOverlay
clang_VirtualFileOverlay_disposeback to summary
public static void clang_VirtualFileOverlay_dispose(long overlay)

Dispose a CXVirtualFileOverlay object.

clang_VirtualFileOverlay_setCaseSensitivityback to summary
public static int clang_VirtualFileOverlay_setCaseSensitivity(long overlay, int caseSensitive)

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.

Returns:int

0 for success, non-zero to indicate an error

Annotations
@NativeType:enum CXErrorCode
clang_VirtualFileOverlay_writeToBufferback to summary
public static int clang_VirtualFileOverlay_writeToBuffer(long overlay, int options, PointerBuffer out_buffer_ptr, IntBuffer out_buffer_size)

Write out the CXVirtualFileOverlay object to a char buffer.

Parameters
options:int

is reserved, always pass 0

out_buffer_ptr:PointerBuffer

pointer to receive the buffer pointer, which should be disposed using free

out_buffer_size:IntBuffer

pointer to receive the buffer size

Returns:int

0 for success, non-zero to indicate an error

Annotations
@NativeType:enum CXErrorCode
nclang_freeback to summary
public static void nclang_free(long buffer)

Unsafe version of: free

nclang_ModuleMapDescriptor_setFrameworkModuleNameback to summary
public static int nclang_ModuleMapDescriptor_setFrameworkModuleName(long descriptor, long name)

Unsafe version of: ModuleMapDescriptor_setFrameworkModuleName

nclang_ModuleMapDescriptor_setUmbrellaHeaderback to summary
public static int nclang_ModuleMapDescriptor_setUmbrellaHeader(long descriptor, long name)

Unsafe version of: ModuleMapDescriptor_setUmbrellaHeader

nclang_ModuleMapDescriptor_writeToBufferback to summary
public static int nclang_ModuleMapDescriptor_writeToBuffer(long descriptor, int options, long out_buffer_ptr, long out_buffer_size)

Unsafe version of: ModuleMapDescriptor_writeToBuffer

nclang_VirtualFileOverlay_addFileMappingback to summary
public static int nclang_VirtualFileOverlay_addFileMapping(long overlay, long virtualPath, long realPath)

Unsafe version of: VirtualFileOverlay_addFileMapping

nclang_VirtualFileOverlay_writeToBufferback to summary
public static int nclang_VirtualFileOverlay_writeToBuffer(long overlay, int options, long out_buffer_ptr, long out_buffer_size)

Unsafe version of: VirtualFileOverlay_writeToBuffer

org.lwjgl.llvm back to summary

public final Class ClangBuildSystem.Functions

extends Object
Class Inheritance

Contains the function pointers loaded from ClangIndex.getLibrary().

Field Summary

Modifier and TypeField and Description
public static final long
free

Function address.

public static final long
getBuildSessionTimestamp

Function address.

public static final long
ModuleMapDescriptor_create

Function address.

public static final long
ModuleMapDescriptor_dispose

Function address.

public static final long
public static final long
public static final long
public static final long
public static final long
VirtualFileOverlay_create

Function address.

public static final long
VirtualFileOverlay_dispose

Function address.

public static final long
public static final long

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

freeback to summary
public static final long free

Function address.

getBuildSessionTimestampback to summary
public static final long getBuildSessionTimestamp

Function address.

ModuleMapDescriptor_createback to summary
public static final long ModuleMapDescriptor_create

Function address.

ModuleMapDescriptor_disposeback to summary
public static final long ModuleMapDescriptor_dispose

Function address.

ModuleMapDescriptor_setFrameworkModuleNameback to summary
public static final long ModuleMapDescriptor_setFrameworkModuleName

Function address.

ModuleMapDescriptor_setUmbrellaHeaderback to summary
public static final long ModuleMapDescriptor_setUmbrellaHeader

Function address.

ModuleMapDescriptor_writeToBufferback to summary
public static final long ModuleMapDescriptor_writeToBuffer

Function address.

VirtualFileOverlay_addFileMappingback to summary
public static final long VirtualFileOverlay_addFileMapping

Function address.

VirtualFileOverlay_createback to summary
public static final long VirtualFileOverlay_create

Function address.

VirtualFileOverlay_disposeback to summary
public static final long VirtualFileOverlay_dispose

Function address.

VirtualFileOverlay_setCaseSensitivityback to summary
public static final long VirtualFileOverlay_setCaseSensitivity

Function address.

VirtualFileOverlay_writeToBufferback to summary
public static final long VirtualFileOverlay_writeToBuffer

Function address.

Constructor Detail

Functionsback to summary
private Functions()