clang-format w/ Mozilla style for generated code

Mozilla puts function names on column 1.  That's better.
This commit is contained in:
Nicolas Williams
2021-02-01 22:41:30 -06:00
parent 783b632f1f
commit b440b29394

View File

@@ -151,7 +151,7 @@ SUFFIXES += .x .z .hx
cmp -s $< $@ 2> /dev/null || cp $< $@; \
else \
cp $< $@.tmp.c; \
$(CLANG_FORMAT) -style='{BasedOnStyle: Chromium, SortIncludes: false}' -i $@.tmp.c; \
$(CLANG_FORMAT) -style='{BasedOnStyle: Mozilla, AlwaysBreakAfterReturnType: TopLevelDefinitions, IndentWidth: 4, SortIncludes: false}' -i $@.tmp.c; \
cmp -s $@.tmp.c $@ 2> /dev/null || mv $@.tmp.c $@; \
fi