From 020cb9e954aa0684c8fbddf4fdc26f80028fb7bd Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Mon, 8 Apr 2024 01:40:00 +0200 Subject: [PATCH] Formatting --- makefile | 4 ++++ src/main.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/makefile b/makefile index ca3ab4a..419b675 100644 --- a/makefile +++ b/makefile @@ -58,6 +58,10 @@ build/%.o: src/%.c | mkbuilddir size: $(TARGET) $(SIZE) $(TARGET) +# Format with clang-format +format: $(SRCS) + clang-format -i $^ + # Clean up the build directory clean: rm -r build diff --git a/src/main.c b/src/main.c index 6aad8a5..d0c89ee 100644 --- a/src/main.c +++ b/src/main.c @@ -1,6 +1,6 @@ #include int main(int argc, const char **argv) { - printf("Hello, World!\n"); - return 0; + printf("Hello, World!\n"); + return 0; }