pub struct CppCompileContext {
pub project_include_roots: Vec<PathBuf>,
pub system_include_roots: Vec<PathBuf>,
pub forced_includes: Vec<PathBuf>,
pub defined_macros: HashSet<String>,
/* private fields */
}Expand description
The compiler configuration Bifrost can safely use for one source file.
This is deliberately narrower than a compiler invocation. It records only
context that later semantic diagnostics need and never executes command.
Fields§
§project_include_roots: Vec<PathBuf>§system_include_roots: Vec<PathBuf>§forced_includes: Vec<PathBuf>§defined_macros: HashSet<String>Implementations§
Source§impl CppCompileContext
impl CppCompileContext
Sourcepub fn external_angle_include_roots<'a>(
&'a self,
workspace_root: &'a Path,
) -> impl Iterator<Item = &'a Path> + 'a
pub fn external_angle_include_roots<'a>( &'a self, workspace_root: &'a Path, ) -> impl Iterator<Item = &'a Path> + 'a
Explicit external roots in compiler search order for angle includes.
Trait Implementations§
Source§impl Clone for CppCompileContext
impl Clone for CppCompileContext
Source§fn clone(&self) -> CppCompileContext
fn clone(&self) -> CppCompileContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CppCompileContext
impl Debug for CppCompileContext
impl Eq for CppCompileContext
Source§impl PartialEq for CppCompileContext
impl PartialEq for CppCompileContext
impl StructuralPartialEq for CppCompileContext
Auto Trait Implementations§
impl Freeze for CppCompileContext
impl RefUnwindSafe for CppCompileContext
impl Send for CppCompileContext
impl Sync for CppCompileContext
impl Unpin for CppCompileContext
impl UnsafeUnpin for CppCompileContext
impl UnwindSafe for CppCompileContext
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
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more