compile_commands.json
LLVM compilation database
| Type | commandObject[] |
|---|---|
| File match |
compile_commands.json
|
| Schema URL | https://catalog.lintel.tools/schemas/schemastore/compile-commands-json/latest.json |
| Source | https://www.schemastore.org/compile-commands.json |
Validate with Lintel
npx @lintel/lintel check
Describes a format for specifying how to replay single compilations independently of the build system
Items
The working directory of the compilation. All paths specified in the command or file fields must be either absolute or relative to this directory.
The main translation unit source processed by this compilation step. This is used by tools as the key into the compilation database. There can be multiple command objects for the same file, for example if the same source file is compiled with different configurations.
The compile command executed. After JSON unescaping, this must be a valid command to rerun the exact compilation step for the translation unit in the environment the build system uses. Parameters use shell quoting and shell escaping of quotes, with '"' and '' being the only special characters. Shell expansion is not supported.
The compile command executed as list of strings.
The name of the output created by this compilation step. This field is optional. It can be used to distinguish different processing modes of the same input file.
Definitions
The working directory of the compilation. All paths specified in the command or file fields must be either absolute or relative to this directory.
The main translation unit source processed by this compilation step. This is used by tools as the key into the compilation database. There can be multiple command objects for the same file, for example if the same source file is compiled with different configurations.
The compile command executed. After JSON unescaping, this must be a valid command to rerun the exact compilation step for the translation unit in the environment the build system uses. Parameters use shell quoting and shell escaping of quotes, with '"' and '' being the only special characters. Shell expansion is not supported.
The compile command executed as list of strings.
The name of the output created by this compilation step. This field is optional. It can be used to distinguish different processing modes of the same input file.