https://github.com/egor-tensin/clang-format
GitHub action to run clang-format
https://github.com/egor-tensin/clang-format
action clang-format github-actions
Last synced: 6 months ago
JSON representation
GitHub action to run clang-format
- Host: GitHub
- URL: https://github.com/egor-tensin/clang-format
- Owner: egor-tensin
- License: mit
- Created: 2021-05-09T09:34:08.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-08T16:23:20.000Z (over 2 years ago)
- Last Synced: 2024-10-18T23:40:47.561Z (6 months ago)
- Topics: action, clang-format, github-actions
- Language: C++
- Homepage:
- Size: 7.81 KB
- Stars: 6
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
clang-format
============[](https://github.com/egor-tensin/clang-format/actions/workflows/test.yml)
This GitHub action runs `clang-format` on your C/C++ source files and shows the
diff.Use it in your workflow like this:
- name: clang-format
uses: egor-tensin/clang-format@v1API
---| Input | Value | Default | Description
| ------- | ------- | ------- | -----------
| version | *empty* | ✓ | Use `clang-format`.
| | *any* | | Use `clang-format-VERSION`.
| style | file | ✓ | Use .clang-format.
| | *any* | | `-style=STYLE` (Microsoft, LLVM, etc.).
| exclude | *empty* | ✓ | Don't exclude any files.
| | *any* | | List of files and directories to exclude, separated by a colon `:`.| Output | Description
| ------ | -----------
| diff | Diff between the original and the properly formatted files.License
-------Distributed under the MIT License.
See [LICENSE.txt] for details.[LICENSE.txt]: LICENSE.txt