pub struct ToolCommand { /* private fields */ }Expand description
One compile as a Clang-based tool reads it. Only for_clang_tools
makes one, so compile_commands.json and doctor’s check cannot come to
build it differently.
Implementations§
Source§impl ToolCommand
impl ToolCommand
Sourcepub fn args(&self) -> &[OsString]
pub fn args(&self) -> &[OsString]
The arguments after the compiler’s program, as compile_commands.json
writes them: a tool there learns from the program which driver and
target to read them as. Given after -- instead, they need
ToolCommand::after_double_dash.
Sourcepub fn after_double_dash(&self) -> Vec<OsString>
pub fn after_double_dash(&self) -> Vec<OsString>
The arguments as given after --, where there is no program: a
cl-style command is read as clang-cl’s only with --driver-mode=cl,
and cl’s own flags name no target, so MSVC’s gets the one it builds
for. An LLVM driver’s flags already name it. The source is among
them; a tool given its file before -- is given it once only if the
caller leaves it out here.
Trait Implementations§
Source§impl Clone for ToolCommand
impl Clone for ToolCommand
Source§impl Debug for ToolCommand
impl Debug for ToolCommand
impl Eq for ToolCommand
Source§impl PartialEq for ToolCommand
impl PartialEq for ToolCommand
impl StructuralPartialEq for ToolCommand
Auto Trait Implementations§
impl Forget for ToolCommand
impl Freeze for ToolCommand
impl Move for ToolCommand
impl RefUnwindSafe for ToolCommand
impl Send for ToolCommandwhere
RawVecInner: Send,
impl Sync for ToolCommandwhere
RawVecInner: Sync,
impl Unpin for ToolCommand
impl UnsafeUnpin for ToolCommand
impl UnwindSafe for ToolCommandwhere
RawVecInner: UnwindSafe,
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