fix(core): Resolve clang-tidy violations and compilation errors in GlobalMetadataDBConfig.hpp (fixes #643).#770
Conversation
WalkthroughThe changes update the Changes
Possibly related PRs
Suggested reviewers
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
⏰ Context from checks skipped due to timeout of 90000ms (11)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
GlobalMetadataDBConfig.hpp in clp and glt to resolve compilation issues.
GlobalMetadataDBConfig.hpp in clp and glt to resolve compilation issues.GlobalMetadataDBConfig.hpp in clp and glt to resolve compilation issues.
kirkrodrigues
left a comment
There was a problem hiding this comment.
For the PR title, how about:
fix(core): Resolve clang-tidy violations and compilation errors in GlobalMetadataConfig.hpp (fixes #643).
| private: | ||
| // Variables | ||
| MetadataDBType m_metadata_db_type; | ||
| static constexpr int cDefaultMetadataDbPort = 3306; |
There was a problem hiding this comment.
| static constexpr int cDefaultMetadataDbPort = 3306; | |
| constexpr int cDefaultMetadataDbPort{3306}; |
Don't think the static is necessary, right?
There was a problem hiding this comment.
@kirkrodrigues It's necessary to resolve the following compile error
error: non-static data member ‘cDefaultMetadataDbPort’ declared ‘constexpr’
There was a problem hiding this comment.
I've undone the suggested fixes
There was a problem hiding this comment.
It's necessary to resolve the following compile error
Gotcha, my mistake.
I've undone the suggested fixes
Why undo the brace init?
There was a problem hiding this comment.
right my bad. updated just now
GlobalMetadataDBConfig.hpp in clp and glt to resolve compilation issues.Co-authored-by: kirkrodrigues <2454684+kirkrodrigues@users.noreply.github.com>
GlobalMetadataConfig.hpp (fixes #643).
GlobalMetadataConfig.hpp (fixes #643).GlobalMetadataDBConfig.hpp (fixes #643).
…lobalMetadataDBConfig.hpp` (fixes y-scope#643). (y-scope#770) Co-authored-by: kirkrodrigues <2454684+kirkrodrigues@users.noreply.github.com>
Description
Currently, the two files listed in the PR title create compilation issues (missing headers) in the following environment:
Hence, this PR clang-tidies the problematic files and removes them from the clang-tidy exclude list.
This PR fixes #643 and contributes to #764
Checklist
breaking change.
Validation performed
Summary by CodeRabbit
Summary by CodeRabbit
Refactor
Chore