From 437148f8f39481f7a91fceafbbc6da7cb47c6f60 Mon Sep 17 00:00:00 2001 From: Matthias Grob Date: Thu, 30 Jun 2022 16:07:37 +0200 Subject: [PATCH] Makefile: target to test clang-format on the entire codebase --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 32a6e17c0d..89f13079f3 100644 --- a/Makefile +++ b/Makefile @@ -375,6 +375,10 @@ format: $(call colorecho,'Formatting with astyle') @"$(SRC_DIR)"/Tools/astyle/check_code_style_all.sh --fix +format_clang: + $(call colorecho,'Formatting with clang-format') + @"$(SRC_DIR)"/Tools/astyle/files_to_check_code_style.sh | xargs clang-format -i -style=file + # Testing # -------------------------------------------------------------------- .PHONY: tests tests_coverage tests_mission tests_mission_coverage tests_offboard tests_avoidance