#[non_exhaustive]pub struct CompileGroup {
pub source_indexes: Vec<usize>,
pub language: String,
pub language_standard: Option<LanguageStandard>,
pub compile_command_fragments: Vec<CompileCommandFragment>,
pub includes: Vec<Include>,
pub frameworks: Vec<Framework>,
pub precompile_headers: Vec<PrecompileHeader>,
pub defines: Vec<Define>,
pub sysroot: Option<SysRootPath>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.source_indexes: Vec<usize>Indices to sources belonging to the compile-group.
language: StringA string specifying the language (e.g. C, CXX, Fortran) of the toolchain is used to compile the source file.
language_standard: Option<LanguageStandard>Optional member that is present when the language standard is set explicitly (e.g. via CXX_STANDARD) or implicitly by compile features. This field was added in codemodel version 2.2.
compile_command_fragments: Vec<CompileCommandFragment>Optional member that is present when fragments of the compiler command line invocation are available.
includes: Vec<Include>include directories.
frameworks: Vec<Framework>available frameworks (Apple) This field was added in codemodel version 2.6.
precompile_headers: Vec<PrecompileHeader>precompiled headers
defines: Vec<Define>defines
sysroot: Option<SysRootPath>Optional member that is present when the CMAKE_SYSROOT_COMPILE or CMAKE_SYSROOT variable is defined.
Implementations§
Source§impl CompileGroup
impl CompileGroup
Sourcepub fn defines(&self) -> Vec<String>
pub fn defines(&self) -> Vec<String>
Returns a list of defines for the compile group
Compile command fragments can contain defines as well (/D or -D).
Sourcepub fn flags(&self) -> Vec<String>
pub fn flags(&self) -> Vec<String>
Returns a list of compile flags for the compile group
Compile command fragments are split into single flags and defines (/D or -D) are filtered out.
Sourcepub fn compile_fragments(&self) -> Vec<String>
pub fn compile_fragments(&self) -> Vec<String>
Compile command fragments are split into single flags.
Trait Implementations§
Source§impl Clone for CompileGroup
impl Clone for CompileGroup
Source§fn clone(&self) -> CompileGroup
fn clone(&self) -> CompileGroup
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more