-
Notifications
You must be signed in to change notification settings - Fork 21
Add CMake clang-tidy integration, enable in CI, and fix all clang-tidy errors #30
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
Copilot
wants to merge
20
commits into
main
Choose a base branch
from
copilot/add-cmake-flag-clang-tidy
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.
+528
−250
Draft
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
39e2879
Initial plan
Copilot 311dc01
Add CLANG_TIDY CMake option and enable it in CI
Copilot 21700ea
Remove CodeQL build artifacts and add them to .gitignore
Copilot 9d5bfd8
Merge branch 'main' into copilot/add-cmake-flag-clang-tidy
achamayou 1db0d6e
Apply suggestion from @achamayou
achamayou 129d9b4
Add .clang-tidy config with all checks, warnings as errors, and Forma…
Copilot 02e2456
Curate .clang-tidy checks: enable sensible categories, exclude projec…
Copilot 5d66dbd
Fix clang-tidy errors in test/demo_tree.cpp
Copilot 1b390c1
Fix clang-tidy errors in test/time_large_trees.cpp
Copilot 35229d4
Fix clang-tidy warnings in test/flush.cpp
Copilot b80121b
Fix clang-tidy errors in test/paths.cpp
Copilot 34dbb5a
Fix clang-tidy errors in test/retract.cpp
Copilot c71272d
Fix clang-tidy warnings in test/past_root.cpp
Copilot e65fe00
Fix all clang-tidy errors in test/past_paths.cpp
Copilot 0bd71c5
Fix clang-tidy errors in test/serialisation.cpp
Copilot fed2e1d
Fix clang-tidy errors in test/partial_serialisation.cpp
Copilot 7f9ec1d
Fix clang-tidy errors in test/serialise_to_file.cpp
Copilot e10837a
Fix all clang-tidy errors: update .clang-tidy config and fix code issues
Copilot a02c9f4
Restore retract_to(max_index()) test in retract.cpp with corrected as…
Copilot 9b34a8c
Add CI step to run clang-tidy on merklecpp.h and fix all errors
Copilot 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| --- | ||
| Checks: > | ||
| -*, | ||
| bugprone-*, | ||
| -bugprone-easily-swappable-parameters, | ||
| -bugprone-unhandled-self-assignment, | ||
| cert-*, | ||
| -cert-err33-c, | ||
| -cert-err34-c, | ||
| -cert-msc30-c, | ||
| -cert-msc32-c, | ||
| -cert-msc50-cpp, | ||
| -cert-msc51-cpp, | ||
| -cert-oop54-cpp, | ||
| clang-analyzer-*, | ||
| concurrency-*, | ||
| -concurrency-mt-unsafe, | ||
| cppcoreguidelines-*, | ||
| -cppcoreguidelines-avoid-c-arrays, | ||
| -cppcoreguidelines-avoid-magic-numbers, | ||
| -cppcoreguidelines-c-copy-assignment-signature, | ||
| -cppcoreguidelines-non-private-member-variables-in-classes, | ||
| -cppcoreguidelines-owning-memory, | ||
| -cppcoreguidelines-pro-bounds-array-to-pointer-decay, | ||
| -cppcoreguidelines-pro-bounds-constant-array-index, | ||
| -cppcoreguidelines-pro-bounds-pointer-arithmetic, | ||
| -cppcoreguidelines-pro-type-member-init, | ||
| -cppcoreguidelines-pro-type-reinterpret-cast, | ||
| -cppcoreguidelines-pro-type-vararg, | ||
| -cppcoreguidelines-special-member-functions, | ||
| hicpp-*, | ||
| -hicpp-avoid-c-arrays, | ||
| -hicpp-explicit-conversions, | ||
| -hicpp-member-init, | ||
| -hicpp-no-array-decay, | ||
| -hicpp-signed-bitwise, | ||
| -hicpp-special-member-functions, | ||
| -hicpp-vararg, | ||
| misc-*, | ||
| -misc-confusable-identifiers, | ||
| -misc-include-cleaner, | ||
| -misc-non-private-member-variables-in-classes, | ||
| -misc-unconventional-assign-operator, | ||
| modernize-*, | ||
| -modernize-avoid-c-arrays, | ||
| -modernize-use-trailing-return-type, | ||
| performance-*, | ||
| portability-*, | ||
| readability-*, | ||
| -readability-function-cognitive-complexity, | ||
| -readability-identifier-length, | ||
| -readability-magic-numbers | ||
| WarningsAsErrors: '*' | ||
| FormatStyle: file |
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.
Uh oh!
There was an error while loading. Please reload this page.