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
Enable clang-tidy checks #309
Merged
evaneschneider
merged 11 commits into
cholla-hydro:dev
from
bcaddy:dev-hackday-2023-07-03
Sep 22, 2023
Merged
Enable clang-tidy checks #309
evaneschneider
merged 11 commits into
cholla-hydro:dev
from
bcaddy:dev-hackday-2023-07-03
Sep 22, 2023
Conversation
This file contains 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
bcaddy
changed the title
Enable hicpp-signed-bitwise clang-tidy check
Enable 2 clang-tidy checks
Jul 3, 2023
bcaddy
force-pushed
the
dev-hackday-2023-07-03
branch
4 times, most recently
from
July 10, 2023 21:04
a63d527
to
4698d26
Compare
bcaddy
force-pushed
the
dev-hackday-2023-07-03
branch
from
July 19, 2023 15:18
4698d26
to
51aba26
Compare
bcaddy
force-pushed
the
dev-hackday-2023-07-03
branch
from
August 22, 2023 21:15
51aba26
to
45ace1b
Compare
This should be ready to merge. I would like someone to take a look at the changes in commit 45ace1b since I changed the logic a bit. It should yield the same results, be clearer, and provide warning on a failure but I want a second set of eyes just in case. Pretty sure it's just the stuff in mpi_routines.cpp |
bcaddy
force-pushed
the
dev-hackday-2023-07-03
branch
6 times, most recently
from
September 14, 2023 17:40
626817b
to
9550e28
Compare
This check only failed in a few spots and it was with string literals operating with an unsigned int type so I set the IgnorePositiveIntegerLiterals option to true.
Enabled checks for - macro definitions - typdefs - aliases - enums
The ClassCase does cover structs so I removed the struct case line
While this would be a good check to have on it's just not feasible in GPU code.
bcaddy
force-pushed
the
dev-hackday-2023-07-03
branch
from
September 22, 2023 18:52
998a903
to
ef13273
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
hicpp-signed-bitwise
This check only failed in a few spots and it was with string literals operating with an unsigned int types so I set the
IgnorePositiveIntegerLiterals option to true.
misc-confusable-identifiers check
The only thing that triggered this was
a1
andal
in the Roe solver. It turns out the expression foral
was short and only used one place so I copied and pasted it there, eliminatingal
entirely. I did the same forar
to maintain symmetry.readability-identifier-naming
Fixed and enabled name case checking for:
cppcoreguidelines-pro-bounds-constant-array-index
Disabled. This would be good to have on but it's just not feasible in GPU code since it pretty much requires heavy use of the STL.