Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clang format #98

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .clang-format
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
[submodule "rawdraw"]
path = rawdraw
url = https://github.com/cntools/rawdraw
[submodule "clang-format"]
path = clang-format
url = git@github.com:dreua/colorchord.git
branch = clang-format-only
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ clean :
rm -rf *.o *~ cnping cnping.exe cnping_mac searchnet
rm -rf rawdraw/*.o

format-all:
find . -iname "*.h" -o -iname "*.c" | xargs clang-format -i

# Windows

Expand Down
1 change: 1 addition & 0 deletions clang-format
Submodule clang-format added at 97a023