-
Notifications
You must be signed in to change notification settings - Fork 498
ScatteredBuffer::IFragmentsObserver #440
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
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
2443c94
Introduced `ScatteredBuffer::IFragmentsObserver` interface
serges147 a788dea
Fix unit tests
serges147 7465a58
more usage of `PayloadFragment`
serges147 497fd2c
Increase coverage; fix Sonar issue
serges147 76c9a31
fix Sonar issue
serges147 6f2f718
- try fix CI by ts22.4.10 -> ts24.4.3
serges147 c71630c
try fix CI
serges147 ea52c13
try fix CI
serges147 f3e6f99
try fix CI
serges147 862b256
try fix CI
serges147 8a4b37c
clang-tidy 19 fixes
serges147 c0ad95e
clang-tidy 19 fixes
serges147 9a12b61
fix clang analyzer "error: Called C++ object pointer is null" error
serges147 33244a2
rename "Observer" & `observeFragments` -> "Visitor" & `forEachFragment`
serges147 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
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 |
|---|---|---|
|
|
@@ -15,14 +15,14 @@ jobs: | |
| contains(github.ref, '/issue/') || | ||
| (github.event_name == 'pull_request') | ||
| runs-on: ubuntu-latest | ||
| container: ghcr.io/opencyphal/toolshed:ts22.4.10 | ||
| container: ghcr.io/opencyphal/toolshed:ts24.4.3 | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis | ||
| - name: get nunavut | ||
| run: > | ||
| pip install git+https://github.com/OpenCyphal/[email protected] | ||
| run: | | ||
| pip install --break-system-packages git+https://github.com/OpenCyphal/[email protected] | ||
| - name: Install sonar-scanner and build-wrapper | ||
| uses: SonarSource/sonarcloud-github-c-cpp@v2 | ||
| - name: Run tests | ||
|
|
||
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 |
|---|---|---|
|
|
@@ -16,7 +16,7 @@ jobs: | |
| contains(github.ref, '/issue/') || | ||
| (github.event_name == 'pull_request') | ||
| runs-on: ubuntu-latest | ||
| container: ghcr.io/opencyphal/toolshed:ts22.4.10 | ||
| container: ghcr.io/opencyphal/toolshed:ts24.4.3 | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Cache ext modules | ||
|
|
@@ -29,8 +29,8 @@ jobs: | |
| key: ${{ runner.os }}-${{ hashFiles('cmake/modules/*.cmake') }} | ||
| - name: get nunavut | ||
| # TODO: setup a venv, cache, and distribute to the other jobs. | ||
| run: > | ||
| pip install git+https://github.com/OpenCyphal/[email protected] | ||
| run: | | ||
| pip install --break-system-packages git+https://github.com/OpenCyphal/[email protected] | ||
| - name: configure | ||
| run: > | ||
| ./build-tools/bin/verify.py | ||
|
|
@@ -47,7 +47,7 @@ jobs: | |
| contains(github.ref, '/issue/') || | ||
| (github.event_name == 'pull_request') | ||
| runs-on: ubuntu-latest | ||
| container: ghcr.io/opencyphal/toolshed:ts22.4.10 | ||
| container: ghcr.io/opencyphal/toolshed:ts24.4.3 | ||
| needs: [warmup] | ||
| strategy: | ||
| matrix: | ||
|
|
@@ -69,8 +69,8 @@ jobs: | |
| path: external | ||
| key: ${{ runner.os }}-${{ hashFiles('cmake/modules/*.cmake') }} | ||
| - name: get nunavut | ||
| run: > | ||
| pip install git+https://github.com/OpenCyphal/[email protected] | ||
| run: | | ||
| pip install --break-system-packages git+https://github.com/OpenCyphal/[email protected] | ||
| - name: run tests | ||
| env: | ||
| GTEST_COLOR: yes | ||
|
|
@@ -101,7 +101,7 @@ jobs: | |
| contains(github.ref, '/issue/') || | ||
| (github.event_name == 'pull_request') | ||
| runs-on: ubuntu-latest | ||
| container: ghcr.io/opencyphal/toolshed:ts22.4.10 | ||
| container: ghcr.io/opencyphal/toolshed:ts24.4.3 | ||
| needs: [warmup] | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
@@ -114,8 +114,8 @@ jobs: | |
| path: external | ||
| key: ${{ runner.os }}-${{ hashFiles('cmake/modules/*.cmake') }} | ||
| - name: get nunavut | ||
| run: > | ||
| pip install git+https://github.com/OpenCyphal/[email protected] | ||
| run: | | ||
| pip install --break-system-packages git+https://github.com/OpenCyphal/[email protected] | ||
| - name: doc-gen | ||
| run: > | ||
| ./build-tools/bin/verify.py | ||
|
|
||
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.
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.
Such assert is wrong - "swap" usually implemented by using move constructor and then 2 move assignments, like:
I found and fixed 3 such places in total.