Class ClangBuildSystem

java.lang.Object
org.lwjgl.llvm.ClangBuildSystem

public class ClangBuildSystem extends Object
  • 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 a CXVirtualFileOverlay object. Must be disposed with VirtualFileOverlay_dispose.
      Parameters:
      options - is reserved, always pass 0
    • nclang_VirtualFileOverlay_addFileMapping

      public static int nclang_VirtualFileOverlay_addFileMapping(long overlay, long virtualPath, long realPath)
    • 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 the CXVirtualFileOverlay object. The CXVirtualFileOverlay 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)
    • clang_VirtualFileOverlay_writeToBuffer

      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 - is reserved, always pass 0
      out_buffer_ptr - pointer to receive the buffer pointer, which should be disposed using free
      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

      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 - memory pointer to free
    • clang_VirtualFileOverlay_dispose

      public static void clang_VirtualFileOverlay_dispose(long overlay)
      Dispose a CXVirtualFileOverlay object.
    • clang_ModuleMapDescriptor_create

      public static long clang_ModuleMapDescriptor_create(int options)
      Create a CXModuleMapDescriptor object. Must be disposed with ModuleMapDescriptor_dispose.
      Parameters:
      options - is reserved, always pass 0
    • nclang_ModuleMapDescriptor_setFrameworkModuleName

      public static int nclang_ModuleMapDescriptor_setFrameworkModuleName(long descriptor, long name)
    • 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)
    • clang_ModuleMapDescriptor_setUmbrellaHeader

      public static int clang_ModuleMapDescriptor_setUmbrellaHeader(long descriptor, ByteBuffer name)
      Sets the umbrella header name that the module.map describes.
      Returns:
      0 for success, non-zero to indicate an error
    • clang_ModuleMapDescriptor_setUmbrellaHeader

      public static int clang_ModuleMapDescriptor_setUmbrellaHeader(long descriptor, CharSequence name)
      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)
    • clang_ModuleMapDescriptor_writeToBuffer

      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 - is reserved, always pass 0
      out_buffer_ptr - pointer to receive the buffer pointer, which should be disposed using free
      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 a CXModuleMapDescriptor object.