Skip to content
Snippets Groups Projects
Commit 53919a9a authored by Grant Kim's avatar Grant Kim
Browse files

Update .clang-format

parent dc25ec35
No related branches found
No related tags found
No related merge requests found
---
# Last Update: 2020-03-12T16:10:34Z
# Last Update: 2020-07-15T16:26:22Z
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',
AfterControlStatement: 'true',
AfterEnum: 'true',
AfterExternBlock: 'false',
AfterFunction: 'true',
AfterNamespace: 'false',
AfterStruct: 'true',
AfterUnion: 'true',
BeforeCatch: 'true',
BeforeElse: 'true',
}
...
BraceWrapping:
{
AfterClass: "true",
AfterControlStatement: "true",
AfterEnum: "true",
AfterExternBlock: "false",
AfterFunction: "true",
AfterNamespace: "false",
AfterStruct: "true",
AfterUnion: "true",
BeforeCatch: "true",
BeforeElse: "true",
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment