[PATCH] D18584: Complete support for C++ Core Guidelines Type.6: Always initialize a member variable.

Michael Miller via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 5 17:32:51 PDT 2016


michael_miller updated this revision to Diff 52752.
michael_miller added a comment.

Addressed comments.
Moved isTriviallyDefaultConstructible into utils/TypeTraits.
Moved AST matchers into utils/Matchers.h.
Enclosed all source-local functions in an anonymous namespace and removed static.
Replaced stray ands and ors with && and ||.


http://reviews.llvm.org/D18584

Files:
  clang-tidy/cppcoreguidelines/ProTypeMemberInitCheck.cpp
  clang-tidy/cppcoreguidelines/ProTypeMemberInitCheck.h
  clang-tidy/utils/Matchers.h
  clang-tidy/utils/TypeTraits.cpp
  clang-tidy/utils/TypeTraits.h
  docs/ReleaseNotes.rst
  docs/clang-tidy/checks/cppcoreguidelines-pro-type-member-init.rst
  test/clang-tidy/cppcoreguidelines-pro-type-member-init-cxx98.cpp
  test/clang-tidy/cppcoreguidelines-pro-type-member-init-delayed.cpp
  test/clang-tidy/cppcoreguidelines-pro-type-member-init.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18584.52752.patch
Type: text/x-patch
Size: 49272 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160406/73968339/attachment-0001.bin>


More information about the cfe-commits mailing list