[cfe-commits] r70611 - /cfe/trunk/tools/clang-cc/clang-cc.cpp

Chris Lattner clattner at apple.com
Fri May 1 17:39:53 PDT 2009


On May 1, 2009, at 5:03 PM, Douglas Gregor wrote:

> Author: dgregor
> Date: Fri May  1 19:03:46 2009
> New Revision: 70611
>
> URL: http://llvm.org/viewvc/llvm-project?rev=70611&view=rev
> Log:
> When -fmessage-length=N is not specified, and if standard error is
> going to a terminal, word-wrap to the length of the terminal.

Awesome! Instead of calling isatty, please use  
llvm::sys::Process::StandardErrIsDisplayed().  It isn't a huge deal,  
since you have to use unix-specific code to get the terminal width,  
but it helps :)

-Chris



More information about the cfe-commits mailing list