From 2b13efa7b78ab2bb08cba52e09b1f12af1701fd9 Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Sun, 7 Apr 2024 23:14:18 +0200 Subject: make: add make file and clang-{tidy,format} configs --- .clang-format | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .clang-format (limited to '.clang-format') diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..0a1656e --- /dev/null +++ b/.clang-format @@ -0,0 +1,16 @@ +# dotfiles -- clang-format +# author: johannst +# doc : https://clang.llvm.org/docs/ClangFormatStyleOptions.html +--- + +Language: Cpp +BasedOnStyle: Chromium + +AllowShortFunctionsOnASingleLine: None +#AllowShortFunctionsOnASingleLine: Empty + +AccessModifierOffset: -2 +IndentWidth: 2 + +AlignConsecutiveMacros: true +AlignConsecutiveAssignments: true -- cgit v1.2.3