mirror of
https://github.com/Mercantec-GHC/h5-projekt-mst.git
synced 2026-08-27 05:37:39 +02:00
another clang-format for github
This commit is contained in:
parent
d164078b56
commit
d983d74bfa
@ -8,10 +8,7 @@ AllowShortFunctionsOnASingleLine: None
|
||||
|
||||
BinPackArguments: false
|
||||
BinPackLongBracedList: false
|
||||
|
||||
# replace this when when github actions/ubuntu has a new enough LLVM version
|
||||
# BinPackParameters: OnePerLine
|
||||
BinPackParameters: true
|
||||
BinPackParameters: OnePerLine
|
||||
|
||||
AllowAllArgumentsOnNextLine: true
|
||||
AllowAllParametersOfDeclarationOnNextLine: true
|
||||
|
||||
15
backend/.clang-format.github
Normal file
15
backend/.clang-format.github
Normal file
@ -0,0 +1,15 @@
|
||||
BasedOnStyle: WebKit
|
||||
IndentWidth: 4
|
||||
ColumnLimit: 80
|
||||
|
||||
IndentCaseLabels: true
|
||||
InsertNewlineAtEOF: true
|
||||
AllowShortFunctionsOnASingleLine: None
|
||||
|
||||
BinPackArguments: false
|
||||
|
||||
BinPackParameters: true
|
||||
|
||||
AllowAllArgumentsOnNextLine: true
|
||||
AllowAllParametersOfDeclarationOnNextLine: true
|
||||
|
||||
@ -38,7 +38,7 @@ target=$(build_dir)/backend
|
||||
all: $(target)
|
||||
|
||||
check:
|
||||
clang-format --dry-run --Werror src/*
|
||||
clang-format --dry-run --Werror -style=file:.clang-format.github src/*
|
||||
|
||||
$(target): $(sources:%.c=$(obj_dir)/%.o)
|
||||
$(LD) -o $@ $(CFLAGS) $(LDFLAGS) $^
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user