alexfh added a comment.

Thanks for the new awesome check!

Please run the check on LLVM and include your analysis of the results in the 
patch description. Another couple of comments below.


================
Comment at: clang-tidy/cppcoreguidelines/SlicingCheck.cpp:93
@@ +92,3 @@
+      continue;
+    CXXRecordDecl *BaseRecord =
+        
cast_or_null<CXXRecordDecl>(BaseRecordType->getDecl()->getDefinition());
----------------
Please use `auto *`

================
Comment at: docs/clang-tidy/checks/cppcoreguidelines-slicing.rst:7
@@ +6,3 @@
+Flags slicing of member variables or vtable. See the relevant CppCoreGuidelines
+sections for details:
+https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#es63-dont-slice
----------------
Links to the C++ Core Guidelines are good, but a few words of explanation and 
an example here wouldn't hurt either.


http://reviews.llvm.org/D21992



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to