From 148d5f90bc21367dfe606a9901973a7a7943a4d9 Mon Sep 17 00:00:00 2001 From: "B.Delay" Date: Tue, 3 Dec 2024 10:50:56 +0100 Subject: [PATCH] feat: add clang format file --- .clang-format | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000000..d0359fe33e --- /dev/null +++ b/.clang-format @@ -0,0 +1,15 @@ +--- +BasedOnStyle: LLVM +IndentWidth: 8 # Indentations are 8 characters wide +TabWidth: 8 # Tabs are 8 characters wide +UseTab: ForIndentation # Use tabs for indentation only +IndentCaseLabels: false # Align `case` labels with `switch` for clarity +BreakBeforeBraces: Linux # Define brace placement rules for different contexts +ColumnLimit: 80 # 80-character line limit +PointerAlignment: Right # Align pointers next to the variable or function name +AllowShortIfStatementsOnASingleLine: false # Prohibit single-line `if` statements +SpacesInParentheses: false # No spaces inside parentheses +SpacesInAngles: false # No spaces inside angle brackets +SpaceAfterCStyleCast: false # Add space after C-style cast + +SpaceBeforeParens: ControlStatements # Add space after control statement