Package org.lwjgl.llvm
Class ClangCompilationDatabase
java.lang.Object
org.lwjgl.llvm.ClangCompilationDatabase
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classContains the function pointers loaded fromClangIndex.getLibrary(). -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intError codes for Compilation Databasestatic final intError codes for Compilation Database -
Method Summary
Modifier and TypeMethodDescriptionstatic voidclang_CompilationDatabase_dispose(long database) Free the given compilation databasestatic longclang_CompilationDatabase_fromDirectory(CharSequence BuildDir, IntBuffer ErrorCode) Creates a compilation database from the database found in directory buildDir.static longclang_CompilationDatabase_fromDirectory(ByteBuffer BuildDir, IntBuffer ErrorCode) Creates a compilation database from the database found in directory buildDir.static longclang_CompilationDatabase_getAllCompileCommands(long database) Get all the compile commands in the given compilation database.static longclang_CompilationDatabase_getCompileCommands(long database, CharSequence CompleteFileName) Find the compile commands used for a file.static longclang_CompilationDatabase_getCompileCommands(long database, ByteBuffer CompleteFileName) Find the compile commands used for a file.static CXStringclang_CompileCommand_getArg(long command, int I, CXString __result) Get the I'th argument value in the compiler invocationsstatic CXStringclang_CompileCommand_getDirectory(long command, CXString __result) Get the working directory where the CompileCommand was executed fromstatic CXStringclang_CompileCommand_getFilename(long command, CXString __result) Get the filename associated with the CompileCommand.static CXStringclang_CompileCommand_getMappedSourceContent(long command, int I, CXString __result) Get the I'th mapped source content for the compiler invocation.static CXStringclang_CompileCommand_getMappedSourcePath(long command, int I, CXString __result) Get the I'th mapped source path for the compiler invocation.static intclang_CompileCommand_getNumArgs(long command) Get the number of arguments in the compiler invocation.static intclang_CompileCommand_getNumMappedSources(long command) Get the number of source mappings for the compiler invocation.static voidclang_CompileCommands_dispose(long commands) Free the given CompileCommandsstatic longclang_CompileCommands_getCommand(long commands, int I) Get the I'th CompileCommand for a filestatic intclang_CompileCommands_getSize(long commands) Get the number of CompileCommand we have for a filestatic longnclang_CompilationDatabase_fromDirectory(long BuildDir, long ErrorCode) Unsafe version of:CompilationDatabase_fromDirectorystatic longnclang_CompilationDatabase_getCompileCommands(long database, long CompleteFileName) Unsafe version of:CompilationDatabase_getCompileCommandsstatic voidnclang_CompileCommand_getArg(long command, int I, long __result) Unsafe version of:CompileCommand_getArgstatic voidnclang_CompileCommand_getArg(long command, int I, long __functionAddress, long __result) Unsafe version of:CompileCommand_getArgstatic voidnclang_CompileCommand_getDirectory(long command, long __result) Unsafe version of:CompileCommand_getDirectorystatic voidnclang_CompileCommand_getDirectory(long command, long __functionAddress, long __result) Unsafe version of:CompileCommand_getDirectorystatic voidnclang_CompileCommand_getFilename(long command, long __result) Unsafe version of:CompileCommand_getFilenamestatic voidnclang_CompileCommand_getFilename(long command, long __functionAddress, long __result) Unsafe version of:CompileCommand_getFilenamestatic voidnclang_CompileCommand_getMappedSourceContent(long command, int I, long __result) Unsafe version of:CompileCommand_getMappedSourceContentstatic voidnclang_CompileCommand_getMappedSourceContent(long command, int I, long __functionAddress, long __result) Unsafe version of:CompileCommand_getMappedSourceContentstatic voidnclang_CompileCommand_getMappedSourcePath(long command, int I, long __result) Unsafe version of:CompileCommand_getMappedSourcePathstatic voidnclang_CompileCommand_getMappedSourcePath(long command, int I, long __functionAddress, long __result) Unsafe version of:CompileCommand_getMappedSourcePath
-
Field Details
-
CXCompilationDatabase_NoError
public static final int CXCompilationDatabase_NoErrorError codes for Compilation Database(
CXCompilationDatabase_Error)Enum values:
CompilationDatabase_NoError- No error occurredCompilationDatabase_CanNotLoadDatabase- Database can not be loaded
- See Also:
-
CXCompilationDatabase_CanNotLoadDatabase
public static final int CXCompilationDatabase_CanNotLoadDatabaseError codes for Compilation Database(
CXCompilationDatabase_Error)Enum values:
CompilationDatabase_NoError- No error occurredCompilationDatabase_CanNotLoadDatabase- Database can not be loaded
- See Also:
-
-
Method Details
-
nclang_CompilationDatabase_fromDirectory
public static long nclang_CompilationDatabase_fromDirectory(long BuildDir, long ErrorCode) Unsafe version of:CompilationDatabase_fromDirectory -
clang_CompilationDatabase_fromDirectory
public static long clang_CompilationDatabase_fromDirectory(ByteBuffer BuildDir, IntBuffer ErrorCode) Creates a compilation database from the database found in directory buildDir. For example, CMake can output a compile_commands.json which can be used to build the database.It must be freed by
clang_CompilationDatabase_dispose. -
clang_CompilationDatabase_fromDirectory
public static long clang_CompilationDatabase_fromDirectory(CharSequence BuildDir, IntBuffer ErrorCode) Creates a compilation database from the database found in directory buildDir. For example, CMake can output a compile_commands.json which can be used to build the database.It must be freed by
clang_CompilationDatabase_dispose. -
clang_CompilationDatabase_dispose
public static void clang_CompilationDatabase_dispose(long database) Free the given compilation database -
nclang_CompilationDatabase_getCompileCommands
public static long nclang_CompilationDatabase_getCompileCommands(long database, long CompleteFileName) Unsafe version of:CompilationDatabase_getCompileCommands -
clang_CompilationDatabase_getCompileCommands
public static long clang_CompilationDatabase_getCompileCommands(long database, ByteBuffer CompleteFileName) Find the compile commands used for a file. The compile commands must be freed byclang_CompileCommands_dispose. -
clang_CompilationDatabase_getCompileCommands
public static long clang_CompilationDatabase_getCompileCommands(long database, CharSequence CompleteFileName) Find the compile commands used for a file. The compile commands must be freed byclang_CompileCommands_dispose. -
clang_CompilationDatabase_getAllCompileCommands
public static long clang_CompilationDatabase_getAllCompileCommands(long database) Get all the compile commands in the given compilation database. -
clang_CompileCommands_dispose
public static void clang_CompileCommands_dispose(long commands) Free the given CompileCommands -
clang_CompileCommands_getSize
public static int clang_CompileCommands_getSize(long commands) Get the number of CompileCommand we have for a file -
clang_CompileCommands_getCommand
public static long clang_CompileCommands_getCommand(long commands, int I) Get the I'th CompileCommand for a fileNote : 0 <= i <clang_CompileCommands_getSize(CXCompileCommands)
-
nclang_CompileCommand_getDirectory
public static void nclang_CompileCommand_getDirectory(long command, long __functionAddress, long __result) Unsafe version of:CompileCommand_getDirectory -
nclang_CompileCommand_getDirectory
public static void nclang_CompileCommand_getDirectory(long command, long __result) Unsafe version of:CompileCommand_getDirectory -
clang_CompileCommand_getDirectory
Get the working directory where the CompileCommand was executed from -
nclang_CompileCommand_getFilename
public static void nclang_CompileCommand_getFilename(long command, long __functionAddress, long __result) Unsafe version of:CompileCommand_getFilename -
nclang_CompileCommand_getFilename
public static void nclang_CompileCommand_getFilename(long command, long __result) Unsafe version of:CompileCommand_getFilename -
clang_CompileCommand_getFilename
Get the filename associated with the CompileCommand. -
clang_CompileCommand_getNumArgs
public static int clang_CompileCommand_getNumArgs(long command) Get the number of arguments in the compiler invocation. -
nclang_CompileCommand_getArg
public static void nclang_CompileCommand_getArg(long command, int I, long __functionAddress, long __result) Unsafe version of:CompileCommand_getArg -
nclang_CompileCommand_getArg
public static void nclang_CompileCommand_getArg(long command, int I, long __result) Unsafe version of:CompileCommand_getArg -
clang_CompileCommand_getArg
Get the I'th argument value in the compiler invocationsInvariant :
- argument 0 is the compiler executable
-
clang_CompileCommand_getNumMappedSources
public static int clang_CompileCommand_getNumMappedSources(long command) Get the number of source mappings for the compiler invocation. -
nclang_CompileCommand_getMappedSourcePath
public static void nclang_CompileCommand_getMappedSourcePath(long command, int I, long __functionAddress, long __result) Unsafe version of:CompileCommand_getMappedSourcePath -
nclang_CompileCommand_getMappedSourcePath
public static void nclang_CompileCommand_getMappedSourcePath(long command, int I, long __result) Unsafe version of:CompileCommand_getMappedSourcePath -
clang_CompileCommand_getMappedSourcePath
public static CXString clang_CompileCommand_getMappedSourcePath(long command, int I, CXString __result) Get the I'th mapped source path for the compiler invocation. -
nclang_CompileCommand_getMappedSourceContent
public static void nclang_CompileCommand_getMappedSourceContent(long command, int I, long __functionAddress, long __result) Unsafe version of:CompileCommand_getMappedSourceContent -
nclang_CompileCommand_getMappedSourceContent
public static void nclang_CompileCommand_getMappedSourceContent(long command, int I, long __result) Unsafe version of:CompileCommand_getMappedSourceContent -
clang_CompileCommand_getMappedSourceContent
public static CXString clang_CompileCommand_getMappedSourceContent(long command, int I, CXString __result) Get the I'th mapped source content for the compiler invocation.
-