Fixed clang-tidy warnings
This commit is contained in:
@@ -19,8 +19,7 @@
|
||||
|
||||
namespace clanguml::common::generators::mermaid {
|
||||
|
||||
std::string to_mermaid(
|
||||
relationship_t r, const std::optional<std::string> & /*style*/)
|
||||
std::string to_mermaid(relationship_t r)
|
||||
{
|
||||
switch (r) {
|
||||
case relationship_t::kOwnership:
|
||||
|
||||
@@ -38,8 +38,7 @@ using clanguml::common::model::element;
|
||||
using clanguml::common::model::message_t;
|
||||
using clanguml::common::model::relationship_t;
|
||||
|
||||
std::string to_mermaid(
|
||||
relationship_t r, const std::optional<std::string> &style);
|
||||
std::string to_mermaid(relationship_t r);
|
||||
std::string to_mermaid(access_t scope);
|
||||
std::string to_mermaid(message_t r);
|
||||
|
||||
|
||||
@@ -457,8 +457,8 @@ void generator<C, D>::generate_style(std::ostream &ostr,
|
||||
{
|
||||
const auto &config = generators::generator<C, D>::config();
|
||||
|
||||
if (el.style() && !el.style().value().empty())
|
||||
ostr << " " << *el.style();
|
||||
if (el.style() && !el.style().value().empty()) // NOLINT
|
||||
ostr << " " << *el.style(); // NOLINT
|
||||
else if (config.puml) {
|
||||
if (const auto config_style = config.puml().get_style(element_type);
|
||||
config_style) {
|
||||
|
||||
Reference in New Issue
Block a user