Added sequence diagram model cleanup step to remove empty block statements

This commit is contained in:
Bartek Kryza
2023-07-02 17:56:15 +02:00
parent 9ada158828
commit ed88fcd39d
15 changed files with 160 additions and 46 deletions

View File

@@ -124,12 +124,24 @@ public:
void set_complete(bool complete);
/**
* Whether the diagram is complete.
* @brief Whether the diagram is complete.
*
* This flag is set to true, when all translation units for this diagram
* have been visited.
*
* @return Diagram completion status.
*/
bool complete() const;
/**
* @brief Once the diagram is complete, run any final processing.
*
* This method should be overriden by specific diagram models to do some
* final tasks like cleaning up the model (e.g. some filters only work
* on completed diagrams).
*/
virtual void finalize();
// TODO: refactor to a template method
bool should_include(const element &e) const;
bool should_include(const namespace_ &ns) const;