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

@@ -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);