[PATCH] Output messages when clang-tidy applies fix-its.
Alexander Kornienko
alexfh at google.com
Thu Mar 27 03:52:39 PDT 2014
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/20140327/d8607a35/attachment.html>
More information about the cfe-commits
mailing list