[PATCH] D25238: [clang-tidy] Ignore empty members and bases in cppcoreguidelines-pro-type-member-init

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 10 06:20:21 PDT 2016


aaron.ballman accepted this revision.
aaron.ballman added a comment.
This revision is now accepted and ready to land.

LGTM, with one small commenting nit.



================
Comment at: clang-tidy/cppcoreguidelines/ProTypeMemberInitCheck.cpp:320
 
+// copied from clang/lib/Sema/SemaDeclCXX.cpp
+static bool isIncompleteOrZeroLengthArrayType(ASTContext &Context, QualType T) {
----------------
Comments should be complete sentences (capitalization, punctuation, etc), however, I'm not certain that this comment adds value as is. I would mark it a FIXME because copy-paste code is bad.


https://reviews.llvm.org/D25238





More information about the cfe-commits mailing list