Fixed formatting

This commit is contained in:
Bartek Kryza
2022-11-01 21:52:34 +01:00
parent c2d9596e7c
commit 6df8c790f5
5 changed files with 17 additions and 21 deletions

View File

@@ -113,7 +113,7 @@ void generator::generate_participants(std::ostream &ostr) const
ostr << "participant \""
<< m_config.using_namespace().relative(
participant.full_name(false))
<< "\" as " << participant.alias()<< '\n';
<< "\" as " << participant.alias() << '\n';
}
}

View File

@@ -29,10 +29,10 @@ common::model::diagram_t diagram::type() const
}
common::optional_ref<common::model::diagram_element> diagram::get(
const std::string & full_name) const
const std::string &full_name) const
{
for(const auto& [id, participant] : participants) {
if(participant->full_name(false) == full_name)
for (const auto &[id, participant] : participants) {
if (participant->full_name(false) == full_name)
return {*participant};
}
@@ -42,7 +42,7 @@ common::optional_ref<common::model::diagram_element> diagram::get(
common::optional_ref<common::model::diagram_element> diagram::get(
const common::model::diagram_element::id_t id) const
{
if(participants.find(id) != participants.end())
if (participants.find(id) != participants.end())
return {*participants.at(id)};
return {};

View File

@@ -433,9 +433,10 @@ bool translation_unit_visitor::VisitCallExpr(clang::CallExpr *expr)
set_ast_local_id(callee_function->getID(), f_ptr->id());
diagram().add_participant(std::move(f_ptr));
// This is not optimal way to check whether the callee declaration
// is implicit or explicit (we don't want implicit declarations
// as separate participants), but is there a better way?
// This is not optimal way to check whether the callee
// declaration is implicit or explicit (we don't want implicit
// declarations as separate participants), but is there a better
// way?
is_implicit = true;
}