<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Oct 20, 2014 at 10:43 AM, Justin Bogner <span dir="ltr"><<a href="mailto:mail@justinbogner.com" target="_blank">mail@justinbogner.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Currently, when --serialize-diagnostics is passed this only includes the<br>
diagnostics from clang -cc1, and driver diagnostics are dropped. This<br>
causes issues for tools that use the serialized diagnostics, since<br>
stderr is lost and these diagnostics aren't seen at all.<br>
<br>
This patch handles this by merging the diagnostics from the CC1 process<br>
and the driver diagnostics into a single file when the driver invokes<br>
CC1.</blockquote><div><br></div><div>The idea seems (superficially) reasonable to me. Have you tested this in the case where the driver is given multiple input files to process? Please add a test covering that case.</div><div><br></div><div>What about the case where the clang driver runs a tool other than the clang frontend? Your hypothetical process that runs clang with --serialize-diagnostics and drops its stderr will lose diagnostics there too, right?</div></div></div></div>