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

Douglas Gregor dgregor at apple.com
Sat May 2 20:56:44 PDT 2009


On May 1, 2009, at 5:39 PM, Chris Lattner wrote:

>
> 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 :)

Okay, done. Thanks!

	- Doug



More information about the cfe-commits mailing list