clang-format -style=Google -dump-config > .clang-format
find . -iregex '.*\.\(h\|c\|cpp\|cu\)$' | xargs clang-format -i
STYLE ?= Google
clang-format:
clang-format -style=$(STYLE) -dump-config > .clang-format
format:
find . -iregex '.*\.\(h\|c\|cpp\|cu\)$$' | xargs clang-format -i
- Styles: LLVM, GNU, Google, Chromium, Microsoft, Mozilla, WebKit
- default: Google
make clang-format
make clang-format STYLE=LLVM
make format