From 378a280ea32c95286bc3c91ad69a704daa63cb88 Mon Sep 17 00:00:00 2001 From: Autumn60 Date: Sun, 11 Aug 2024 12:44:54 +0900 Subject: [PATCH 1/3] update .gitignore Signed-off-by: Autumn60 --- aichallenge/workspace/.gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/aichallenge/workspace/.gitignore b/aichallenge/workspace/.gitignore index 4c288e3e..ab2524be 100644 --- a/aichallenge/workspace/.gitignore +++ b/aichallenge/workspace/.gitignore @@ -1,3 +1,6 @@ /build /install /log + +.vscode +*.code-workspace \ No newline at end of file From d11683cf6930f68e9e4cdf074be6af981e3b3205 Mon Sep 17 00:00:00 2001 From: Autumn60 Date: Sun, 11 Aug 2024 12:45:22 +0900 Subject: [PATCH 2/3] add .clang-format Signed-off-by: Autumn60 --- aichallenge/workspace/.clang-format | 47 +++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 aichallenge/workspace/.clang-format diff --git a/aichallenge/workspace/.clang-format b/aichallenge/workspace/.clang-format new file mode 100644 index 00000000..b41fae91 --- /dev/null +++ b/aichallenge/workspace/.clang-format @@ -0,0 +1,47 @@ +# Modified from https://github.com/ament/ament_lint/blob/master/ament_clang_format/ament_clang_format/configuration/.clang-format +Language: Cpp +BasedOnStyle: Google + +AccessModifierOffset: -2 +AlignAfterOpenBracket: AlwaysBreak +AllowShortFunctionsOnASingleLine: InlineOnly +BraceWrapping: + AfterClass: true + AfterFunction: true + AfterNamespace: true + AfterStruct: true +BreakBeforeBraces: Custom +ColumnLimit: 100 +ConstructorInitializerIndentWidth: 0 +ContinuationIndentWidth: 2 +DerivePointerAlignment: false +PointerAlignment: Middle +ReflowComments: true +IncludeCategories: + # C++ system headers + - Regex: <[a-z_]*> + Priority: 6 + CaseSensitive: true + # C system headers + - Regex: <.*\.h> + Priority: 5 + CaseSensitive: true + # Boost headers + - Regex: boost/.* + Priority: 4 + CaseSensitive: true + # Message headers + - Regex: .*_msgs/.* + Priority: 3 + CaseSensitive: true + - Regex: .*_srvs/.* + Priority: 3 + CaseSensitive: true + # Other Package headers + - Regex: <.*> + Priority: 2 + CaseSensitive: true + # Local package headers + - Regex: '".*"' + Priority: 1 + CaseSensitive: true From fd44c52dd0f1488d3ae0580623758373fd783177 Mon Sep 17 00:00:00 2001 From: Autumn60 Date: Sun, 11 Aug 2024 13:17:29 +0900 Subject: [PATCH 3/3] add .clang-format to ignore list in .cspell.json Signed-off-by: Autumn60 --- .cspell.json | 1 + 1 file changed, 1 insertion(+) diff --git a/.cspell.json b/.cspell.json index 1c58d051..550d2344 100644 --- a/.cspell.json +++ b/.cspell.json @@ -18,6 +18,7 @@ "**/.vscode/**", "**/build/**", "**/CHANGELOG.rst", + "**/.clang-format", "**/CPPLINT.cfg", "**/Doxyfile", "**/install/**",