From a1a9d4ae9996fbc44db975461f25fe214cc46961 Mon Sep 17 00:00:00 2001 From: Bartek Kryza Date: Sat, 7 Jan 2023 12:32:46 +0100 Subject: [PATCH] Fixed formatting --- src/common/generators/plantuml/generator.h | 3 ++- src/config/config.cc | 3 ++- src/util/util.cc | 3 +-- tests/t30002/t30002.cc | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/common/generators/plantuml/generator.h b/src/common/generators/plantuml/generator.h index 8427fef3..19114727 100644 --- a/src/common/generators/plantuml/generator.h +++ b/src/common/generators/plantuml/generator.h @@ -197,7 +197,8 @@ inja::json generator::element_context(const E &e) const if (file.is_absolute() && ctx.template contains("git")) #endif relative_path = - std::filesystem::relative(file, ctx["git"]["toplevel"]).string(); + std::filesystem::relative(file, ctx["git"]["toplevel"]) + .string(); ctx["element"]["source"]["path"] = relative_path; ctx["element"]["source"]["full_path"] = file.string(); diff --git a/src/config/config.cc b/src/config/config.cc index 1db24d1c..36e56d5d 100644 --- a/src/config/config.cc +++ b/src/config/config.cc @@ -599,7 +599,8 @@ template <> struct convert { // Ensure relative_to has a value if (!rhs.relative_to.has_value) - rhs.relative_to.set(std::filesystem::current_path().lexically_normal()); + rhs.relative_to.set( + std::filesystem::current_path().lexically_normal()); rhs.initialize_type_aliases(); diff --git a/src/util/util.cc b/src/util/util.cc index 10c5ea85..9579002d 100644 --- a/src/util/util.cc +++ b/src/util/util.cc @@ -101,8 +101,7 @@ bool is_git_repository() return true; return contains( - trim(get_process_output("git rev-parse --git-dir")), - ".git"); + trim(get_process_output("git rev-parse --git-dir")), ".git"); } std::string get_git_branch() diff --git a/tests/t30002/t30002.cc b/tests/t30002/t30002.cc index a731d51f..159b6d41 100644 --- a/tests/t30002/t30002.cc +++ b/tests/t30002/t30002.cc @@ -1,8 +1,8 @@ #include #include #include -#include #include +#include namespace clanguml { namespace t30002 {