mirror of
https://github.com/Z3Prover/z3
synced 2026-08-02 12:13:25 +00:00
This updates the existing agentic workflow from generic build-warning cleanup to a clang-tidy-based loop: compile Z3 with Clang, inspect clang-tidy/compiler diagnostics, and open a PR only for small, semantics-preserving fixes. - **Workflow scope** - Renames and repurposes `build-warning-fixer` as a clang-tidy warning fixer. - Keeps the existing agentic PR flow, but narrows it to clang/clang-tidy findings from the current run. - **Build/analyze path** - Switches the authored workflow prompt to use the repo’s CMake + Ninja build with `clang`/`clang++`. - Enables `CMAKE_CXX_CLANG_TIDY=clang-tidy` and exports compile commands for tool-driven analysis. - Captures configure/build logs in the agent artifact directory for post-run diagnosis. - **Agent behavior** - Instructs the agent to classify clang-tidy warnings, compiler warnings, and build errors from the build log. - Biases toward localized fixes only: e.g. `override`, `[[maybe_unused]]`, `nullptr`, dead locals. - Explicitly prefers `noop` over speculative edits when diagnostics are broad, risky, or design-affecting. - **Generated workflow** - Regenerates the compiled lockfile to reflect the new prompt and current auth/permission model used by other agentic workflows in this repo. ```yaml CC=clang CXX=clang++ cmake -GNinja -S . -B build \ -DCMAKE_BUILD_TYPE=Debug \ -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \ -DCMAKE_CXX_CLANG_TIDY=clang-tidy \ 2>&1 | tee /tmp/gh-aw/agent/clang-tidy-configure.log ``` --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| actions | ||
| agents | ||
| aw | ||
| prompts | ||
| scripts | ||
| skills | ||
| workflows | ||
| CI_MIGRATION.md | ||
| CI_TESTING.md | ||
| copilot-instructions.md | ||
| dependabot.yml | ||
| mcp.json | ||