Fixed formatting

This commit is contained in:
Bartek Kryza
2022-03-20 22:57:43 +01:00
parent d7e27841bc
commit f97d59247a
3 changed files with 19 additions and 18 deletions

View File

@@ -73,7 +73,8 @@ const std::vector<relationship> &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();

View File

@@ -1,19 +1,19 @@
/**
* src/common/model/source_location.cc
*
* Copyright (c) 2021-2022 Bartek Kryza <bkryza@gmail.com>
*
* 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 <bkryza@gmail.com>
*
* 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"

View File

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