Repository navigation
Fix clang-tidy findings in score/time #330
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
Draft
MaciejSalwa543
wants to merge
20
commits into
eclipse-score:main
Choose a base branch
from
qorix-group:fix-sca-findings-time-76
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
26c06cb
Fix clang-tidy and sanitizer CI config blocking time_daemon checks
MaciejSalwa543 88053bb
Restore explicit base init in TimeDaemon ctor
MaciejSalwa543 5c660a3
Fix MISRA findings in receiver factory and kGptpIpcName
MaciejSalwa543 9a771e1
Drop misleading comments in time_daemon machines
MaciejSalwa543 60de8bd
Move optional guard to top and fix coverage justification lines
MaciejSalwa543 628a80e
Allow all-public structs in non-private-member-variables check
MaciejSalwa543 a1feac5
Restore constructor init lists in time_daemon
MaciejSalwa543 c0d3741
Fix clang-tidy findings in timebase handler code
MaciejSalwa543 5d01615
Fix stale coverage justification lines
MaciejSalwa543 2f8939b
Concatenate nested namespaces in score/time
MaciejSalwa543 3cea627
Add missing includes in score/time
MaciejSalwa543 7095f19
Fix small clang-tidy findings in vehicle_time and benchmark
MaciejSalwa543 7f1c886
Delete copy and move in clock backend interfaces
MaciejSalwa543 768e56c
Add nodiscard to clock backends and vehicle time status
MaciejSalwa543 dea5bb8
Rename short identifiers in score/time
MaciejSalwa543 c7ce2e4
Suppress remaining clang-tidy findings in score/time
MaciejSalwa543 79021f2
Avoid optional::value() in noexcept vehicle_time functions
MaciejSalwa543 cd23f3a
Tighten clang-tidy gate: score/time at zero, other at 900
MaciejSalwa543 dae39a7
Use concatenated namespaces in score/time tests, mocks and headers
MaciejSalwa543 b0265ec
Default SvtCallbackDispatcher destructor
MaciejSalwa543 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| # ******************************************************************************* | ||
| # Copyright (c) 2026 Contributors to the Eclipse Foundation | ||
| # | ||
| # See the NOTICE file(s) distributed with this work for additional | ||
| # information regarding copyright ownership. | ||
| # | ||
| # This program and the accompanying materials are made available under the | ||
| # terms of the Apache License Version 2.0 which is available at | ||
| # https://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| # ******************************************************************************* | ||
|
|
||
| # Default clang-tidy configuration for S-CORE C++ modules. | ||
| # NOTE: the set of enabled checks is yet subject to be tailored per module. | ||
| Checks: "-*,clang-analyzer-*,cert-*,cppcoreguidelines-*,bugprone-*,misc-*,performance-*,readability-*,modernize-*,-modernize-use-trailing-return-type,-readability-redundant-member-init,-modernize-use-default-member-init,-cppcoreguidelines-use-default-member-init" | ||
|
|
||
| # NOTE: WarningsAsErrors is yet subject to be expanded per module as compliance increases. | ||
| WarningsAsErrors: "clang-analyzer-*" | ||
|
|
||
| # HeaderFilterRegex is intentionally absent from the central baseline. | ||
| # Each consuming module must set this in their local .clang-tidy to match | ||
| # their own source tree (e.g., HeaderFilterRegex: 'score/mw/'). | ||
| # Setting it here would either suppress all header analysis (empty string) | ||
| # or generate noise from external dependency headers (broad regex). | ||
| # LLVM's regex engine does not reliably support POSIX lookaheads, so | ||
| # negative-lookahead patterns like (?!.*/external/) must not be used here. | ||
|
|
||
| FormatStyle: none | ||
|
|
||
| # NOTE: CheckOptions are yet subject to be provided for each enabled check per module. | ||
| CheckOptions: | ||
| misc-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic: true | ||
| cppcoreguidelines-rvalue-reference-param-not-moved.IgnoreUnnamedParams: true | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added for the 3 unnamed
&¶ms in the vehicle_time stub (SetTimeSlaveSyncDataReceivedCallbacketc.), the stub ignores the callback on purpose. An unnamed param can't be moved anyway, so this can't hide a real missed move. I'd keep it as an option instead of 3 NOLINTs, even though it applies repo-wide