From dd548e5fe798151740f2531cdc71e10ec06aa850 Mon Sep 17 00:00:00 2001 From: Martin Kedmenec Date: Thu, 7 Dec 2023 13:14:06 +0100 Subject: [PATCH] Update configuration --- .clang-tidy | 17 +++++++++++++++++ .editorconfig | 5 +++++ .gitignore | 4 ++++ .idea/cmake.xml | 8 ++++++++ .idea/inspectionProfiles/Project_Default.xml | 4 ++-- .vscode/c_cpp_properties.json | 9 +++++++++ .vscode/extensions.json | 6 ++++++ .vscode/settings.json | 10 ++++++++++ .vscode/tasks.json | 16 ++++++++++++++++ CMakeLists.txt | 4 ++-- 10 files changed, 79 insertions(+), 4 deletions(-) create mode 100644 .idea/cmake.xml create mode 100644 .vscode/c_cpp_properties.json create mode 100644 .vscode/extensions.json create mode 100644 .vscode/settings.json create mode 100644 .vscode/tasks.json diff --git a/.clang-tidy b/.clang-tidy index 4e7c235..6bac0f1 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -11,3 +11,20 @@ performance-*, portability-*, readability-*' FormatStyle: file +CheckOptions: + concurrency-mt-unsafe.FunctionSet: posix + # See https://google.github.io/styleguide/cppguide.html + readability-identifier-naming.ConstantCase: CamelCase + readability-identifier-naming.ConstantPrefix: k + readability-identifier-naming.ConstantMemberCase: CamelCase + readability-identifier-naming.ConstantMemberPrefix: k + readability-identifier-naming.ConstantParameterCase: lower_case + readability-identifier-naming.EnumCase: CamelCase + readability-identifier-naming.EnumConstantCase: CamelCase + readability-identifier-naming.EnumConstantPrefix: k + readability-identifier-naming.FunctionCase: CamelCase + readability-identifier-naming.MemberCase: lower_case + readability-identifier-naming.ParameterCase: lower_case + readability-identifier-naming.StructCase: CamelCase + readability-identifier-naming.TypedefCase: CamelCase + readability-identifier-naming.VariableCase: lower_case diff --git a/.editorconfig b/.editorconfig index 9b9f51f..bd339a8 100644 --- a/.editorconfig +++ b/.editorconfig @@ -2,8 +2,13 @@ root = true [*] charset = utf-8 +end_of_line = lf insert_final_newline = true trim_trailing_whitespace = true +[*.{h,c}] +indent_style = space +indent_size = 2 + [*.md] trim_trailing_whitespace = false diff --git a/.gitignore b/.gitignore index b5dc14a..56f3714 100644 --- a/.gitignore +++ b/.gitignore @@ -175,3 +175,7 @@ fabric.properties # Android studio 3.1+ serialized cache file .idea/caches/build_file_checksums.ser + + +# Added by the developer +!/.vscode/c_cpp_properties.json diff --git a/.idea/cmake.xml b/.idea/cmake.xml new file mode 100644 index 0000000..e66f78a --- /dev/null +++ b/.idea/cmake.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml index aa4c426..251c8b6 100644 --- a/.idea/inspectionProfiles/Project_Default.xml +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -21,6 +21,7 @@ +