Applied google-readability-namespace-comments clang-tidy fixes

This commit is contained in:
Bartek Kryza
2022-12-20 21:57:06 +01:00
parent e8909c6fc1
commit f2760a5e21
124 changed files with 228 additions and 180 deletions

View File

@@ -537,4 +537,4 @@ void generator::generate(std::ostream &ostr) const
ostr << "@enduml" << '\n';
}
}
} // namespace clanguml::class_diagram::generators::plantuml

View File

@@ -81,7 +81,7 @@ private:
std::string render_name(std::string name) const;
};
}
}
}
}
} // namespace plantuml
} // namespace generators
} // namespace class_diagram
} // namespace clanguml

View File

@@ -194,4 +194,4 @@ int class_::calculate_template_specialization_match(
return res;
}
}
} // namespace clanguml::class_diagram::model

View File

@@ -105,7 +105,7 @@ private:
std::string full_name_;
};
}
} // namespace clanguml::class_diagram::model
namespace std {
template <>
@@ -119,4 +119,4 @@ struct hash<std::reference_wrapper<clanguml::class_diagram::model::class_>> {
return std::hash<id_t>{}(key.get().id());
}
};
}
} // namespace std

View File

@@ -42,4 +42,4 @@ inja::json class_element::context() const
ctx["access"] = to_string(access());
return ctx;
}
}
} // namespace clanguml::class_diagram::model

View File

@@ -44,4 +44,4 @@ private:
std::string type_;
};
}
} // namespace clanguml::class_diagram::model

View File

@@ -37,4 +37,4 @@ bool class_member::is_static() const { return is_static_; }
void class_member::is_static(bool is_static) { is_static_ = is_static; }
}
} // namespace clanguml::class_diagram::model

View File

@@ -41,4 +41,4 @@ private:
bool is_static_{false};
};
}
} // namespace clanguml::class_diagram::model

View File

@@ -61,4 +61,4 @@ void class_method::add_parameter(method_parameter &&parameter)
{
parameters_.emplace_back(std::move(parameter));
}
}
} // namespace clanguml::class_diagram::model

View File

@@ -58,4 +58,4 @@ private:
bool is_defaulted_{false};
bool is_static_{false};
};
}
} // namespace clanguml::class_diagram::model

View File

@@ -35,4 +35,4 @@ void class_parent::set_access(common::model::access_t access)
common::model::access_t class_parent::access() const { return access_; }
}
} // namespace clanguml::class_diagram::model

View File

@@ -46,4 +46,4 @@ private:
bool is_virtual_{false};
common::model::access_t access_;
};
}
} // namespace clanguml::class_diagram::model

View File

@@ -294,7 +294,7 @@ inja::json diagram::context() const
return ctx;
}
}
} // namespace clanguml::class_diagram::model
namespace clanguml::common::model {
template <>

View File

@@ -96,7 +96,7 @@ private:
std::map<std::string, std::unique_ptr<type_alias>> type_aliases_;
};
}
} // namespace clanguml::class_diagram::model
namespace clanguml::common::model {
template <>

View File

@@ -54,4 +54,4 @@ std::vector<std::string> &enum_::constants() { return constants_; }
const std::vector<std::string> &enum_::constants() const { return constants_; }
}
} // namespace clanguml::class_diagram::model

View File

@@ -49,4 +49,4 @@ private:
std::vector<std::string> constants_;
};
}
} // namespace clanguml::class_diagram::model

View File

@@ -49,4 +49,4 @@ std::string method_parameter::to_string(
return fmt::format("{} {} = {}", type_ns, name(), default_value());
}
}
} // namespace clanguml::class_diagram::model

View File

@@ -45,4 +45,4 @@ private:
std::string default_value_;
};
}
} // namespace clanguml::class_diagram::model

View File

@@ -215,4 +215,4 @@ bool template_parameter::find_nested_relationships(
return added_aggregation_relationship;
}
}
} // namespace clanguml::class_diagram::model

View File

@@ -129,4 +129,4 @@ private:
std::optional<int64_t> id_;
};
}
} // namespace clanguml::class_diagram::model

View File

@@ -31,4 +31,4 @@ void type_alias::set_underlying_type(const std::string &type)
std::string type_alias::underlying_type() const { return underlying_type_; }
}
} // namespace clanguml::class_diagram::model

View File

@@ -34,4 +34,4 @@ private:
std::string underlying_type_;
};
}
} // namespace clanguml::class_diagram::model

View File

@@ -2172,4 +2172,4 @@ translation_unit_visitor::get_ast_local_id(int64_t local_id) const
return local_ast_id_map_.at(local_id);
}
}
} // namespace clanguml::class_diagram::visitor

View File

@@ -255,4 +255,4 @@ private:
common::model::access_t>>
anonymous_struct_relationships_;
};
}
} // namespace clanguml::class_diagram::visitor