Fixed formatting
This commit is contained in:
@@ -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';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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 {};
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user