diff --git a/src/common/model/element.cc b/src/common/model/element.cc index 19d94063..b048bfca 100644 --- a/src/common/model/element.cc +++ b/src/common/model/element.cc @@ -73,7 +73,8 @@ const std::vector &element::relationships() const void element::append(const element &e) { decorated_element::append(e); } -inja::json element::context() const { +inja::json element::context() const +{ inja::json ctx; ctx["name"] = name(); ctx["alias"] = alias(); diff --git a/src/common/model/source_location.cc b/src/common/model/source_location.cc index 46de5482..8b44d0d5 100644 --- a/src/common/model/source_location.cc +++ b/src/common/model/source_location.cc @@ -1,19 +1,19 @@ /** -* src/common/model/source_location.cc -* -* Copyright (c) 2021-2022 Bartek Kryza -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. + * src/common/model/source_location.cc + * + * Copyright (c) 2021-2022 Bartek Kryza + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ #include "source_location.h" diff --git a/src/config/config.cc b/src/config/config.cc index 1fb31353..9e7d00dd 100644 --- a/src/config/config.cc +++ b/src/config/config.cc @@ -35,7 +35,7 @@ config load(const std::string &config_file) // If the current directory is also a git repository, // load some config values which can be included in the // generated diagrams - if(util::is_git_repository() && !doc["git"]) { + if (util::is_git_repository() && !doc["git"]) { YAML::Node git_config{YAML::NodeType::Map}; git_config["branch"] = util::get_git_branch(); git_config["revision"] = util::get_git_revision(); @@ -284,6 +284,7 @@ using clanguml::config::class_diagram; using clanguml::config::config; using clanguml::config::filter; using clanguml::config::generate_links_config; +using clanguml::config::git_config; using clanguml::config::hint_t; using clanguml::config::layout_hint; using clanguml::config::method_arguments; @@ -291,7 +292,6 @@ using clanguml::config::package_diagram; using clanguml::config::plantuml; using clanguml::config::sequence_diagram; using clanguml::config::source_location; -using clanguml::config::git_config; inline bool has_key(const YAML::Node &n, const std::string &key) {