Skip to content

Commit

Permalink
added future clang format options
Browse files Browse the repository at this point in the history
  • Loading branch information
SArpnt committed Feb 17, 2021
1 parent 4cab9d0 commit 9a88979
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .clang-format
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
BasedOnStyle: LLVM

ColumnLimit: 0
IndentWidth: '3'
TabWidth: '3'
AccessModifierOffset: '-2'
Expand All @@ -10,11 +11,14 @@ UseTab: ForContinuationAndIndentation
IndentCaseLabels: 'true'
#IndentPPDirectives: BeforeHash
NamespaceIndentation: All
#SpacesInLineCommentPrefix: 1 # clang 13 only
#SortIncludes # clang 13 only, setting needs to be figured out

DerivePointerAlignment: 'false'
PointerAlignment: Left

BreakBeforeBraces: Attach
# https://reviews.llvm.org/D33029 add this when it gets implemented
BreakAfterJavaFieldAnnotations: 'true'
BreakBeforeBinaryOperators: None

Expand All @@ -27,4 +31,4 @@ AllowShortFunctionsOnASingleLine: Inline
AllowShortLoopsOnASingleLine: 'false'

AlignAfterOpenBracket: DontAlign
FixNamespaceComments: false
FixNamespaceComments: false

0 comments on commit 9a88979

Please sign in to comment.