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

Update .clang-format

parent 968e1b98
No related branches found
No related tags found
No related merge requests found
---
# Last Update: 2019-08-18T02:32:00
# Last Update: 2020-03-12T16:10:34Z
Language: Cpp
AccessModifierOffset: '-2'
AlignAfterOpenBracket: 'AlwaysBreak'
......@@ -13,7 +13,9 @@ BinPackParameters: 'false'
BreakBeforeBraces: 'Custom'
BreakBeforeTernaryOperators: 'true'
BreakConstructorInitializers: 'BeforeComma'
BreakInheritanceList: 'BeforeComma'
# https://reviews.llvm.org/D43015
# Some IDEs or editors using older version of clang-format
# BreakInheritanceList: 'BeforeComma'
ColumnLimit: '80'
CompactNamespaces: 'true'
DerivePointerAlignment: 'false'
......@@ -22,10 +24,18 @@ IncludeBlocks: Regroup
IndentPPDirectives: AfterHash
IndentWidth: '2'
NamespaceIndentation: 'None'
PointerAlignment: 'Right'
# 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.
#
# e.g:
# void *myVoidPtr;
# MyDataType *myDataPtr;
#
# PointerAlignment: 'Right'
ReflowComments: 'true'
SpaceBeforeAssignmentOperators: 'true'
SpacesInParentheses: 'true'
# We recommened to follow this format but we don't force to yet.
# SpacesInParentheses: 'true'
TabWidth: '2'
UseTab: Never
......
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