Skip to content
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

Add clang-tidy support #125

Merged
merged 1 commit into from
Jan 18, 2025
Merged

Add clang-tidy support #125

merged 1 commit into from
Jan 18, 2025

Conversation

elliotgoodrich
Copy link
Owner

@elliotgoodrich elliotgoodrich commented Jan 15, 2025

Add a CMake option ENABLE_CLANG_TIDY to enable clang-tidy for the
project.

This is enabled on Linux only in the Github runners since it is the only
image that has clang-tidy installed by default.

I have disabled any check that didn't seem to improve the code. The
only code that was exempt and should be fixed is the recursive function
calls in trimutil.cpp triggered by misc-no-recursion. I think
fixing them should be done separately to avoid an overly complex commit.

@elliotgoodrich elliotgoodrich force-pushed the clang-tidy branch 25 times, most recently from 678b51f to 9d12a56 Compare January 18, 2025 12:46
Add a CMake option `ENABLE_CLANG_TIDY` to enable `clang-tidy` for the
project.

This is enabled on Linux only in the Github runners since it is the only
image that has `clang-tidy` installed by default.

I have disabled any check that didn't seem to improve the code.  The
only code that was exempt and should be fixed is the recursive function
calls in `trimutil.cpp` triggered by `misc-no-recursion`.  I think
fixing them should be done separately to avoid an overly complex commit.
@elliotgoodrich elliotgoodrich marked this pull request as ready for review January 18, 2025 12:48
@elliotgoodrich elliotgoodrich merged commit 1515dd6 into main Jan 18, 2025
8 checks passed
@elliotgoodrich elliotgoodrich deleted the clang-tidy branch January 18, 2025 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant