Added custom method type destructor filter
This commit is contained in:
@@ -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_:
|
||||
|
||||
@@ -67,6 +67,8 @@ std::string to_string(method_type mt)
|
||||
switch (mt) {
|
||||
case method_type::constructor:
|
||||
return "constructor";
|
||||
case method_type::destructor:
|
||||
return "destructor";
|
||||
case method_type::assignment:
|
||||
return "assignment";
|
||||
case method_type::operator_:
|
||||
|
||||
@@ -39,6 +39,7 @@ enum class method_arguments { full, abbreviated, none };
|
||||
|
||||
enum class method_type {
|
||||
constructor,
|
||||
destructor,
|
||||
assignment,
|
||||
operator_,
|
||||
defaulted,
|
||||
|
||||
@@ -231,6 +231,8 @@ template <> struct convert<method_type> {
|
||||
const auto &val = node.as<std::string>();
|
||||
if (val == to_string(method_type::constructor))
|
||||
rhs = method_type::constructor;
|
||||
else if (val == to_string(method_type::destructor))
|
||||
rhs = method_type::destructor;
|
||||
else if (val == to_string(method_type::assignment))
|
||||
rhs = method_type::assignment;
|
||||
else if (val == to_string(method_type::operator_))
|
||||
|
||||
@@ -11,6 +11,7 @@ diagrams:
|
||||
exclude:
|
||||
method_types:
|
||||
- constructor
|
||||
- destructor
|
||||
- operator
|
||||
- assignment
|
||||
- static
|
||||
|
||||
Reference in New Issue
Block a user