Skip to content

Commit 9365f7b

Browse files
committed
Add tomas formating
1 parent 5b72abc commit 9365f7b

File tree

4 files changed

+72
-0
lines changed

4 files changed

+72
-0
lines changed

.clang-format

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
Language: Cpp
3+
Standard: c++20
4+
5+
AccessModifierOffset: -2
6+
ColumnLimit: 160
7+
MaxEmptyLinesToKeep: 2
8+
9+
AlignAfterOpenBracket: Align
10+
AlignConsecutiveAssignments: true
11+
AlignConsecutiveDeclarations: true
12+
13+
AllowShortBlocksOnASingleLine: false
14+
AllowShortCaseLabelsOnASingleLine: false
15+
AllowShortFunctionsOnASingleLine: false
16+
AllowShortIfStatementsOnASingleLine: false
17+
AllowShortLoopsOnASingleLine: false
18+
19+
AlwaysBreakTemplateDeclarations: true
20+
BreakBeforeBinaryOperators: false
21+
BreakBeforeBraces: Custom
22+
BreakConstructorInitializers: BeforeColon
23+
24+
KeepEmptyLinesAtTheStartOfBlocks: true
25+
NamespaceIndentation: None
26+
SortIncludes: false
27+
SpaceBeforeParens: ControlStatements
28+
29+
BraceWrapping:
30+
AfterClass: false
31+
AfterControlStatement: false
32+
AfterEnum: true
33+
AfterFunction: false
34+
AfterNamespace: true
35+
AfterObjCDeclaration: true
36+
AfterStruct: true
37+
AfterUnion: true
38+
BeforeCatch: true
39+
BeforeElse: false
40+
IndentBraces: false
41+
...

.vscode/c_cpp_properties.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"configurations": [
3+
{
4+
"name": "Linux",
5+
"includePath": [
6+
"${workspaceFolder}/**",
7+
"/opt/ros/jazzy/include/**",
8+
"/usr/include/eigen3"
9+
],
10+
"defines": [],
11+
"compilerPath": "/usr/bin/clang",
12+
"cStandard": "c17",
13+
"cppStandard": "c++20",
14+
"intelliSenseMode": "linux-clang-x64"
15+
}
16+
],
17+
"version": 4
18+
}

.vscode/extensions.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"recommendations": [
3+
"ms-vscode.cpptools"
4+
],
5+
}

.vscode/settings.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"editor.formatOnSave": true,
3+
"C_Cpp.clang_format_style": "file",
4+
"C_Cpp.clang_format_fallbackStyle": "none",
5+
"[cpp]": {
6+
"editor.defaultFormatter": "ms-vscode.cpptools"
7+
}
8+
}

0 commit comments

Comments
 (0)