Skip to content

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

Open
kgeg401 wants to merge 4 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 4 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.

..

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

1 participant