.clang-format: use formatting based on .clang-format
This commit is contained in:
parent
29f0a5b985
commit
db7f0d0a23
10
.clang-format
Normal file
10
.clang-format
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
BasedOnStyle: Google
|
||||||
|
AlignAfterOpenBracket: DontAlign
|
||||||
|
AlignEscapedNewlines: Right
|
||||||
|
AlignOperands: true
|
||||||
|
AllowShortFunctionsOnASingleLine: false
|
||||||
|
AlwaysBreakBeforeMultilineStrings: false
|
||||||
|
ColumnLimit: 100
|
||||||
|
IndentWidth: 8
|
||||||
|
IndentCaseLabels: false
|
||||||
|
UseTab: Always
|
2
Makefile
2
Makefile
@ -100,7 +100,7 @@ depend: all
|
|||||||
|
|
||||||
.PHONY: indent
|
.PHONY: indent
|
||||||
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.
|
# DO NOT DELETE THIS LINE -- make depend depends on it.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user