From 47be383ea0d2fd1008fa37be6695634fe17ad805 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 13 Jun 2017 17:21:33 +0200 Subject: executor: fix clang-tidy warnings A single check is enabled for now (misc-definitions-in-headers). But it's always fixable and found 2 bugs in csource. --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 0fa742851..52ca83134 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ ifeq ($(NOSTATIC), 0) STATIC_FLAG=-static endif -.PHONY: all format clean manager fuzzer executor execprog mutate prog2c stress extract generate repro +.PHONY: all format tidy clean manager fuzzer executor execprog mutate prog2c stress extract generate repro all: go install ./syz-manager ./syz-fuzzer @@ -65,6 +65,10 @@ format: go fmt ./... clang-format --style=file -i executor/*.cc executor/*.h tools/kcovtrace/*.c +# A single check is enabled for now. But it's always fixable and proved to be useful. +tidy: + clang-tidy -quiet -header-filter=.* -checks=-*,misc-definitions-in-headers -warnings-as-errors=* executor/*.cc + presubmit: $(MAKE) generate go generate ./... -- cgit mrf-deployment