[PATCH] D26750: [clang-tidy] Add modernize-use-default-member-init check

Eugene Zelenko via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 8 10:09:24 PST 2016


Eugene.Zelenko added a comment.

How does check handle bit fields? I encountered problem on next code in ASTContext.h:

struct TypeInfo {

  uint64_t Width;
  unsigned Align;
  bool AlignIsRequired : 1;
  
  TypeInfo() : Width(0), Align(0), AlignIsRequired(false) {}

};

Will be also good idea to add test case for bit fields.


https://reviews.llvm.org/D26750





More information about the cfe-commits mailing list