From aaf6d7963314c1fcb86b84442cd3d960bc87297b Mon Sep 17 00:00:00 2001 From: lonkaars Date: Tue, 10 May 2022 13:20:42 +0200 Subject: added clang-tidy to make format --- robot/makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'robot/makefile') diff --git a/robot/makefile b/robot/makefile index 8ddcb28..598e0fa 100644 --- a/robot/makefile +++ b/robot/makefile @@ -19,7 +19,7 @@ CC=avr-gcc OBJ2HEX=avr-objcopy BUILD_STR=$(shell git update-index -q --refresh; git describe --tags --dirty='*' --broken='x' | cut -c1-20) -CFLAGS += -DBUILD_STR="$(BUILD_STR)" +CFLAGS += -DW2_BUILD_STR="$(BUILD_STR)" all: out.hex @@ -41,6 +41,7 @@ flash: out.hex format: clang-format -i $(SOURCES) $(HEADERS) + clang-tidy --fix-errors $(SOURCES) $(HEADERS) compile_commands: clean bear -- make -- cgit v1.2.3