Applied llvm-else-after-return clang-tidy fixes
This commit is contained in:
@@ -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") {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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(), ",")),
|
||||
|
||||
Reference in New Issue
Block a user