pub fn write_clang_warning<W: Write>(
offenders: &[OffenderRecord],
writer: W,
) -> Result<()>Expand description
Write Clang/GCC-style warning lines for offenders to writer.
Format: {path}:{line}:{col}: {severity}: {message} [{rule}],
terminated by \n. Non-UTF-8 paths are skipped with a stderr
warning. An empty offenders slice writes nothing.
ยงErrors
Returns any io::Error produced by writer while emitting a
warning line. Stops at the first error; partially-written output
may have reached the writer before the failure.