-
-
Notifications
You must be signed in to change notification settings - Fork 62
Expand file tree
/
Copy pathMakefile
More file actions
20 lines (18 loc) · 685 Bytes
/
Copy pathMakefile
File metadata and controls
20 lines (18 loc) · 685 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# settings will be taken from .clang-format. .editorconfig is just for android studio & VSStudio if ever used
.PHONY: format
format:
find . -type f \( -name "*.cpp" -o -name "*.h" -o -name "*.hpp" -o -name "*.c" \) ! -path "*/lib*" \
! -path "*/ALVR/*" \
! -path "*gvr*" \
! -path "*cardboard*" \
! -path "*.cxx*" \
! -path "*/build/*" \
-exec clang-format -i {} + -print
format-check:
find . -type f \( -name "*.cpp" -o -name "*.h" -o -name "*.hpp" -o -name "*.c" \) ! -path "*/lib*" \
! -path "*/ALVR/*" \
! -path "*gvr*" \
! -path "*cardboard*" \
! -path "*.cxx*" \
! -path "*/build/*" \
-exec clang-format --dry-run --Werror {} + -print