Struct cmake_file_api::objects::codemodel_v2::target::CompileGroup
source · #[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 moresource§impl Debug for CompileGroup
impl Debug for CompileGroup
source§impl Default for CompileGroup
impl Default for CompileGroup
source§fn default() -> CompileGroup
fn default() -> CompileGroup
source§impl<'de> Deserialize<'de> for CompileGroup
impl<'de> Deserialize<'de> for CompileGroup
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl PartialEq for CompileGroup
impl PartialEq for CompileGroup
source§impl Serialize for CompileGroup
impl Serialize for CompileGroup
impl StructuralPartialEq for CompileGroup
Auto Trait Implementations§
impl Freeze for CompileGroup
impl RefUnwindSafe for CompileGroup
impl Send for CompileGroup
impl Sync for CompileGroup
impl Unpin for CompileGroup
impl UnwindSafe for CompileGroup
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)