From 1fe6aa992d3368ffd67e4c79cfa0b5c524ebea75 Mon Sep 17 00:00:00 2001 From: Hannes Feldt <feldt@astron.nl> Date: Mon, 13 Mar 2023 08:56:29 +0100 Subject: [PATCH] update formatting --- .clang-tidy | 17 ++++++++++------- .editorconfig | 25 +++++++++++++++++++++++++ .gitignore | 3 +++ 3 files changed, 38 insertions(+), 7 deletions(-) create mode 100644 .editorconfig diff --git a/.clang-tidy b/.clang-tidy index c971f37..8d4cd35 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -1,16 +1,19 @@ -Checks: '-*,clang-diagnostic-*,llvm-*,misc-*,-misc-const-correctness,-misc-unused-parameters,-misc-non-private-member-variables-in-classes,-misc-no-recursion,readability-identifier-naming' +Checks: '-*,clang-diagnostic-*,llvm-*,misc-*,-misc-const-correctness,-misc-unused-parameters,-misc-non-private-member-variables-in-classes,-misc-no-recursion,readability-identifier-naming,readability-braces-around-statements' CheckOptions: - key: readability-identifier-naming.ClassCase value: CamelCase - key: readability-identifier-naming.EnumCase value: CamelCase + - key: readability-identifier-naming.UnionCase + value: CamelCase +# Within ASTRON no specific casing is used. Feel free to adjust +# following casings to camelBack for existing projects or +# personal/team preferences. - key: readability-identifier-naming.FunctionCase - value: camelBack + value: lower_case - key: readability-identifier-naming.MemberCase - value: CamelCase + value: lower_case - key: readability-identifier-naming.ParameterCase - value: CamelCase - - key: readability-identifier-naming.UnionCase - value: CamelCase + value: lower_case - key: readability-identifier-naming.VariableCase - value: CamelCase + value: lower_case diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..e7ef401 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,25 @@ +# top-most EditorConfig file +root = true + +# Unix-style newlines with a newline ending every file +[*] +charset = utf-8 +end_of_line = lf +indent_style = space +insert_final_newline = true +trim_trailing_whitespace = true +indent_size = 4 + +# Tab indentation (no size specified) +[Makefile] +indent_style = tab + +[{CMakeLists.txt,*.cmake,*.rst}] +indent_size = 2 +indent_style = space + +[*.{py,c,h,hpp,cc,cpp}] +max_line_length = 80 + +[*.{c,h,cpp,hpp,cc}] +indent_size = 2 diff --git a/.gitignore b/.gitignore index 6f31401..a6a214a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,5 @@ build/ .vscode/ + +cmake-build-debug/ +.idea/ -- GitLab