diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..7d949cd --- /dev/null +++ b/.clang-format @@ -0,0 +1,10 @@ +BasedOnStyle: Google +AlignAfterOpenBracket: DontAlign +AlignEscapedNewlines: Right +AlignOperands: true +AllowShortFunctionsOnASingleLine: false +AlwaysBreakBeforeMultilineStrings: false +ColumnLimit: 100 +IndentWidth: 8 +IndentCaseLabels: false +UseTab: Always diff --git a/Makefile b/Makefile index dcf5931..35832a0 100644 --- a/Makefile +++ b/Makefile @@ -100,7 +100,7 @@ depend: all .PHONY: indent indent: - clang-format -style="{BasedOnStyle: google, IndentWidth: 8, UseTab: Always, IndentCaseLabels: false, ColumnLimit: 100, AlignAfterOpenBracket: false, AllowShortFunctionsOnASingleLine: false, AlwaysBreakBeforeMultilineStrings: false, AlignEscapedNewlines: Right}" -i -sort-includes $(SRCS_H) $(SRCS_CXX) $(SRCS_PROTO) + clang-format -i -sort-includes $(SRCS_H) $(SRCS_CXX) $(SRCS_PROTO) # DO NOT DELETE THIS LINE -- make depend depends on it.