pub struct Dumps {
pub macros: bool,
}Expand description
What the -d family asks to be dumped alongside, or instead of, the preprocessed output.
Design: spec/04-driver-and-cli.md section 4.4.
GCC spells these as letters packed into one flag, so -dDI is two of them, and a letter it
does not know is ignored rather than rejected. That last part is deliberate on GCC’s side
and worth copying: the family is a debugging aid and a build that passes -dumpbase should
not die on the -d.
Fields§
§macros: bool-dM. Print the macros that are defined at the end, and nothing else.
Implementations§
Source§impl Dumps
impl Dumps
Sourcepub fn is_family(arg: &str) -> bool
pub fn is_family(arg: &str) -> bool
Whether arg is a flag from this family rather than something else beginning with
-d.
The check is here rather than in the driver so that the set of letters and the set of
flags accepted cannot drift apart. It matters because -dumpversion also begins with
-d, and a family that swallowed every such flag would turn a flag we have not written
into a dump of nothing.