-
Notifications
You must be signed in to change notification settings - Fork 525
Clang tidy #1688
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
Clang tidy #1688
Conversation
It looks to me like the CodeQL workflow is running clang-tidy under the hood, but isn't honoring the @offa I think you added CodeQL. What do you think? |
Just to not confuse this: Delete what? The inline suppression? According to these issues there's no inline mechanism available for CodeQL yet: github/codeql#9298, github/codeql#11427 Issues can be dismissed through Github UI only. |
Sorry. I'm proposing deleting the CodeQL config in favor of clang-tidy. These are the trade-offs that I see:
|
I don't think they are same. CodeQL does more than static code analysis, eg. it contains queries for known security issues and variant analysis. Since it's implemented around queries I wouldn't expect it to call clang-tidy. As far as I know the former are implemented by Github or security researchers and do not use third party rules directly (I may be wrong here though). While it may report the same result as clang-tidy here, both are different tools. Indeed, the missing inline suppression is annoying and waiting for a maintainer to suppress it through UI isn't an option. On the other hand only severe levels like errors should fail the build, and these are typically issues to address. Btw. the sizeof() usage in the line above really looks Suspicious. :-) |
Gotcha, thank you for the context. I think you're right, then; we should keep CodeQL. |
This shouldn't block or otherwise stop this PR of course! 👍 |
Most of these issues are pretty innocuous, but I did find a couple places that constructors/destructors were relying on dynamic dispatch.
Ok, many small fixes. I'll merge it even though I see some builds not ready yet. |
Kill any jobs you'd like on appveyor. Nothing will pass until #1702 merges. |
Merged before I read this :) |
Most of these issues are pretty innocuous, but I did find a couple places that constructors/destructors were relying on dynamic dispatch.