Skip to content

feat(ci): integrate clang-tidy for changed C/C++ files#116

Open
kgeg401 wants to merge 5 commits intoalibaba:mainfrom
kgeg401:feat/issue-74-clang-tidy-integration
Open

feat(ci): integrate clang-tidy for changed C/C++ files#116
kgeg401 wants to merge 5 commits intoalibaba:mainfrom
kgeg401:feat/issue-74-clang-tidy-integration

Conversation

@kgeg401
Copy link

@kgeg401 kgeg401 commented Feb 14, 2026

Summary

  • add repository-level .clang-tidy with a minimal enforceable check set
  • add .github/workflows/clang_tidy.yml to run on C/C++ and CMake-related changes
  • configure CMake to export compile_commands.json and run clang-tidy on changed C/C++ files only
  • fail CI for clang-tidy findings via --warnings-as-errors='*'

Notes

  • workflow still runs configure on CMake changes even when no C/C++ file changed
  • .gitignore is updated to allow tracking .clang-tidy

Fixes #74

Copy link
Author

@kgeg401 kgeg401 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

..

@kgeg401 kgeg401 force-pushed the feat/issue-74-clang-tidy-integration branch from 432cf4a to 25d39a7 Compare February 28, 2026 16:06
@kgeg401 kgeg401 force-pushed the feat/issue-74-clang-tidy-integration branch from 25d39a7 to f5aedce Compare February 28, 2026 16:07
@kgeg401
Copy link
Author

kgeg401 commented Mar 1, 2026

Cleaned up PR scope and hardened clang-tidy workflow:\n\n- Removed unrelated FP16 test changes from this PR (keeps overlap out of #116).\n- Kept this PR scoped to .clang-tidy, workflow, and CI plumbing files only.\n- Updated workflow to run clang-tidy only on changed source files that exist in compile_commands.json, with explicit skipped-file reporting and non-failing no-op behavior when no analyzable files are present.

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.

[Feature]: Integrate clang-tidy for code quality checks

2 participants