From cc0eac299ebffb0dbee013bb378a2eb90cc12252 Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Sun, 9 Feb 2025 17:44:00 +0100 Subject: [PATCH] Clang format --- .clang-format | 8 ++++++++ .gitignore | 2 ++ 2 files changed, 10 insertions(+) create mode 100644 .clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..41e7b1a --- /dev/null +++ b/.clang-format @@ -0,0 +1,8 @@ +BasedOnStyle: LLVM +IndentWidth: 4 # Use 4 spaces for indentation +TabWidth: 4 # Tab width is also 4 spaces +UseTab: Never # Always use spaces instead of tabs +ColumnLimit: 80 # Wrap lines after 80 characters +AllowShortLoopsOnASingleLine: true +AlwaysBreakTemplateDeclarations: true +BreakConstructorInitializers: BeforeComma diff --git a/.gitignore b/.gitignore index 1b8f046..b8e4dc0 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,5 @@ ch32fun.h ch32fun.ld ch32v003hw.h ch32v003.ld +.cache +compile_commands.json