rsmith added a comment.

In D59402#1516479 <https://reviews.llvm.org/D59402#1516479>, @aaronpuchert 
wrote:

> In D59402#1516432 <https://reviews.llvm.org/D59402#1516432>, @aaron.ballman 
> wrote:
>
> > Also, we're not attempting to recover from the error, which is a good point 
> > that @thakis raised. aka, if you apply the fix-it, you should also treat 
> > the declaration as though it were declared `static`.
>
>
> I think the recovery rule only applies to errors, there is no need to recover 
> from a warning.


That is incorrect, because `-Werror` can be used to promote warnings to errors. 
Please see https://clang.llvm.org/docs/InternalsManual.html#fix-it-hints for 
the rule and rationale; if it's insufficiently clear on this, we should fix it.


Repository:
  rC Clang

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D59402/new/

https://reviews.llvm.org/D59402



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

Reply via email to