Package org.lwjgl.llvm
Class ClangBuildSystem
java.lang.Object
org.lwjgl.llvm.ClangBuildSystem
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classContains the function pointers loaded fromClangIndex.getLibrary(). -
Method Summary
Modifier and TypeMethodDescriptionstatic voidclang_free(ByteBuffer buffer) Free memory allocated by libclang, such as the buffer returned byVirtualFileOverlay_writeToBufferorModuleMapDescriptor_writeToBuffer.static longReturn the timestamp for use with Clang's-fbuild-session-timestamp=option.static longclang_ModuleMapDescriptor_create(int options) Create aCXModuleMapDescriptorobject.static voidclang_ModuleMapDescriptor_dispose(long descriptor) Dispose aCXModuleMapDescriptorobject.static intclang_ModuleMapDescriptor_setFrameworkModuleName(long descriptor, CharSequence name) Sets the framework module name that the module.modulemap describes.static intclang_ModuleMapDescriptor_setFrameworkModuleName(long descriptor, ByteBuffer name) Sets the framework module name that the module.modulemap describes.static intclang_ModuleMapDescriptor_setUmbrellaHeader(long descriptor, CharSequence name) Sets the umbrella header name that the module.modulemap describes.static intclang_ModuleMapDescriptor_setUmbrellaHeader(long descriptor, ByteBuffer name) Sets the umbrella header name that the module.modulemap describes.static intclang_ModuleMapDescriptor_writeToBuffer(long descriptor, int options, org.lwjgl.PointerBuffer out_buffer_ptr, IntBuffer out_buffer_size) Write out theCXModuleMapDescriptorobject to a char buffer.static intclang_VirtualFileOverlay_addFileMapping(long overlay, CharSequence virtualPath, CharSequence realPath) Map an absolute virtual file path to an absolute real one.static intclang_VirtualFileOverlay_addFileMapping(long overlay, ByteBuffer virtualPath, ByteBuffer realPath) Map an absolute virtual file path to an absolute real one.static longclang_VirtualFileOverlay_create(int options) Create aCXVirtualFileOverlayobject.static voidclang_VirtualFileOverlay_dispose(long overlay) Dispose aCXVirtualFileOverlayobject.static intclang_VirtualFileOverlay_setCaseSensitivity(long overlay, int caseSensitive) Set the case sensitivity for theCXVirtualFileOverlayobject.static intclang_VirtualFileOverlay_writeToBuffer(long overlay, int options, org.lwjgl.PointerBuffer out_buffer_ptr, IntBuffer out_buffer_size) Write out theCXVirtualFileOverlayobject to a char buffer.static voidnclang_free(long buffer) Unsafe version of:freestatic intnclang_ModuleMapDescriptor_setFrameworkModuleName(long descriptor, long name) Unsafe version of:ModuleMapDescriptor_setFrameworkModuleNamestatic intnclang_ModuleMapDescriptor_setUmbrellaHeader(long descriptor, long name) Unsafe version of:ModuleMapDescriptor_setUmbrellaHeaderstatic intnclang_ModuleMapDescriptor_writeToBuffer(long descriptor, int options, long out_buffer_ptr, long out_buffer_size) Unsafe version of:ModuleMapDescriptor_writeToBufferstatic intnclang_VirtualFileOverlay_addFileMapping(long overlay, long virtualPath, long realPath) Unsafe version of:VirtualFileOverlay_addFileMappingstatic intnclang_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 aCXVirtualFileOverlayobject. 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 theCXVirtualFileOverlayobject. TheCXVirtualFileOverlayobject 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, org.lwjgl.PointerBuffer out_buffer_ptr, IntBuffer out_buffer_size) Write out theCXVirtualFileOverlayobject to a char buffer.- Parameters:
options- is reserved, always pass 0out_buffer_ptr- pointer to receive the buffer pointer, which should be disposed usingfreeout_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_writeToBufferorModuleMapDescriptor_writeToBuffer.- Parameters:
buffer- memory pointer to free
-
clang_VirtualFileOverlay_dispose
public static void clang_VirtualFileOverlay_dispose(long overlay) Dispose aCXVirtualFileOverlayobject. -
clang_ModuleMapDescriptor_create
public static long clang_ModuleMapDescriptor_create(int options) Create aCXModuleMapDescriptorobject. 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.modulemap 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.modulemap 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.modulemap describes.- Returns:
- 0 for success, non-zero to indicate an error
-
clang_ModuleMapDescriptor_setUmbrellaHeader
Sets the umbrella header name that the module.modulemap 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, org.lwjgl.PointerBuffer out_buffer_ptr, IntBuffer out_buffer_size) Write out theCXModuleMapDescriptorobject to a char buffer.- Parameters:
options- is reserved, always pass 0out_buffer_ptr- pointer to receive the buffer pointer, which should be disposed usingfreeout_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 aCXModuleMapDescriptorobject.
-