Skip to content

fix(com/impl): fix clang-tidy warnings for fields#367

Open
sahithi-nukala wants to merge 1 commit intoeclipse-score:mainfrom
sahithi-nukala:sah_fixing_clang_warnings_for_fields
Open

fix(com/impl): fix clang-tidy warnings for fields#367
sahithi-nukala wants to merge 1 commit intoeclipse-score:mainfrom
sahithi-nukala:sah_fixing_clang_warnings_for_fields

Conversation

@sahithi-nukala
Copy link
Copy Markdown
Contributor

@sahithi-nukala sahithi-nukala commented Apr 28, 2026

  • Replace std::move with std::forward in skeleton_field.h RegisterSetHandler to correctly handle forwarding references and fix bugprone-move-forwarding-reference warning
  • Remove duplicate modernize-concat-nested-namespaces check from .clang-tidy
    as it already exists in the extra clang-tidy configuration

@@ -24,7 +24,7 @@ class SomeIpFieldInstanceDeployment
SomeIpFieldInstanceDeployment() noexcept = default;
explicit SomeIpFieldInstanceDeployment(const score::json::Object& /* json_object */) noexcept {}

json::Object Serialize() const noexcept
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this made static?

@@ -35,31 +34,17 @@ class IProxyFieldBindingFactory
virtual ~IProxyFieldBindingFactory() noexcept = default;

IProxyFieldBindingFactory(IProxyFieldBindingFactory&&) = delete;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should discuss whether this clang tidy warning makes sense. I don't think it does in this case.

IProxyFieldBindingFactory(const IProxyFieldBindingFactory&) = delete;
IProxyFieldBindingFactory& operator=(const IProxyFieldBindingFactory&) = delete;
auto operator=(const IProxyFieldBindingFactory&) -> IProxyFieldBindingFactory& = delete;

/// Creates instances of the event binding of a proxy field with a particular data type.
/// \tparam SampleType Type of the data that is exchanges
/// \param handle The handle containing the binding information.
/// \param field_name The binding unspecific name of the event inside the proxy denoted by handle.
/// \return An instance of ProxyEventBinding or nullptr in case of an error.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you remove const?

@sahithi-nukala sahithi-nukala force-pushed the sah_fixing_clang_warnings_for_fields branch from 8178882 to 746d8e3 Compare May 8, 2026 10:43
@sahithi-nukala sahithi-nukala force-pushed the sah_fixing_clang_warnings_for_fields branch from 746d8e3 to 769c7f2 Compare May 8, 2026 11:17
@sahithi-nukala sahithi-nukala changed the title fix(com/impl): fix clang-tidy warnings in proxy field fix(com/impl): fix clang-tidy warnings for fields May 8, 2026
@sahithi-nukala sahithi-nukala requested a review from bemerybmw May 8, 2026 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants