diff options
Diffstat (limited to 'bootstrap/Makefile')
-rw-r--r-- | bootstrap/Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/bootstrap/Makefile b/bootstrap/Makefile index 0509505..b109723 100644 --- a/bootstrap/Makefile +++ b/bootstrap/Makefile @@ -111,7 +111,7 @@ $(builddir)/stage2: $(STAGE2_C_SOURCES) .PHONY: all check check-all check-valgrind check-boundschecked clean outdirs check: $(builddir)/stage1 $(builddir)/stage1 $(STAGE1_ARGS) -check-all: check check-valgrind check-boundschecked clang-analyze +check-all: check check-valgrind check-boundschecked clang-analyze longlines check-valgrind: $(builddir)/stage1 valgrind --leak-check=yes -q $(builddir)/stage1 $(STAGE1_ARGS) check-boundschecked: $(builddir)/stage1-boundschecked @@ -119,6 +119,13 @@ check-boundschecked: $(builddir)/stage1-boundschecked $(STAGE1_ARGS) clang-analyze: clang --analyze $(C_SOURCES) +longlines: + if grep -nE '^.{80,}' $(C_SOURCES) $(C_HEADERS); then \ + echo "error: Too long lines detected. Maximum is 80 characters" ;\ + false ;\ + else \ + true ;\ + fi # Gives a lot of warnings (possibly false positives) and output gets mixed # up (unless a single file is processed). So not included in check-all. gcc-analyzer: |