Use a set rather than a vector of defined special member functions so that multiple declarations of the same function are only counted once.
Move some private static member functions into the cpp file.
Run clang-format on header.
Differential D23008
[clang-tidy] fix segfault in cppcore-guidelines-special-member-functions check jbcoe on Aug 1 2016, 4:09 AM. Authored by
Details
Use a set rather than a vector of defined special member functions so that multiple declarations of the same function are only counted once. Move some private static member functions into the cpp file. Run clang-format on header.
Diff Detail Event TimelineComment Actions Please add a test case that would have crashed previously, but this patch corrects. With that test case, this patch will LG.
Comment Actions LGTM now, thank you for switching back! I was mostly worried about an unrestricted template argument in this case, not the particular form of the change. :-) |
I hadn't noticed this before -- why has this been converted to an unrestricted template? If generality is what you were going for, it should have accepted a range (or a pair of iterators) instead?