-
Notifications
You must be signed in to change notification settings - Fork 149
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
Resolve clang-tidy warnings for Xapian wrapper #5017
Conversation
Once we are done with the clang-tidy changes, let's get back to #2818 and see if there is anything in there that's not addressed already. |
0954592
to
85a513c
Compare
2c932df
to
5d53b57
Compare
I have updated this PR description, this PR only is meant to fix issues found by the |
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.
If it compiles and runs...
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.
I like these changes, couple of nits though
5d53b57
to
d94aac2
Compare
The current Xapian wrapper code in
imap/xapian_wrap.cpp
is anything but idiomatic or modern C++ code. #2818 highlights some of that, but we didn't act on it timely and the code now is stale. It also didn't help that the code changes are all in a single commit.This PR attempts to sanitize the C++ code in smaller steps. As a baseline of what constitutes "sane C++" code, we'll start with the clang-tidy linter with the
bugprone
check category.I am using this with Debian LLVM version 14.0.6.