Applied llvm-else-after-return clang-tidy fixes

This commit is contained in:
Bartek Kryza
2022-12-23 16:59:33 +01:00
parent 91487cf49f
commit 4c7c9ff7dc
3 changed files with 5 additions and 5 deletions

View File

@@ -311,7 +311,7 @@ std::shared_ptr<clanguml::config::diagram> parse_diagram_config(const Node &d)
if (diagram_type == "sequence") {
return std::make_shared<sequence_diagram>(d.as<sequence_diagram>());
}
else if (diagram_type == "package") {
if (diagram_type == "package") {
return std::make_shared<package_diagram>(d.as<package_diagram>());
}
else if (diagram_type == "include") {

View File

@@ -32,7 +32,7 @@ std::shared_ptr<decorator> decorator::from_string(std::string_view c)
if (c.find(skip_relationship::label) == 0) {
return skip_relationship::from_string(c);
}
else if (c.find(skip::label) == 0) {
if (c.find(skip::label) == 0) {
return skip::from_string(c);
}
else if (c.find(style::label) == 0) {

View File

@@ -198,7 +198,7 @@ std::string function::message_name(message_render_mode mode) const
if (mode == message_render_mode::no_arguments) {
return fmt::format("{}(){}", name(), is_const() ? " const" : "");
}
else if (mode == message_render_mode::abbreviated) {
if (mode == message_render_mode::abbreviated) {
return fmt::format("{}({}){}", name(),
clanguml::util::abbreviate(
fmt::format("{}", fmt::join(parameters_, ",")),
@@ -270,7 +270,7 @@ std::string method::message_name(message_render_mode mode) const
return fmt::format("{}{}(){}{}", style, method_name(),
is_const() ? " const" : "", style);
}
else if (mode == message_render_mode::abbreviated) {
if (mode == message_render_mode::abbreviated) {
return fmt::format("{}({}){}", name(),
clanguml::util::abbreviate(
fmt::format("{}", fmt::join(parameters(), ",")),
@@ -350,7 +350,7 @@ std::string function_template::message_name(message_render_mode mode) const
return fmt::format(
"{}{}(){}", name(), template_params, is_const() ? " const" : "");
}
else if (mode == message_render_mode::abbreviated) {
if (mode == message_render_mode::abbreviated) {
return fmt::format("{}({}){}", name(),
clanguml::util::abbreviate(
fmt::format("{}", fmt::join(parameters(), ",")),