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
|
BinPackArguments: false
|
||||||
BinPackLongBracedList: false
|
BinPackLongBracedList: false
|
||||||
|
BinPackParameters: OnePerLine
|
||||||
# replace this when when github actions/ubuntu has a new enough LLVM version
|
|
||||||
# BinPackParameters: OnePerLine
|
|
||||||
BinPackParameters: true
|
|
||||||
|
|
||||||
AllowAllArgumentsOnNextLine: true
|
AllowAllArgumentsOnNextLine: true
|
||||||
AllowAllParametersOfDeclarationOnNextLine: 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)
|
all: $(target)
|
||||||
|
|
||||||
check:
|
check:
|
||||||
clang-format --dry-run --Werror src/*
|
clang-format --dry-run --Werror -style=file:.clang-format.github src/*
|
||||||
|
|
||||||
$(target): $(sources:%.c=$(obj_dir)/%.o)
|
$(target): $(sources:%.c=$(obj_dir)/%.o)
|
||||||
$(LD) -o $@ $(CFLAGS) $(LDFLAGS) $^
|
$(LD) -o $@ $(CFLAGS) $(LDFLAGS) $^
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user