pachadotdev/Clang-format Multi-version
Format C/C++ code with multiple clang-format versions
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| version | Clang-format version to use (11-21) | no | 21 |
| files | Files or patterns to format (default: all C/C++ files in repository) | no | "" |
| auto-commit | Automatically commit formatted changes | no | true |
| commit-message | Commit message for auto-commit | no | style: auto-format code with clang-format |
| fail-on-diff | Fail the action if formatting changes are needed (useful for PR checks) | no | false |
| exclude | Regex pattern(s) for files to exclude from formatting (e.g. "json\.hpp$" or "vendor/|third.party/") | no | "" |
| working-directory | Working directory to run clang-format in | no | . |
Outputs
| name | description |
|---|---|
| files-changed | Number of files that were changed |
| has-changes | Whether any files were changed (true/false) |