A compilation database holds all information used to compile files in a project. For each file in the database, it can be queried for the working directory or the command line used for the compiler invocation.
Represents the command line invocation to compile a specific file.
Contains the results of a search in the compilation database
Error codes for Compilation Database
Free the given compilation database
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.
Get all the compile commands in the given compilation database.
Find the compile commands used for a file. The compile commands must be freed by \c clang_CompileCommands_dispose.
Get the I'th argument value in the compiler invocations
Get the working directory where the CompileCommand was executed from
Get the filename associated with the CompileCommand.
Get the I'th mapped source content for the compiler invocation.
Get the I'th mapped source path for the compiler invocation.
Get the number of arguments in the compiler invocation.
Get the number of source mappings for the compiler invocation.
Free the given CompileCommands
Get the I'th CompileCommand for a file
Get the number of CompileCommand we have for a file