Update .clang-format

This commit is contained in:
Deal(一线灵) 2023-02-16 13:13:22 +08:00 committed by GitHub
parent e636ef1c80
commit f3090a800e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,5 @@
# This file is copy from https://github.com/google/angle with some modifications
# Defines the AXIS style for automatic reformatting.
# Defines the axmol style for automatic reformatting.
# https://code.google.com/p/angleproject/wiki/CodingStandard
# See Clang docs: http://clang.llvm.org/docs/ClangFormatStyleOptions.html
BasedOnStyle: Chromium
@ -36,6 +36,9 @@ BraceWrapping:
# Keeps extern "C" blocks unindented.
AfterExternBlock: false
# Lambda body indentation
LambdaBodyIndentation: OuterScope
# Indent case labels.
IndentCaseLabels: false
@ -61,4 +64,4 @@ IndentPPDirectives: AfterHash
# Include blocks style
IncludeBlocks: Preserve
UseTab: Never
BreakConstructorInitializers: BeforeComma
BreakConstructorInitializers: BeforeComma