Added callee_filter for including/excluding messages based on receiver type (#152)

This commit is contained in:
Bartek Kryza
2023-07-01 21:19:51 +02:00
parent 213483dd3b
commit e50a7b1846
24 changed files with 590 additions and 43 deletions

View File

@@ -63,6 +63,21 @@ enum class method_type {
std::string to_string(method_type mt);
/*! Types of call expressions, which can be used in sequence diagram filters */
enum class callee_type {
constructor,
assignment,
operator_,
defaulted,
static_,
method,
function,
function_template,
lambda
};
std::string to_string(callee_type mt);
/*! How packages in diagrams should be generated */
enum class package_type_t {
kNamespace, /*!< From namespaces */
@@ -313,6 +328,23 @@ struct filter {
* ```
*/
std::vector<method_type> method_types;
/*! @brief Callee types filter
*
* This filter allows to filter sequence diagram calls by callee types.
*
* @see method_type
*
* Example:
*
* ```yaml
* exclude:
* callee_types:
* - constructor
* - operator
* ```
*/
std::vector<callee_type> callee_types;
};
enum class hint_t { up, down, left, right, together, row, column };