[PATCH] D144206: [clang-tidy] Fix false-positive in cppcoreguidelines-slicing
Carlos Galvez via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Mar 11 05:57:03 PST 2023
carlosgalvezp added a comment.
Looks good, just a small comment!
================
Comment at: clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/slicing.cpp:102
+
+struct BaseA {
+virtual ~BaseA() {}
----------------
Please briefly document this test case, i.e. why in this case this is not considered slicing and the check should not warn. It would be good to also mention the Github issue for traceability.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D144206/new/
https://reviews.llvm.org/D144206
More information about the cfe-commits
mailing list