[llvm-commits] [PATCH] Add support for OutputDebugString to raw_ostream and add support for virtualized out/err streams

Erik Olofsson Erik.Olofsson at hansoft.se
Tue Mar 1 20:05:40 PST 2011


Adds support for OutputDebugString to raw_ostream as well as one object to access a virtualized errs and outs. This is needed for subsequent patches in clang so you can redirect errs and outs to OutputDebugString. The rationale for needing this is that debugging from Visual Studio will not allow you to capture stdout and stderr into its Output window but OutputDebugString is captured there.

This change (in clang...) will also be useful if you want to redirect compiler output you can just create your own raw_output_streams and pass to the compiler functions.

Together with MSVC style diagnostics this really helps in clang development where you can get from diagnostics directly to the code in question when debugging.

Please review and submit if good.

Regards,
Erik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20110302/34fbf90c/attachment.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: llvm-outputdebugstring-support.patch.txt
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20110302/34fbf90c/attachment.txt>


More information about the llvm-commits mailing list