Package org.lwjgl.llvm
Class ClangBuildSystem
java.lang.Object
org.lwjgl.llvm.ClangBuildSystem
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Contains the function pointers loaded fromClangIndex.getLibrary()
. -
Method Summary
Modifier and TypeMethodDescriptionstatic void
clang_free
(ByteBuffer buffer) Free memory allocated by libclang, such as the buffer returned byVirtualFileOverlay_writeToBuffer
orModuleMapDescriptor_writeToBuffer
.static long
Return the timestamp for use with Clang's-fbuild-session-timestamp=
option.static long
clang_ModuleMapDescriptor_create
(int options) Create aCXModuleMapDescriptor
object.static void
clang_ModuleMapDescriptor_dispose
(long descriptor) Dispose aCXModuleMapDescriptor
object.static int
clang_ModuleMapDescriptor_setFrameworkModuleName
(long descriptor, CharSequence name) Sets the framework module name that the module.map describes.static int
clang_ModuleMapDescriptor_setFrameworkModuleName
(long descriptor, ByteBuffer name) Sets the framework module name that the module.map describes.static int
clang_ModuleMapDescriptor_setUmbrellaHeader
(long descriptor, CharSequence name) Sets the umbrella header name that the module.map describes.static int
clang_ModuleMapDescriptor_setUmbrellaHeader
(long descriptor, ByteBuffer name) Sets the umbrella header name that the module.map describes.static int
clang_ModuleMapDescriptor_writeToBuffer
(long descriptor, int options, PointerBuffer out_buffer_ptr, IntBuffer out_buffer_size) Write out theCXModuleMapDescriptor
object to a char buffer.static int
clang_VirtualFileOverlay_addFileMapping
(long overlay, CharSequence virtualPath, CharSequence realPath) Map an absolute virtual file path to an absolute real one.static int
clang_VirtualFileOverlay_addFileMapping
(long overlay, ByteBuffer virtualPath, ByteBuffer realPath) Map an absolute virtual file path to an absolute real one.static long
clang_VirtualFileOverlay_create
(int options) Create aCXVirtualFileOverlay
object.static void
clang_VirtualFileOverlay_dispose
(long overlay) Dispose aCXVirtualFileOverlay
object.static int
clang_VirtualFileOverlay_setCaseSensitivity
(long overlay, int caseSensitive) Set the case sensitivity for theCXVirtualFileOverlay
object.static int
clang_VirtualFileOverlay_writeToBuffer
(long overlay, int options, PointerBuffer out_buffer_ptr, IntBuffer out_buffer_size) Write out theCXVirtualFileOverlay
object to a char buffer.static void
nclang_free
(long buffer) Unsafe version of:free
static int
nclang_ModuleMapDescriptor_setFrameworkModuleName
(long descriptor, long name) Unsafe version of:ModuleMapDescriptor_setFrameworkModuleName
static int
nclang_ModuleMapDescriptor_setUmbrellaHeader
(long descriptor, long name) Unsafe version of:ModuleMapDescriptor_setUmbrellaHeader
static int
nclang_ModuleMapDescriptor_writeToBuffer
(long descriptor, int options, long out_buffer_ptr, long out_buffer_size) Unsafe version of:ModuleMapDescriptor_writeToBuffer
static int
nclang_VirtualFileOverlay_addFileMapping
(long overlay, long virtualPath, long realPath) Unsafe version of:VirtualFileOverlay_addFileMapping
static int
nclang_VirtualFileOverlay_writeToBuffer
(long overlay, int options, long out_buffer_ptr, long out_buffer_size) Unsafe version of:VirtualFileOverlay_writeToBuffer
-
Method Details
-
clang_getBuildSessionTimestamp
public static long clang_getBuildSessionTimestamp()Return the timestamp for use with Clang's-fbuild-session-timestamp=
option. -
clang_VirtualFileOverlay_create
public static long clang_VirtualFileOverlay_create(int options) Create aCXVirtualFileOverlay
object. Must be disposed withVirtualFileOverlay_dispose
.- Parameters:
options
- is reserved, always pass 0
-
nclang_VirtualFileOverlay_addFileMapping
public static int nclang_VirtualFileOverlay_addFileMapping(long overlay, long virtualPath, long realPath) Unsafe version of:VirtualFileOverlay_addFileMapping
-
clang_VirtualFileOverlay_addFileMapping
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:
- 0 for success, non-zero to indicate an error
-
clang_VirtualFileOverlay_addFileMapping
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:
- 0 for success, non-zero to indicate an error
-
clang_VirtualFileOverlay_setCaseSensitivity
public static int clang_VirtualFileOverlay_setCaseSensitivity(long overlay, int caseSensitive) Set the case sensitivity for theCXVirtualFileOverlay
object. TheCXVirtualFileOverlay
object is case-sensitive by default, this option can be used to override the default.- Returns:
- 0 for success, non-zero to indicate an error
-
nclang_VirtualFileOverlay_writeToBuffer
public static int nclang_VirtualFileOverlay_writeToBuffer(long overlay, int options, long out_buffer_ptr, long out_buffer_size) Unsafe version of:VirtualFileOverlay_writeToBuffer
-
clang_VirtualFileOverlay_writeToBuffer
public static int clang_VirtualFileOverlay_writeToBuffer(long overlay, int options, PointerBuffer out_buffer_ptr, IntBuffer out_buffer_size) Write out theCXVirtualFileOverlay
object to a char buffer.- Parameters:
options
- is reserved, always pass 0out_buffer_ptr
- pointer to receive the buffer pointer, which should be disposed usingfree
out_buffer_size
- pointer to receive the buffer size- Returns:
- 0 for success, non-zero to indicate an error
-
nclang_free
public static void nclang_free(long buffer) Unsafe version of:free
-
clang_free
Free memory allocated by libclang, such as the buffer returned byVirtualFileOverlay_writeToBuffer
orModuleMapDescriptor_writeToBuffer
.- Parameters:
buffer
- memory pointer to free
-
clang_VirtualFileOverlay_dispose
public static void clang_VirtualFileOverlay_dispose(long overlay) Dispose aCXVirtualFileOverlay
object. -
clang_ModuleMapDescriptor_create
public static long clang_ModuleMapDescriptor_create(int options) Create aCXModuleMapDescriptor
object. Must be disposed withModuleMapDescriptor_dispose
.- Parameters:
options
- is reserved, always pass 0
-
nclang_ModuleMapDescriptor_setFrameworkModuleName
public static int nclang_ModuleMapDescriptor_setFrameworkModuleName(long descriptor, long name) Unsafe version of:ModuleMapDescriptor_setFrameworkModuleName
-
clang_ModuleMapDescriptor_setFrameworkModuleName
public static int clang_ModuleMapDescriptor_setFrameworkModuleName(long descriptor, ByteBuffer name) Sets the framework module name that the module.map describes.- Returns:
- 0 for success, non-zero to indicate an error
-
clang_ModuleMapDescriptor_setFrameworkModuleName
public static int clang_ModuleMapDescriptor_setFrameworkModuleName(long descriptor, CharSequence name) Sets the framework module name that the module.map describes.- Returns:
- 0 for success, non-zero to indicate an error
-
nclang_ModuleMapDescriptor_setUmbrellaHeader
public static int nclang_ModuleMapDescriptor_setUmbrellaHeader(long descriptor, long name) Unsafe version of:ModuleMapDescriptor_setUmbrellaHeader
-
clang_ModuleMapDescriptor_setUmbrellaHeader
Sets the umbrella header name that the module.map describes.- Returns:
- 0 for success, non-zero to indicate an error
-
clang_ModuleMapDescriptor_setUmbrellaHeader
Sets the umbrella header name that the module.map describes.- Returns:
- 0 for success, non-zero to indicate an error
-
nclang_ModuleMapDescriptor_writeToBuffer
public static int nclang_ModuleMapDescriptor_writeToBuffer(long descriptor, int options, long out_buffer_ptr, long out_buffer_size) Unsafe version of:ModuleMapDescriptor_writeToBuffer
-
clang_ModuleMapDescriptor_writeToBuffer
public static int clang_ModuleMapDescriptor_writeToBuffer(long descriptor, int options, PointerBuffer out_buffer_ptr, IntBuffer out_buffer_size) Write out theCXModuleMapDescriptor
object to a char buffer.- Parameters:
options
- is reserved, always pass 0out_buffer_ptr
- pointer to receive the buffer pointer, which should be disposed usingfree
out_buffer_size
- pointer to receive the buffer size- Returns:
- 0 for success, non-zero to indicate an error
-
clang_ModuleMapDescriptor_dispose
public static void clang_ModuleMapDescriptor_dispose(long descriptor) Dispose aCXModuleMapDescriptor
object.
-