Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
wolf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mobile_robotics
wolf_projects
wolf_lib
wolf
Commits
7737020a
Commit
7737020a
authored
3 years ago
by
Joan Solà Ortega
Browse files
Options
Downloads
Patches
Plain Diff
[skip ci] Update clang-format options
parent
627f138e
No related branches found
No related tags found
1 merge request
!451
After cmake and const refactor
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.clang-format
+27
-25
27 additions, 25 deletions
.clang-format
with
27 additions
and
25 deletions
.clang-format
+
27
−
25
View file @
7737020a
---
Language: Cpp
BasedOnStyle: Google
AccessModifierOffset: 0
IndentAccessModifiers: false
AccessModifierOffset: -2
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: true
AlignConsecutiveDeclarations: true
...
...
@@ -11,7 +12,7 @@ AlignTrailingComments: true
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine:
All
AllowShortFunctionsOnASingleLine:
Empty
AllowShortIfStatementsOnASingleLine: true
AllowShortLoopsOnASingleLine: true
AlwaysBreakAfterDefinitionReturnType: None
...
...
@@ -20,24 +21,24 @@ AlwaysBreakBeforeMultilineStrings: true
AlwaysBreakTemplateDeclarations: true
BinPackArguments: true
BinPackParameters: false
BreakBeforeBraces: Custom
BraceWrapping:
AfterClass:
fals
e
AfterControlStatement:
false
AfterEnum:
fals
e
AfterFunction:
fals
e
AfterNamespace:
fals
e
AfterObjCDeclaration:
fals
e
AfterStruct:
fals
e
AfterUnion:
fals
e
AfterClass:
tru
e
AfterControlStatement:
Always
AfterEnum:
tru
e
AfterFunction:
tru
e
AfterNamespace:
tru
e
AfterObjCDeclaration:
tru
e
AfterStruct:
tru
e
AfterUnion:
tru
e
AfterExternBlock: false
BeforeCatch:
fals
e
BeforeElse:
fals
e
BeforeCatch:
tru
e
BeforeElse:
tru
e
IndentBraces: false
SplitEmptyFunction: true
SplitEmptyRecord: true
SplitEmptyNamespace: true
BreakBeforeBinaryOperators: None
BreakBeforeBraces: Linux
BreakBeforeInheritanceComma: false
BreakBeforeTernaryOperators: true
BreakConstructorInitializersBeforeComma: false
...
...
@@ -45,7 +46,8 @@ BreakConstructorInitializers: BeforeColon
BreakAfterJavaFieldAnnotations: false
BreakStringLiterals: true
ColumnLimit: 119
CommentPragmas: "^ IWYU pragma:"
# CommentPragmas: "^ IWYU pragma: ^\\.+"
CommentPragmas: '^\\.+'
CompactNamespaces: false
ConstructorInitializerAllOnOneLineOrOnePerLine: true
ConstructorInitializerIndentWidth: 4
...
...
@@ -60,17 +62,17 @@ ForEachMacros:
- Q_FOREACH
- BOOST_FOREACH
IncludeBlocks: Preserve
IncludeCategories:
- Regex: '^<pinocchio/fwd\.hpp>'
Priority: 1
- Regex: '^<ext/.*\.h>'
Priority: 3
- Regex: '^<.*\.h>'
Priority: 2
- Regex: "^<.*"
Priority: 3
- Regex: ".*"
Priority: 4
#
IncludeCategories:
#
- Regex: '^<pinocchio/fwd\.hpp>'
#
Priority: 1
#
- Regex: '^<ext/.*\.h>'
#
Priority: 3
#
- Regex: '^<.*\.h>'
#
Priority: 2
#
- Regex: "^<.*"
#
Priority: 3
#
- Regex: ".*"
#
Priority: 4
IncludeIsMainRegex: "([-_](test|unittest))?$"
IndentCaseLabels: true
IndentPPDirectives: None
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment