Fixed clang-tidy warnings

This commit is contained in:
Bartek Kryza
2023-05-31 23:07:40 +02:00
parent 0973289eb7
commit ae44c2413b
3 changed files with 10 additions and 9 deletions

View File

@@ -164,7 +164,7 @@ void generator::generate(const class_ &c, std::ostream &ostr) const
continue;
try {
generate_relationship(r, rendered_relations, ostr);
generate_relationship(r, rendered_relations);
}
catch (error::uml_alias_missing &e) {
LOG_DBG("Skipping {} relation from {} to {} due "
@@ -436,8 +436,8 @@ void generator::generate_relationships(std::ostream &ostr) const
}
}
void generator::generate_relationship(const relationship &r,
std::set<std::string> &rendered_relations, std::ostream &ostr) const
void generator::generate_relationship(
const relationship &r, std::set<std::string> &rendered_relations) const
{
namespace plantuml_common = clanguml::common::generators::plantuml;

View File

@@ -91,8 +91,8 @@ public:
void generate_relationships(const class_ &c, std::ostream &ostr) const;
void generate_relationship(const relationship &r,
std::set<std::string> &rendered_relations, std::ostream &ostr) const;
void generate_relationship(
const relationship &r, std::set<std::string> &rendered_relations) const;
void generate(const enum_ &e, std::ostream &ostr) const;

View File

@@ -54,8 +54,9 @@ int main(int argc, const char *argv[])
#if !defined(NDEBUG)
// Catch invalid logger message formats, e.g. missing arguments
spdlog::set_error_handler(
[](const std::string & /*msg*/) { assert(0 == 1); });
spdlog::set_error_handler([](const std::string & /*msg*/) {
assert(0 == 1); // NOLINT
});
#endif
try {
@@ -70,8 +71,8 @@ int main(int argc, const char *argv[])
translation_units_map;
// We have to generate the translation units list for each diagram
// before scheduling tasks, because std::filesystem::current_path cannot
// be trusted with multiple threads
// before scheduling tasks, because std::filesystem::current_path
// cannot be trusted with multiple threads
clanguml::common::generators::find_translation_units_for_diagrams(
cli.diagram_names, cli.config, compilation_database_files,
translation_units_map);