forked from eclipse-uprotocol/up-cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Resolve clang-tidy warnings in test files #1
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
Open
lennartbecker-d
wants to merge
41
commits into
main
Choose a base branch
from
fix_linting
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.
Open
Changes from all commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
6ccd414
Fixed linter warnings in first test files
lennartbecker-d 321d086
Fixed some namings
lennartbecker-d 5ddc824
Solve linting warnings in communication
lennartbecker-d 7945d9e
Solve more linter warnings
lennartbecker-d ceefdcf
Solved linting warnings. Some tests unfortunately fail
lennartbecker-d 59c8a63
Fixed 1 test fail
lennartbecker-d d6a582e
Solved failing tests. Next step is to fix linter warnings on RpcServe…
lennartbecker-d 43e2610
Finish day 2025_04_08. Continue with RpcServerTest.cpp
lennartbecker-d 7bc68ef
Solved few warnings
lennartbecker-d 9340df2
Solved linter warnings in test/communication/
lennartbecker-d e83196a
Continue fixing linter warnings in datamodel
lennartbecker-d be386c8
Finished UMessageValidatorTest
lennartbecker-d 2c71e63
Solve linter warnings
lennartbecker-d 0743fc4
Update clang-tidy.sh
lennartbecker-d 70530b4
Solved building error
lennartbecker-d 12a7bfd
Added NOLINT behind makros of TEST_F, EXPECT_THROW and EXPECT_NO_THROW
lennartbecker-d 1e4715e
Add NOLINT behin ASSERT_THROW and ASSERT_NO_THROW
lennartbecker-d b882756
Mostly finished datamodel/
lennartbecker-d bad80ac
Finished transport/
lennartbecker-d 2640935
Added NOLINT to rest of test files (TEST_F, EXPECT_THROW, EXPECT_NO_T…
lennartbecker-d b24249f
Continue solving warnings
lennartbecker-d dc2759f
Solved more linter warnings. Mostly finished.
lennartbecker-d 918bd11
Solved more issues
lennartbecker-d c9f1eb0
Before updating UTransportMock.h to private member variables
lennartbecker-d 941621d
Updated UTransportMock.h to private member. No compiling, nor test er…
lennartbecker-d 87dabfe
12 warnings missing
lennartbecker-d 0756b63
Before .clang-format
lennartbecker-d 4c7b781
Adapted NOLINT Comments to formated code
lennartbecker-d 6e33550
Adapted NOLINT Comments to formated code. Part 2
lennartbecker-d b564410
Adapted NOLINT Comments to formated code. Part 3
lennartbecker-d fc82f61
Dummy fix NOLINT for complicated warnings
lennartbecker-d da77a78
Fixed auto worker_handles warning in ParallelAccessSingleClientTest
lennartbecker-d f5c1387
Solved static issue in UMessageBuilderTest
lennartbecker-d 9eb4686
Finished linter warnings
lennartbecker-d 29d0d9d
Formated code
lennartbecker-d 04c3352
Update clang-tidy.sh to check src/, inc/ and test/
lennartbecker-d 963bed5
remove commented code for namespace. Fix typo
lennartbecker-d 73c507d
Remove setter-Methods
lennartbecker-d f9d4cf2
Completed with review comments
lennartbecker-d fa923ec
formatted code
lennartbecker-d fe88182
Added linting also for src and include
lennartbecker-d 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
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.
Why move the destructor down here? Did the linter complain about a protected destructor?
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.
Yes! Destructor of '...' is protected and virtual (clang-tidycppcoreguidelines-virtual-class-destructor)
@lammjo is there any other way to mitigate this problem?
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.
Thanks for the explanation :)