Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SCS-Standard
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
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
Soundcontact Studio
SCS-Standard
Commits
53919a9a
Commit
53919a9a
authored
4 years ago
by
Grant Kim
Browse files
Options
Downloads
Patches
Plain Diff
Update .clang-format
parent
dc25ec35
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cpp/.clang-format
+36
-35
36 additions, 35 deletions
cpp/.clang-format
with
36 additions
and
35 deletions
cpp/.clang-format
+
36
−
35
View file @
53919a9a
---
# Last Update: 2020-0
3
-1
2
T16:
10:34
Z
# Last Update: 2020-0
7
-1
5
T16:
26:22
Z
Language: Cpp
AccessModifierOffset: '-2'
AlignAfterOpenBracket: 'AlwaysBreak'
AlignConsecutiveAssignments : 'true'
AlignConsecutiveDeclarations: 'true'
AllowShortBlocksOnASingleLine: 'false'
AllowShortFunctionsOnASingleLine: 'None'
AlwaysBreakTemplateDeclarations: 'true'
BinPackArguments: 'false'
BinPackParameters: 'false'
BreakBeforeBraces: 'Custom'
BreakBeforeTernaryOperators: 'true'
BreakConstructorInitializers: 'BeforeComma'
AccessModifierOffset: "-2"
AlignAfterOpenBracket: "AlwaysBreak"
AlignConsecutiveAssignments: "true"
AlignConsecutiveDeclarations: "true"
AlignConsecutiveMacros: "true"
AllowShortBlocksOnASingleLine: "false"
AllowShortFunctionsOnASingleLine: "None"
AlwaysBreakTemplateDeclarations: "true"
BinPackArguments: "false"
BinPackParameters: "false"
BreakBeforeBraces: "Custom"
BreakBeforeTernaryOperators: "true"
BreakConstructorInitializers: "BeforeComma"
# https://reviews.llvm.org/D43015
# Some IDEs or editors using older version of clang-format
# BreakInheritanceList: 'BeforeComma'
ColumnLimit:
'
80
'
CompactNamespaces:
'
true
'
DerivePointerAlignment:
'
false
'
FixNamespaceComments:
'
true
'
ColumnLimit:
"
80
"
CompactNamespaces:
"
true
"
DerivePointerAlignment:
"
false
"
FixNamespaceComments:
"
true
"
IncludeBlocks: Regroup
IndentPPDirectives: AfterHash
IndentWidth:
'2'
NamespaceIndentation:
'
None
'
IndentWidth:
"2"
NamespaceIndentation:
"
None
"
# https://github.com/llvm-mirror/clang/blob/release_90/lib/Format/WhitespaceManager.cpp#L580-L585
# This parameter is broken. Please always put pointer operators at the right side.
#
...
...
@@ -32,23 +33,23 @@ NamespaceIndentation: 'None'
# MyDataType *myDataPtr;
#
# PointerAlignment: 'Right'
ReflowComments:
'
true
'
SpaceBeforeAssignmentOperators:
'
true
'
ReflowComments:
"
true
"
SpaceBeforeAssignmentOperators:
"
true
"
# We recommened to follow this format but we don't force to yet.
# SpacesInParentheses: 'true'
TabWidth:
'2'
TabWidth:
"2"
UseTab: Never
BraceWrapping:
{
AfterClass: 'true',
AfterC
ontrolStatement
:
'
true
'
,
After
Enum
:
'
true
'
,
AfterE
xternBlock: 'false'
,
After
Function: 'true'
,
After
Namespace: 'false'
,
After
Struct: 'true'
,
After
Union
:
'
true
'
,
BeforeCatch
:
'
true
'
,
Before
Else
:
'
true
'
,
}
...
BraceWrapping:
{
AfterC
lass
:
"
true
"
,
After
ControlStatement
:
"
true
"
,
AfterE
num: "true"
,
After
ExternBlock: "false"
,
After
Function: "true"
,
After
Namespace: "false"
,
After
Struct
:
"
true
"
,
AfterUnion
:
"
true
"
,
Before
Catch
:
"
true
"
,
BeforeElse: "true",
}
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