Skip to content

clang-format (w/ diff)

Actions
clang-format all C/C++ files in the project, and show the diff
v1.0.1
Latest
Star (6)

clang-format

Test

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@v1

API

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.

clang-format (w/ diff) is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

clang-format all C/C++ files in the project, and show the diff
v1.0.1
Latest

clang-format (w/ diff) is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.