From 2b84beffc9863997696e24632e17eab4e0db33a9 Mon Sep 17 00:00:00 2001 From: Johannes Schmidt Date: Thu, 24 Jul 2025 16:21:18 +0200 Subject: [PATCH] Add a .clang-format file implementing the Icinga 2 style guide --- .clang-format | 25 +++++++++++++++++++++++++ .gitignore | 1 + 2 files changed, 26 insertions(+) create mode 100644 .clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 000000000..7e088790b --- /dev/null +++ b/.clang-format @@ -0,0 +1,25 @@ +--- +BasedOnStyle: LLVM +AccessModifierOffset: -4 +AlignAfterOpenBracket: DontAlign +BreakBeforeBraces: Mozilla +ColumnLimit: 100 +IncludeCategories: + - Regex: ^"(base|icinga|remote|test)/ + Priority: 1 + CaseSensitive: false + - Regex: ^