From b82ca9d2b2d037eff26e75e5a980ad87ab352ec5 Mon Sep 17 00:00:00 2001 From: Viet-Hoa Do Date: Thu, 18 Apr 2024 15:33:49 +0100 Subject: [PATCH] Fix clang-format config * Update the clang-format config so that the formatted file compliant with 4-space indentation rule enforced by linter. - Use Google style as the base format to get more consistent indentation of 4 spaces. - Add extra configs to avoid non-4-space alignment. Signed-off-by: Viet-Hoa Do --- .clang-format | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.clang-format b/.clang-format index 77266d27..ad913784 100644 --- a/.clang-format +++ b/.clang-format @@ -5,12 +5,14 @@ # --- Language: Cpp -BasedOnStyle: LLVM +BasedOnStyle: Google ColumnLimit: 120 AccessModifierOffset: -4 AlignAfterOpenBracket: AlwaysBreak +AlignOperands: DontAlign AllowShortFunctionsOnASingleLine: None +BreakConstructorInitializers: AfterColon DerivePointerAlignment: false IndentWidth: 4 PointerAlignment: Left -- GitLab