<div dir="ltr">I don't think it matters actually.  The place in CIndex that was using this was in cindex::Logger::~Logger().  It was using the `stderr' FILE*.  stderr is unbuffered for one thing, but anwyay as long as we change the rest of the function to use llvm::errs() then everything should be fine.<br></div><br><div class="gmail_quote">On Thu, Mar 5, 2015 at 10:54 AM Reid Kleckner <<a href="mailto:rnk@google.com">rnk@google.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">There is a functional difference between raw_ostream and FILE*. raw_fd_ostreams have their own buffering that doesn't mesh well with the buffering done with the C stdio implementation. I think CIndex.cpp and all that code makes sure to print with C stdio. We should be able to resolve this pretty easily by creating a raw_file_ostream adapter class, though.<br>
<br>
<br>
<a href="http://reviews.llvm.org/D8074" target="_blank">http://reviews.llvm.org/D8074</a><br>
<br>
EMAIL PREFERENCES<br>
  <a href="http://reviews.llvm.org/settings/panel/emailpreferences/" target="_blank">http://reviews.llvm.org/<u></u>settings/panel/<u></u>emailpreferences/</a><br>
<br>
<br>
</blockquote></div>