aaron.ballman added a comment.

In https://reviews.llvm.org/D39121#910440, @baloghadamsoftware wrote:

> In https://reviews.llvm.org/D39121#909255, @aaron.ballman wrote:
>
> > My only remaining concern is with the diagnostic message/fixit interaction 
> > itself. Let's see if @alexfh has any suggestions there, or we think of an 
> > improvement ourselves.
>
>
> What do you mean by message/fixit interaction and what is your concern there?


The diagnostic tells the user that you surround the arg to strlen with parens 
to silence the diagnostic, but the fixit doesn't do that -- it moves the 
addition to the result. That's confusing behavior. However, if you add another 
fixit to surround the arg with parens (and leave in the existing one), then 
there are conflicting fixits (you don't want to apply them both) which would 
also be confusing.


https://reviews.llvm.org/D39121



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to