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

Replace the clang-analyzer workflow with CodeChecker workflow #9293

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

oleg-derevenetz
Copy link
Collaborator

@oleg-derevenetz oleg-derevenetz commented Nov 21, 2024

CodeChecker is a front-end for multiple analyzers, but in our case it is intended to be used instead of LLVM scan-build to run the Clang Analyzer.

Pros:

  • It is able to perform the cross translation unit analysis to better find bugs. scan-build has an experimental support for CTU at best and is not recommended for this.

Cons:

  • CTU analysis is much slower than our scan-build analysis (approximately x2 slower).

Currently it found one issue in the LLVM internal header (seems legitimate BTW, but, naturally, there is nothing can be done with this, so I suppressed warnings for this header) and another issue in the implicit (compiler-generated) constructor (apparently copy or move constructor) for our own struct, which seems like a false positive (but probably it is related to that first issue in the LLVM header).

This PR is subject to discussion.

@oleg-derevenetz oleg-derevenetz added improvement New feature, request or improvement GitHub Actions GitHub Actions CI labels Nov 21, 2024
@oleg-derevenetz oleg-derevenetz added this to the 1.1.4 milestone Nov 21, 2024
@oleg-derevenetz oleg-derevenetz marked this pull request as ready for review November 21, 2024 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GitHub Actions GitHub Actions CI improvement New feature, request or improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant