Added custom method type destructor filter

This commit is contained in:
Bartek Kryza
2023-06-02 21:08:19 +02:00
parent e40dc3a60c
commit e681d1a3cc
5 changed files with 9 additions and 1 deletions

View File

@@ -262,7 +262,9 @@ tvl::value_t method_type_filter::match(
method_types_.begin(), method_types_.end(), [&m](auto mt) {
switch (mt) {
case config::method_type::constructor:
return m.is_constructor() || m.is_destructor();
return m.is_constructor();
case config::method_type::destructor:
return m.is_destructor();
case config::method_type::assignment:
return m.is_copy_assignment() || m.is_move_assignment();
case config::method_type::operator_: