Skip to content

basictest: c-lint changed instruments on the Ubuntu clang leg - #3246

Merged
willend merged 1 commit into
mainfrom
2026-12-mctest-lint-basictest
Dec 2, 2026
Merged

willend merged 1 commit into
mainfrom
2026-12-mctest-lint-basictest

Conversation

@willend

@willend willend commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Free-form text area

  • mcstas-basictest.yml / mcxtrace-basictest.yml: the changed instr/comps step also runs mctest --lint (default linter clang --analyze) on the Ubuntu clang leg only. It does not fail the job; the results land in their own _lint column of the changes table.
  • mctest --lint now reports, per instrument, the number of warnings (clang's N warnings generated) and the lines of linter output below INFO: Linting generated code, e.g.
    BNL_H8 : Linter only, 26 warnings, 2477 lines of linter output

Adding -Wall -Wextra to the --analyze flags was tried and changes nothing (analyzer mode drops compiler warnings), so linter flags are unchanged.


Declaration of use of AI-tools

  • Please add a checkmark here if you used AI-tools during the work for this contribution
  • Claude Code (Opus 5.5) wrote the changes and ran the local test, reviewed by the author.
  • AI-assisted commits must carry a Co-Authored-By line naming the tool, see CONTRIBUTING.md

Development OS / boundary conditions

macOS (arm64), mccode-dev conda env: patched mctest --lint --instr=BNL_H8 run, counts checked against grep/awk on compile_stdout.txt. The workflow change is untested until this PR's CI runs.


PR Checklist for contributing to McStas/McXtrace

  • My contribution contains something else

    • Explanation is added in free form text above or below the checklist

Tip for reviewers: Visit https://blueblazin.github.io/blockviz/#github=[URL_of_this_PR] for a visual look at code changes

🤖 Generated with Claude Code

mctest --lint now reports the number of warnings and lines of linter output.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@willend
willend merged commit 4b9c4a1 into main Dec 2, 2026
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant