Top Inners Fields Constructors Methods
org.lwjgl.llvm

public Class ClangCompilationDatabase

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

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
ClangCompilationDatabase.Functions

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

Field Summary

Modifier and TypeField and Description
public static final int
CXCompilationDatabase_CanNotLoadDatabase

Error codes for Compilation Database

(CXCompilationDatabase_Error) Enum values:

public static final int
CXCompilationDatabase_NoError

Error codes for Compilation Database

(CXCompilationDatabase_Error) Enum values:

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static void
clang_CompilationDatabase_dispose(long database)

Free the given compilation database

public static long
clang_CompilationDatabase_fromDirectory(ByteBuffer BuildDir, IntBuffer ErrorCode)

Creates a compilation database from the database found in directory buildDir.

public static long
clang_CompilationDatabase_fromDirectory(CharSequence BuildDir, IntBuffer ErrorCode)

Creates a compilation database from the database found in directory buildDir.

public static long
clang_CompilationDatabase_getAllCompileCommands(long database)

Get all the compile commands in the given compilation database.

public static long
clang_CompilationDatabase_getCompileCommands(long database, ByteBuffer CompleteFileName)

Find the compile commands used for a file.

public static long
clang_CompilationDatabase_getCompileCommands(long database, CharSequence CompleteFileName)

Find the compile commands used for a file.

public static CXString
clang_CompileCommand_getArg(long command, int I, CXString __result)

Get the I'th argument value in the compiler invocations

Invariant :

  • argument 0 is the compiler executable
public static CXString
clang_CompileCommand_getDirectory(long command, CXString __result)

Get the working directory where the CompileCommand was executed from

public static CXString
clang_CompileCommand_getFilename(long command, CXString __result)

Get the filename associated with the CompileCommand.

public static CXString
clang_CompileCommand_getMappedSourceContent(long command, int I, CXString __result)

Get the I'th mapped source content for the compiler invocation.

public static CXString
clang_CompileCommand_getMappedSourcePath(long command, int I, CXString __result)

Get the I'th mapped source path for the compiler invocation.

public static int
clang_CompileCommand_getNumArgs(long command)

Get the number of arguments in the compiler invocation.

public static int
clang_CompileCommand_getNumMappedSources(long command)

Get the number of source mappings for the compiler invocation.

public static void
clang_CompileCommands_dispose(long commands)

Free the given CompileCommands

public static long
clang_CompileCommands_getCommand(long commands, int I)

Get the I'th CompileCommand for a file

Note : 0 <= i <clang_CompileCommands_getSize(CXCompileCommands)

public static int
clang_CompileCommands_getSize(long commands)

Get the number of CompileCommand we have for a file

public static long
nclang_CompilationDatabase_fromDirectory(long BuildDir, long ErrorCode)

Unsafe version of: CompilationDatabase_fromDirectory

public static long
nclang_CompilationDatabase_getCompileCommands(long database, long CompleteFileName)

Unsafe version of: CompilationDatabase_getCompileCommands

public static native void
nclang_CompileCommand_getArg(long command, int I, long __functionAddress, long __result)

Unsafe version of: CompileCommand_getArg

public static void
nclang_CompileCommand_getArg(long command, int I, long __result)

Unsafe version of: CompileCommand_getArg

public static native void
nclang_CompileCommand_getDirectory(long command, long __functionAddress, long __result)

Unsafe version of: CompileCommand_getDirectory

public static void
nclang_CompileCommand_getDirectory(long command, long __result)

Unsafe version of: CompileCommand_getDirectory

public static native void
nclang_CompileCommand_getFilename(long command, long __functionAddress, long __result)

Unsafe version of: CompileCommand_getFilename

public static void
nclang_CompileCommand_getFilename(long command, long __result)

Unsafe version of: CompileCommand_getFilename

public static native void
nclang_CompileCommand_getMappedSourceContent(long command, int I, long __functionAddress, long __result)

Unsafe version of: CompileCommand_getMappedSourceContent

public static void
nclang_CompileCommand_getMappedSourceContent(long command, int I, long __result)

Unsafe version of: CompileCommand_getMappedSourceContent

public static native void
nclang_CompileCommand_getMappedSourcePath(long command, int I, long __functionAddress, long __result)

Unsafe version of: CompileCommand_getMappedSourcePath

public static void
nclang_CompileCommand_getMappedSourcePath(long command, int I, long __result)

Unsafe version of: CompileCommand_getMappedSourcePath

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CXCompilationDatabase_CanNotLoadDatabaseback to summary
public static final int CXCompilationDatabase_CanNotLoadDatabase

Error codes for Compilation Database

(CXCompilationDatabase_Error)

Enum values:
CXCompilationDatabase_NoErrorback to summary
public static final int CXCompilationDatabase_NoError

Error codes for Compilation Database

(CXCompilationDatabase_Error)

Enum values:

Constructor Detail

ClangCompilationDatabaseback to summary
protected ClangCompilationDatabase()

Method Detail

clang_CompilationDatabase_disposeback to summary
public static void clang_CompilationDatabase_dispose(long database)

Free the given compilation database

clang_CompilationDatabase_fromDirectoryback to summary
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.

Annotations
@NativeType:CXCompilationDatabase
clang_CompilationDatabase_fromDirectoryback to summary
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.

Annotations
@NativeType:CXCompilationDatabase
clang_CompilationDatabase_getAllCompileCommandsback to summary
public static long clang_CompilationDatabase_getAllCompileCommands(long database)

Get all the compile commands in the given compilation database.

Annotations
@NativeType:CXCompileCommands
clang_CompilationDatabase_getCompileCommandsback to summary
public static long clang_CompilationDatabase_getCompileCommands(long database, ByteBuffer CompleteFileName)

Find the compile commands used for a file. The compile commands must be freed by clang_CompileCommands_dispose.

Annotations
@NativeType:CXCompileCommands
clang_CompilationDatabase_getCompileCommandsback to summary
public static long clang_CompilationDatabase_getCompileCommands(long database, CharSequence CompleteFileName)

Find the compile commands used for a file. The compile commands must be freed by clang_CompileCommands_dispose.

Annotations
@NativeType:CXCompileCommands
clang_CompileCommand_getArgback to summary
public static CXString clang_CompileCommand_getArg(long command, int I, CXString __result)

Get the I'th argument value in the compiler invocations

Invariant :

  • argument 0 is the compiler executable
clang_CompileCommand_getDirectoryback to summary
public static CXString clang_CompileCommand_getDirectory(long command, CXString __result)

Get the working directory where the CompileCommand was executed from

clang_CompileCommand_getFilenameback to summary
public static CXString clang_CompileCommand_getFilename(long command, CXString __result)

Get the filename associated with the CompileCommand.

clang_CompileCommand_getMappedSourceContentback to summary
public static CXString clang_CompileCommand_getMappedSourceContent(long command, int I, CXString __result)

Get the I'th mapped source content for the compiler invocation.

clang_CompileCommand_getMappedSourcePathback to summary
public static CXString clang_CompileCommand_getMappedSourcePath(long command, int I, CXString __result)

Get the I'th mapped source path for the compiler invocation.

clang_CompileCommand_getNumArgsback to summary
public static int clang_CompileCommand_getNumArgs(long command)

Get the number of arguments in the compiler invocation.

Annotations
@NativeType:unsigned int
clang_CompileCommand_getNumMappedSourcesback to summary
public static int clang_CompileCommand_getNumMappedSources(long command)

Get the number of source mappings for the compiler invocation.

Annotations
@NativeType:unsigned int
clang_CompileCommands_disposeback to summary
public static void clang_CompileCommands_dispose(long commands)

Free the given CompileCommands

clang_CompileCommands_getCommandback to summary
public static long clang_CompileCommands_getCommand(long commands, int I)

Get the I'th CompileCommand for a file

Note : 0 <= i <clang_CompileCommands_getSize(CXCompileCommands)

Annotations
@NativeType:CXCompileCommand
clang_CompileCommands_getSizeback to summary
public static int clang_CompileCommands_getSize(long commands)

Get the number of CompileCommand we have for a file

Annotations
@NativeType:unsigned int
nclang_CompilationDatabase_fromDirectoryback to summary
public static long nclang_CompilationDatabase_fromDirectory(long BuildDir, long ErrorCode)

Unsafe version of: CompilationDatabase_fromDirectory

nclang_CompilationDatabase_getCompileCommandsback to summary
public static long nclang_CompilationDatabase_getCompileCommands(long database, long CompleteFileName)

Unsafe version of: CompilationDatabase_getCompileCommands

nclang_CompileCommand_getArgback to summary
public static native void nclang_CompileCommand_getArg(long command, int I, long __functionAddress, long __result)

Unsafe version of: CompileCommand_getArg

nclang_CompileCommand_getArgback to summary
public static void nclang_CompileCommand_getArg(long command, int I, long __result)

Unsafe version of: CompileCommand_getArg

nclang_CompileCommand_getDirectoryback to summary
public static native void nclang_CompileCommand_getDirectory(long command, long __functionAddress, long __result)

Unsafe version of: CompileCommand_getDirectory

nclang_CompileCommand_getDirectoryback to summary
public static void nclang_CompileCommand_getDirectory(long command, long __result)

Unsafe version of: CompileCommand_getDirectory

nclang_CompileCommand_getFilenameback to summary
public static native void nclang_CompileCommand_getFilename(long command, long __functionAddress, long __result)

Unsafe version of: CompileCommand_getFilename

nclang_CompileCommand_getFilenameback to summary
public static void nclang_CompileCommand_getFilename(long command, long __result)

Unsafe version of: CompileCommand_getFilename

nclang_CompileCommand_getMappedSourceContentback to summary
public static native void nclang_CompileCommand_getMappedSourceContent(long command, int I, long __functionAddress, long __result)

Unsafe version of: CompileCommand_getMappedSourceContent

nclang_CompileCommand_getMappedSourceContentback to summary
public static void nclang_CompileCommand_getMappedSourceContent(long command, int I, long __result)

Unsafe version of: CompileCommand_getMappedSourceContent

nclang_CompileCommand_getMappedSourcePathback to summary
public static native void nclang_CompileCommand_getMappedSourcePath(long command, int I, long __functionAddress, long __result)

Unsafe version of: CompileCommand_getMappedSourcePath

nclang_CompileCommand_getMappedSourcePathback to summary
public static void nclang_CompileCommand_getMappedSourcePath(long command, int I, long __result)

Unsafe version of: CompileCommand_getMappedSourcePath

org.lwjgl.llvm back to summary

public final Class ClangCompilationDatabase.Functions

extends Object
Class Inheritance

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

Field Summary

Modifier and TypeField and Description
public static final long
CompilationDatabase_dispose

Function address.

public static final long
public static final long
public static final long
public static final long
CompileCommand_getArg

Function address.

public static final long
CompileCommand_getDirectory

Function address.

public static final long
CompileCommand_getFilename

Function address.

public static final long
public static final long
public static final long
CompileCommand_getNumArgs

Function address.

public static final long
public static final long
CompileCommands_dispose

Function address.

public static final long
CompileCommands_getCommand

Function address.

public static final long
CompileCommands_getSize

Function address.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CompilationDatabase_disposeback to summary
public static final long CompilationDatabase_dispose

Function address.

CompilationDatabase_fromDirectoryback to summary
public static final long CompilationDatabase_fromDirectory

Function address.

CompilationDatabase_getAllCompileCommandsback to summary
public static final long CompilationDatabase_getAllCompileCommands

Function address.

CompilationDatabase_getCompileCommandsback to summary
public static final long CompilationDatabase_getCompileCommands

Function address.

CompileCommand_getArgback to summary
public static final long CompileCommand_getArg

Function address.

CompileCommand_getDirectoryback to summary
public static final long CompileCommand_getDirectory

Function address.

CompileCommand_getFilenameback to summary
public static final long CompileCommand_getFilename

Function address.

CompileCommand_getMappedSourceContentback to summary
public static final long CompileCommand_getMappedSourceContent

Function address.

CompileCommand_getMappedSourcePathback to summary
public static final long CompileCommand_getMappedSourcePath

Function address.

CompileCommand_getNumArgsback to summary
public static final long CompileCommand_getNumArgs

Function address.

CompileCommand_getNumMappedSourcesback to summary
public static final long CompileCommand_getNumMappedSources

Function address.

CompileCommands_disposeback to summary
public static final long CompileCommands_dispose

Function address.

CompileCommands_getCommandback to summary
public static final long CompileCommands_getCommand

Function address.

CompileCommands_getSizeback to summary
public static final long CompileCommands_getSize

Function address.

Constructor Detail

Functionsback to summary
private Functions()