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

Fix lint check, fix many clang-tidy warnings. #759

Merged
merged 14 commits into from
Feb 10, 2024
Merged

Fix lint check, fix many clang-tidy warnings. #759

merged 14 commits into from
Feb 10, 2024

Conversation

jtv
Copy link
Owner

@jtv jtv commented Nov 25, 2023

Enabling a lot of clang-tidy checks. There are some things I'm not going to fix for various reasons — some imposed by libpq, some false positives, some conflicting with the design, and one requiring a third-party library.

@jtv jtv changed the title WIP: Fix lint check, fix some C++ code guidelines violations Fix lint check, fix some C++ code guidelines violations Dec 2, 2023
@jtv jtv changed the title Fix lint check, fix some C++ code guidelines violations Fix lint check, fix some clang-tidy warnings. Dec 2, 2023
@jtv jtv changed the title Fix lint check, fix some clang-tidy warnings. Fix lint check, fix many clang-tidy warnings. Dec 5, 2023
jtv added 11 commits December 23, 2023 04:41
Fixed the lint script, and ran it with the full C++ Core Guidelines.

I'm not keeping that check, because it produces too many false positives
or problems I just can't work around.  But I found some things I could
improve.
The only time this class needs to know the difference is during
construction.  Feels good to drop a data member.  _Kudos_ to
`clang-tidy` for spotting this.
Also, use `std::isspace()`, not the C version.
@jtv jtv merged commit 376124a into master Feb 10, 2024
6 checks passed
@jtv jtv deleted the big-lint branch February 10, 2024 00:45
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