mirror of
https://github.com/bkryza/clang-uml.git
synced 2025-05-17 03:05:20 +08:00
Fixed generation of empty packages in class diagrams (Fixes #253)
This commit is contained in:
parent
bf119aff74
commit
f1677193ba
@ -1,5 +1,6 @@
|
||||
# CHANGELOG
|
||||
|
||||
* Fixed generation of empty packages in class diagrams (#253)
|
||||
* Added option inline_lambda_messages to omit lambda expressions from sequence
|
||||
diagrams (#261)
|
||||
* Added support for CUDA calls in sequence diagrams (#263)
|
||||
|
@ -724,7 +724,10 @@ void generator::generate(const package &p, std::ostream &ostr) const
|
||||
if (dynamic_cast<package *>(subpackage.get()) != nullptr) {
|
||||
// TODO: add option - generate_empty_packages
|
||||
const auto &sp = dynamic_cast<package &>(*subpackage);
|
||||
if (!sp.is_empty()) {
|
||||
if (!sp.is_empty() &&
|
||||
!sp.all_of([this](const common::model::element &e) {
|
||||
return !model().should_include(e);
|
||||
})) {
|
||||
together_group_stack_.enter();
|
||||
|
||||
generate(sp, ostr);
|
||||
|
Loading…
x
Reference in New Issue
Block a user