diff --git a/.clang-tidy b/.clang-tidy index c971f37156c74e6e91f0e6e7a99037364664aa2d..8d4cd351eeb72fb02a2bf30b37d268ed6f099e28 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 0000000000000000000000000000000000000000..e7ef401160e016305cb65f0fc82885d72ef4a7de --- /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 6f31401f787928dc3bb3e2622578f889336d1d92..a6a214ad95e6f0e472318f4060204b2527911217 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,5 @@ build/ .vscode/ + +cmake-build-debug/ +.idea/