[PATCH] D19802: Fix a crash in cppcoreguidelines-pro-type-member-init when checking a class that initializes itself as a base

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Mon May 2 16:01:05 PDT 2016


aaron.ballman added inline comments.

================
Comment at: test/clang-tidy/cppcoreguidelines-pro-type-member-init.cpp:342
@@ +341,3 @@
+
+// This pathological template fails to compile if actually instantiated. It
+// results in the check seeing a null RecordDecl when examining the base class
----------------
michael_miller wrote:
> Added a comment explaining why the check is there.
Thank you, the comment is excellent.


http://reviews.llvm.org/D19802





More information about the cfe-commits mailing list