Added custom method type destructor filter
This commit is contained in:
@@ -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_))
|
||||
|
||||
Reference in New Issue
Block a user