From 41de2c5c78da1b5e85b3cb1020fc40118a38cbcc Mon Sep 17 00:00:00 2001 From: Pimpest <82343504+Pimpest@users.noreply.github.com> Date: Tue, 25 Feb 2025 11:30:18 +0100 Subject: [PATCH] Repo init --- .clang-format | 68 +++++++++++++++++++++++++++++++++++++++++++++++++++ .clang-tidy | 31 +++++++++++++++++++++++ .clangd | 6 +++++ .gitignore | 3 +++ README.md | 13 ++++++++++ 5 files changed, 121 insertions(+) create mode 100644 .clang-format create mode 100644 .clang-tidy create mode 100644 .clangd create mode 100644 .gitignore create mode 100644 README.md diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..5ffc498 --- /dev/null +++ b/.clang-format @@ -0,0 +1,68 @@ +--- +Language: Cpp +BasedOnStyle: Mozilla + +AccessModifierOffset: -2 +AlignAfterOpenBracket: Align +AlignConsecutiveMacros: true +AlignConsecutiveAssignments: true +AlignEscapedNewlines: Right +AlignOperands: false +AlignTrailingComments: true +AllowAllArgumentsOnNextLine: true +AllowAllConstructorInitializersOnNextLine: true +AllowAllParametersOfDeclarationOnNextLine: true +AllowShortBlocksOnASingleLine: true +AllowShortCaseLabelsOnASingleLine: true +AllowShortFunctionsOnASingleLine: true +AllowShortIfStatementsOnASingleLine: Never +AllowShortLambdasOnASingleLine: All +AllowShortLoopsOnASingleLine: true +AlwaysBreakAfterDefinitionReturnType: None +AlwaysBreakAfterReturnType: None +AlwaysBreakBeforeMultilineStrings: false +AlwaysBreakTemplateDeclarations: Yes +BreakBeforeBinaryOperators: true +BreakBeforeBraces: Attach +BreakBeforeTernaryOperators: false +BreakConstructorInitializers: AfterColon +ColumnLimit: 120 +CompactNamespaces: false +ExperimentalAutoDetectBinPacking: false +FixNamespaceComments: false +IncludeBlocks: Preserve +IndentCaseLabels: true +IndentWidth: 4 +PointerAlignment: Left +PackConstructorInitializers: NextLine +ReflowComments: false +SortIncludes: false +SortUsingDeclarations: false +SpaceAfterCStyleCast: false +SpaceAfterLogicalNot: false +SpaceAfterTemplateKeyword: true +SpaceBeforeCtorInitializerColon: true +SpaceBeforeInheritanceColon: true +SpaceBeforeParens: ControlStatements +SpaceBeforeRangeBasedForLoopColon: true +SpaceInEmptyBlock: true +SpaceInEmptyParentheses: false +SpacesBeforeTrailingComments: 1 +SpacesInAngles: false +SpacesInCStyleCastParentheses: false +SpacesInContainerLiterals: false +SpacesInParentheses: false +SpacesInSquareBrackets: false +Standard: Auto +TabWidth: 4 +UseTab: Never + +AllowShortEnumsOnASingleLine: false + +BraceWrapping: + AfterEnum: false + +AlignConsecutiveDeclarations: + Enabled: true + +NamespaceIndentation: All \ No newline at end of file diff --git a/.clang-tidy b/.clang-tidy new file mode 100644 index 0000000..79a5255 --- /dev/null +++ b/.clang-tidy @@ -0,0 +1,31 @@ +--- +Checks: " + *, + -abseil-*, + -altera-*, + -android-*, + -fuchsia-*, + -google-*, + -llvm*, + -modernize-use-trailing-return-type, + -zircon-*, + -readability-else-after-return, + -readability-static-accessed-through-instance, + -readability-avoid-const-params-in-decls, + -cppcoreguidelines-non-private-member-variables-in-classes, + -misc-non-private-member-variables-in-classes, + -misc-non-private-member-variables-in-classes, + -readability-identifier-length, + -misc-include-cleaner, + -modernize-avoid-bind, + -hicpp-*, + -bugprone-easily-swappable-parameters, + -readability-function-cognitive-complexity, + -readability-named-parameter, + -cppcoreguidelines-pro-type-union-access, + -cppcoreguidelines-macro-usage, + -performance-unnecessary-value-param, + " +WarningsAsErrors: '' +HeaderFilterRegex: '' +FormatStyle: none \ No newline at end of file diff --git a/.clangd b/.clangd new file mode 100644 index 0000000..68e449a --- /dev/null +++ b/.clangd @@ -0,0 +1,6 @@ +--- +Diagnostics: + UnusedIncludes: None + MissingIncludes: None + ClangTidy: + FastCheckFilter: Loose \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..29cad58 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +build/ +install/ +log/ \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..eec0ae6 --- /dev/null +++ b/README.md @@ -0,0 +1,13 @@ +# Magrob +[//]: # (TODO: Add and Image here of something related) +Team Magnesium Robotics' codebase for [Eurobot](https://www.eurobot.org) based + on the ROS2 framework. + + ## Building + TODO + + ## Usage + TODO + + ## Notice + TODO \ No newline at end of file