[PATCH] D71199: [clang-tidy][WIP] New check readability-prefer-initialization-list

Eugene Zelenko via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 12 06:38:41 PST 2019


Eugene.Zelenko added a comment.

> This check is to enforce C++ core guideline C.49 while the modernize check enforces guideline C.48. The two must be synchronized, and I think that this new check should do that: for initializations that should  be done using in-class initializers according to the other checker this checker must suggest the same. For the rest we should suggest member initializers in the constructor.

It should be in //cppcoreguidelines// module.


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

https://reviews.llvm.org/D71199





More information about the cfe-commits mailing list