Applied readability-const-return-type clang-tidy fixes

This commit is contained in:
Bartek Kryza
2022-12-23 22:46:52 +01:00
parent c1d7f28f57
commit 7fb4ab25ff
4 changed files with 5 additions and 5 deletions

View File

@@ -63,7 +63,7 @@ public:
}
template <typename T>
const common::optional_ref<T> get_participant(
common::optional_ref<T> get_participant(
common::model::diagram_element::id_t id) const
{
if (participants_.find(id) == participants_.end()) {

View File

@@ -234,7 +234,7 @@ method::method(const common::model::namespace_ &using_namespace)
{
}
const std::string method::method_name() const { return method_name_; }
std::string method::method_name() const { return method_name_; }
std::string method::alias() const
{

View File

@@ -185,7 +185,7 @@ struct method : public function {
std::string type_name() const override { return "method"; }
const std::string method_name() const;
std::string method_name() const;
std::string alias() const override;

View File

@@ -120,7 +120,7 @@ public:
}
template <typename T = model::participant>
const common::optional_ref<T> get_participant(const clang::Decl *decl) const
common::optional_ref<T> get_participant(const clang::Decl *decl) const
{
assert(decl != nullptr);
@@ -143,7 +143,7 @@ public:
}
template <typename T = model::participant>
const common::optional_ref<T> get_participant(
common::optional_ref<T> get_participant(
common::model::diagram_element::id_t id) const
{
if (diagram().participants().find(id) == diagram().participants().end())