Skip to content

egor-tensin/clang-format

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.