Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
32 changes: 32 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
BasedOnStyle: Google
IndentWidth: 2

SortIncludes: true
IncludeBlocks: Regroup

AlignAfterOpenBracket: AlwaysBreak
BinPackArguments: false
BinPackParameters: false
AllowAllParametersOfDeclarationOnNextLine: false


IncludeCategories:
# 1. biorbdConfig.h is always first
- Regex: '^"biorbdConfig.h"'
Priority: 0

# 2. Special case: rbdl/Model.h
- Regex: '^<rbdl/Model.h>'
Priority: 2

# 3. Other rbdl headers
- Regex: '^<rbdl/.*>'
Priority: 3

# 4. Generic system headers <...> (but not rbdl yet)
- Regex: '^<.*>'
Priority: 1

# 5. Fallback (any other includes, e.g. "...")
- Regex: '.*'
Priority: 4
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,6 @@ Pipfile.lock
# mypy
.mypy_cache/

# Visual code
.vscode

# Visual studio
.vs

Expand Down
17 changes: 17 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
// Utilisez IntelliSense pour en savoir plus sur les attributs possibles.
// Pointez pour afficher la description des attributs existants.
// Pour plus d'informations, visitez : https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Forward dynamics Python example",
"type": "debugpy",
"request": "launch",
"program": "${workspaceFolder}/examples/python3/forward_dynamics.py",
"cwd": "${workspaceFolder}/examples/python3",
"console": "integratedTerminal",
"justMyCode": false,
}
]
}
12 changes: 12 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"cmake.configureOnOpen": false,
"cmake.buildDirectory": "${workspaceFolder}/build",
"C_Cpp.clang_format_fallbackStyle": "{ BasedOnStyle: Google }",
"editor.formatOnSave": true,
"[c]": {
"editor.defaultFormatter": "ms-vscode.cpptools"
},
"[cpp]": {
"editor.defaultFormatter": "ms-vscode.cpptools"
},
}
Loading
Loading