Skip to content

Commit 1f7cd73

Browse files
committed
Update .editorconfig and clang-format.txt
1 parent 75eaa18 commit 1f7cd73

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

clang-format.txt

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
1+
# This isn't enabled because clangformat messes things up pretty badly
2+
# in cases where readability is better without a bulldozer (like alignment
3+
# of math equations and tables), but it's here for reference of what the
4+
# standard layout would be.
5+
#
16
# Run manually to reformat a file:
27
#
3-
# LLVM14.0.0RC1\bin\clang-format.exe -i -style=file:clang-format.txt <file>
8+
# LLVM14.0.0RC1\bin\clang-format.exe -i -style=file:clang-format.txt yourfile.cpp
49
#
510
# To reformat all files using cmd.exe:
611
# for /r %t in (*.cc *.h) do clang-format.exe -i -style=file "%t"
712
#
8-
9-
#DisableFormat: true
10-
---
13+
DisableFormat: true
1114
BasedOnStyle: Microsoft
15+
1216
---
1317
Language: Cpp
1418
AlignAfterOpenBracket: BlockIndent
@@ -30,11 +34,12 @@ AllowShortLambdasOnASingleLine: true
3034
AllowShortFunctionsOnASingleLine: true
3135
AllowShortCaseLabelsOnASingleLine: true
3236
ConstructorInitializerAllOnOneLineOrOnePerLine: true
33-
BreakBeforeBraces: AllMan #Custom
37+
BreakBeforeBraces: Allman #Custom
3438
BraceWrapping:
3539
BeforeLambdaBody: true
3640
AccessModifierOffset: -4
3741
IndentAccessModifiers: false
42+
3843
---
3944
Language: JavaScript
4045
AlignAfterOpenBracket: AlwaysBreak

0 commit comments

Comments
 (0)