From 15bc13734e30d4ed41285cc49410f1ac922ef87b Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Mon, 18 Apr 2022 13:34:09 +0800 Subject: [PATCH] Makefile // Update clang-format commands. --- Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 48a5c361..92a7d187 100644 --- a/Makefile +++ b/Makefile @@ -20,13 +20,17 @@ debug: DSTROOT = /Library/Input Methods VC_APP_ROOT = $(DSTROOT)/vChewing.app -.PHONY: clang-format lint batchfix format +.PHONY: clang-format lint batchfix format clang-format-swift clang-format-cpp format: batchfix clang-format lint -clang-format: +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 '\.(cpp|hpp|c|cc|cxx|hxx|ixx|h|m|mm|hh)$$' | xargs clang-format -i -style=Microsoft + +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 lint: @git ls-files --exclude-standard | grep -E '\.swift$$' | xargs swift-format lint --configuration ./.clang-format-swift.json --parallel