Struct json_compilation_db::Entry
source · pub struct Entry {
pub file: PathBuf,
pub arguments: Vec<String>,
pub directory: PathBuf,
pub output: Option<PathBuf>,
}
Expand description
Represents an entry of the compilation database.
Fields§
§file: PathBuf
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.
arguments: Vec<String>
The compile command executed. This must be a valid command to rerun the exact compilation step for the translation unit in the environment the build system uses. Shell expansion is not supported.
directory: PathBuf
The working directory of the compilation. All paths specified in the command or file fields must be either absolute or relative to this directory.
output: Option<PathBuf>
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.