alexfh added a comment.

In https://reviews.llvm.org/D24339#537488, @malcolm.parsons wrote:

> How do I add FixIt hints?
>  They should be simple removals, but how do I decide whether to remove the 
> following comma, preceding comma or preceding colon?


Just remove the entry and leave the comma and the colon alone. Clang-tidy needs 
to learn to clean up the code after such replacements using clang-format's 
cleanupAroundReplacements. Filed https://llvm.org/bugs/show_bug.cgi?id=30379


https://reviews.llvm.org/D24339



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

Reply via email to