Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/ecal service namespace #1933

Merged
merged 2 commits into from
Jan 22, 2025
Merged

Conversation

KerstinKeller
Copy link
Contributor

Description

We need to prepare eCAL for the upcoming changes in the core, by introducing a new namespace / header file structure for ecal_service, to avoid name clashes later on.

@KerstinKeller KerstinKeller added Auto Approve Request Automatic PR Approval cherry-pick-to-NONE Don't cherry-pick these changes labels Jan 22, 2025
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

clang-tidy made some suggestions

eCAL::Logging::Log(eCAL::Logging::log_level_debug4, "[" + node_name + "] " + message);
break;
case LogLevel::Debug:
case ecal_service::LogLevel::Debug:
Copy link
Contributor

Choose a reason for hiding this comment

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

warning: switch has 2 consecutive identical branches [bugprone-branch-clone]

                          case ecal_service::LogLevel::Debug:
                          ^
Additional context

ecal/core/src/service/ecal_service_singleton_manager.cpp:46: last of these clones ends here

                            break;
                                 ^


namespace ecal_service
{
enum class LogLevel
Copy link
Contributor

Choose a reason for hiding this comment

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

warning: enum 'LogLevel' uses a larger base type ('int', size: 4 bytes) than necessary for its value set, consider using 'std::uint8_t' (1 byte) as the base type to reduce its size [performance-enum-size]

  enum class LogLevel
             ^

{
namespace service
constexpr std::uint8_t ClientSessionV1::MIN_SUPPORTED_PROTOCOL_VERSION;
Copy link
Contributor

Choose a reason for hiding this comment

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

warning: redundant 'MIN_SUPPORTED_PROTOCOL_VERSION' declaration [readability-redundant-declaration]

Suggested change
constexpr std::uint8_t ClientSessionV1::MIN_SUPPORTED_PROTOCOL_VERSION;
Additional context

ecal/service/ecal_service/src/client_session_impl_v1.h:148: previously declared here

    static constexpr std::uint8_t MIN_SUPPORTED_PROTOCOL_VERSION = 1;
                                  ^

{
namespace service
constexpr std::uint8_t ClientSessionV1::MIN_SUPPORTED_PROTOCOL_VERSION;
constexpr std::uint8_t ClientSessionV1::MAX_SUPPORTED_PROTOCOL_VERSION;
Copy link
Contributor

Choose a reason for hiding this comment

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

warning: redundant 'MAX_SUPPORTED_PROTOCOL_VERSION' declaration [readability-redundant-declaration]

Suggested change
constexpr std::uint8_t ClientSessionV1::MAX_SUPPORTED_PROTOCOL_VERSION;
Additional context

ecal/service/ecal_service/src/client_session_impl_v1.h:149: previously declared here

    static constexpr std::uint8_t MAX_SUPPORTED_PROTOCOL_VERSION = 1;
                                  ^

{
namespace service
constexpr std::uint8_t ServerSessionV1::MIN_SUPPORTED_PROTOCOL_VERSION;
Copy link
Contributor

Choose a reason for hiding this comment

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

warning: redundant 'MIN_SUPPORTED_PROTOCOL_VERSION' declaration [readability-redundant-declaration]

Suggested change
constexpr std::uint8_t ServerSessionV1::MIN_SUPPORTED_PROTOCOL_VERSION;
Additional context

ecal/service/ecal_service/src/server_session_impl_v1.h:93: previously declared here

    static constexpr std::uint8_t MIN_SUPPORTED_PROTOCOL_VERSION = 1;
                                  ^

{
namespace service
constexpr std::uint8_t ServerSessionV1::MIN_SUPPORTED_PROTOCOL_VERSION;
constexpr std::uint8_t ServerSessionV1::MAX_SUPPORTED_PROTOCOL_VERSION;
Copy link
Contributor

Choose a reason for hiding this comment

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

warning: redundant 'MAX_SUPPORTED_PROTOCOL_VERSION' declaration [readability-redundant-declaration]

Suggested change
constexpr std::uint8_t ServerSessionV1::MAX_SUPPORTED_PROTOCOL_VERSION;
Additional context

ecal/service/ecal_service/src/server_session_impl_v1.h:94: previously declared here

    static constexpr std::uint8_t MAX_SUPPORTED_PROTOCOL_VERSION = 1;
                                  ^

@KerstinKeller KerstinKeller merged commit 43de92f into master Jan 22, 2025
25 checks passed
@KerstinKeller KerstinKeller deleted the feature/ecal-service-namespace branch January 22, 2025 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto Approve Request Automatic PR Approval cherry-pick-to-NONE Don't cherry-pick these changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant