[PATCH] D24339: [clang-tidy] Add check 'readability-redundant-member-init'

Alexander Kornienko via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 14 05:44:23 PDT 2016


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





More information about the cfe-commits mailing list