Makefile // Lint swift files when clang-format.
This commit is contained in:
parent
ef2b47eabb
commit
facbc42019
1
Makefile
1
Makefile
|
@ -28,6 +28,7 @@ clang-format: clang-format-swift clang-format-cpp
|
|||
|
||||
clang-format-swift:
|
||||
@git ls-files --exclude-standard | grep -E '\.swift$$' | xargs swift-format format --in-place --configuration ./.clang-format-swift.json --parallel
|
||||
@git ls-files --exclude-standard | grep -E '\.swift$$' | xargs swift-format lint --configuration ./.clang-format-swift.json --parallel
|
||||
|
||||
clang-format-cpp:
|
||||
@git ls-files --exclude-standard | grep -E '\.(cpp|hpp|c|cc|cxx|hxx|ixx|h|m|mm|hh)$$' | xargs clang-format -i
|
||||
|
|
Loading…
Reference in New Issue