Applied readability-const-return-type clang-tidy fixes
This commit is contained in:
@@ -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()) {
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user