Add clazy Qt static analysis to clang-tidy workflow#1007
Closed
magnesj wants to merge 1 commit into
Closed
Conversation
Build clazy 1.15 from source against the installed clang/llvm-19 (the packaged clazy is built against an older Clang that cannot parse libstdc++-14's C++23 headers), then run clazy-standalone over the existing compile_commands.json as a non-blocking, report-only step. Analysis runs one process per file across all cores. The two highest -volume checks (range-loop-detach, non-pod-global-static) are excluded to surface higher-signal Qt findings, and ApplicationLibCode/UnitTests is skipped because gtest is only fetched for the test target and its headers are absent on this configure-only tree.
62fd6cd to
9d67c6d
Compare
Owner
Author
|
Superseded by upstream PR OPM#14260. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds clazy (Qt-oriented static analyzer) to the existing
clang-tidyworkflow.Changes
clazyalongsideclang-tidy-19/clang-format-19.clazy-standalone -checks=level1over the already-generatedbuild/compile_commands.jsonforApplicationLibCodeandGrpcInterface. Non-blocking (continue-on-error: true) — reports only, applies no fixes.Temporary
While validating clazy on CI, these steps are disabled via
if: false(marker commentTEMP: disabled while testing clazy):The CMake configure step is kept, since it generates the
compile_commands.jsonclazy needs. Revert by removing the threeTEMP-markedif: falselines.