[PATCH] Output messages when clang-tidy applies fix-its.
Daniel Jasper
djasper at google.com
Tue Apr 1 00:42:47 PDT 2014
If you don't see an immediate use case, never mind. Easy enough to add
later.
On Mon, Mar 31, 2014 at 5:15 PM, Alexander Kornienko <alexfh at google.com>wrote:
> Ping.
>
>
> On Thu, Mar 27, 2014 at 11:52 AM, Alexander Kornienko <alexfh at google.com>wrote:
>
>> On Thu, Mar 27, 2014 at 11:06 AM, Daniel Jasper <djasper at google.com>wrote:
>>
>>>
>>> I think we should make it possibly to suppress these with a
>>> commandline flag, though (fine for a follow-up).
>>>
>>
>> That would be easy, but I'd like to understand the specific use case
>> where you want to silence these messages.
>>
>> Here's an example:
>>
>> 1 $ clang-tidy q.cc --
>> 2 q.cc:1:10: warning: expected ';' after top level declarator
>> 3 int a = 1
>> 4 ^
>> 5 ;
>> 6 $ clang-tidy -fix q.cc --
>> 7 q.cc:1:10: warning: expected ';' after top level declarator
>> 8 int a = 1
>> 9 ^
>> 10 ;
>> 11 q.cc:1:10: note: FIX-IT applied suggested code changes
>> 12 int a = 1
>> 13 ^
>> 14 clang-tidy applied 1 of 1 suggested fixes.
>>
>>
>> There are two kinds of messages here:
>> 1. one note per fix-it hint (success/failure) - lines 11-13, and I'd
>> like to always remove the part displayed on lines 12-13.
>> 2. a single message in the very end with the overall stats - line 14,
>> it's the only message output to stderr.
>>
>> So what and in which cases would you like to be able to silence?
>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140401/060b61fd/attachment.html>
More information about the cfe-commits
mailing list