.clang-format: use formatting based on .clang-format

This commit is contained in:
Robert Swiecki 2023-09-22 16:52:19 +02:00
parent 29f0a5b985
commit db7f0d0a23
2 changed files with 11 additions and 1 deletions

10
.clang-format Normal file
View 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

View File

@ -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.