This seems to be as close as I can get it to my style. I'd've wanted to also set Cpp11BracedListStyle[1] to Block, but that ended up misformatting some compound literals that included expressions with binary operators. I'm also unsure what is going on with the formatting of _Generic(). [1] https://clang.llvm.org/docs/ClangFormatStyleOptions.html#cpp11bracedliststyle
12 lines
278 B
Makefile
12 lines
278 B
Makefile
TARGETS = all check clean
|
|
|
|
$(TARGETS):
|
|
+$(MAKE) -C compiler $@
|
|
+$(MAKE) -C yacc-grammar $@
|
|
.PHONY: $(TARGETS)
|
|
|
|
C_SOURCES != find . -name '*.[ch]' ! -name 'lex.yy.c' ! -name 'y.tab.[ch]'
|
|
|
|
no-rocket-science: check
|
|
clang-format -Werror -n $(C_SOURCES)
|
|
.PHONY: no-rocket-science
|