-
Notifications
You must be signed in to change notification settings - Fork 37
Address clang-tidy-19 warnings
#144
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
Closed
Closed
Changes from 1 commit
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
a692038
cmake: Skip linting for generated sources
hebasto 3c07ab8
clang-tidy: Disable `misc-use-anonymous-namespace` check
hebasto d6523b6
clang-tidy: Disable `performance-avoid-endl` check
hebasto 1cc0bf5
clang-tidy: Fix `bugprone-crtp-constructor-accessibility` check
hebasto 5a15744
clang-tidy: Suppress `bugprone-empty-catch` check warning
hebasto f983b09
clang-tidy: Fix `modernize-type-traits` check
hebasto 06806fe
clang-tidy: Fix `misc-const-correctness` check
hebasto 90cb5a9
clang-tidy: Fix `misc-include-cleaner` check
hebasto 2ad6c17
clang-tidy: Fix `misc-use-internal-linkage` check
hebasto 584f3e2
clang-tidy: Fix `performance-unnecessary-value-param` check
hebasto fa265a9
clang-tidy: Fix `readability-avoid-nested-conditional-operator` check
hebasto f159c75
clang-tidy: Fix `readability-avoid-return-with-void-value` check
hebasto 3418ad2
clang-tidy: Fix `readability-container-size-empty` check
hebasto 19d7537
clang-tidy: Suppress `performance-enum-size` check warning
hebasto 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
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
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.
In commit "clang-tidy: Fix
misc-include-cleanercheck" (90cb5a9)Is the include-cleaner check not compatible with IWYU? When I ran IWYU it seemed to correctly add
<init.capnp.proxy.h>include. Do we know if it is expected that clang-tidy would complain about this?Same applies to other nolint below.
Uh oh!
There was an error while loading. Please reload this page.
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.
They seem incompatible.
The
include-what-you-usetool built from theclang_19branch still insist on removing#include <init.capnp.proxy.h>.It seem both linters fail to parse a convoluted template code properly.
Additionally, IWYU suggests:
for this line:https://github.com/chaincodelabs/libmultiprocess/blob/477405eda34d923bd2ba6b3abc4c4d31db84c3ea/example/calculator.cpp#L48