зеркало из https://github.com/microsoft/STL.git
233 строки
7.1 KiB
YAML
233 строки
7.1 KiB
YAML
# Copyright (c) Microsoft Corporation.
|
|
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
|
|
# https://releases.llvm.org/13.0.0/tools/clang/docs/ClangFormatStyleOptions.html
|
|
|
|
---
|
|
# Language: Cpp
|
|
BasedOnStyle: LLVM
|
|
# AccessModifierOffset: -2
|
|
AccessModifierOffset: -4
|
|
# AlignAfterOpenBracket: Align
|
|
AlignAfterOpenBracket: DontAlign
|
|
# AlignArrayOfStructures: None
|
|
# TRANSITION, LLVM-51935 (try using AlignArrayOfStructures after this crash is fixed)
|
|
# AlignConsecutiveMacros: None
|
|
AlignConsecutiveMacros: Consecutive
|
|
# AlignConsecutiveAssignments: None
|
|
AlignConsecutiveAssignments: Consecutive
|
|
# AlignConsecutiveBitFields: None
|
|
# AlignConsecutiveDeclarations: None
|
|
# AlignEscapedNewlines: Right
|
|
AlignEscapedNewlines: Left
|
|
# AlignOperands: Align
|
|
AlignOperands: AlignAfterOperator
|
|
# AlignTrailingComments: true
|
|
AlignTrailingComments: false
|
|
# AllowAllArgumentsOnNextLine: true
|
|
# AllowAllConstructorInitializersOnNextLine: true
|
|
# AllowAllParametersOfDeclarationOnNextLine: true
|
|
# AllowShortEnumsOnASingleLine: true
|
|
# AllowShortBlocksOnASingleLine: Never
|
|
# AllowShortCaseLabelsOnASingleLine: false
|
|
# AllowShortFunctionsOnASingleLine: All
|
|
AllowShortFunctionsOnASingleLine: Empty
|
|
# AllowShortLambdasOnASingleLine: All
|
|
# AllowShortIfStatementsOnASingleLine: Never
|
|
# AllowShortLoopsOnASingleLine: false
|
|
# AlwaysBreakAfterDefinitionReturnType: None
|
|
# AlwaysBreakAfterReturnType: None
|
|
# AlwaysBreakBeforeMultilineStrings: false
|
|
# AlwaysBreakTemplateDeclarations: MultiLine
|
|
AlwaysBreakTemplateDeclarations: Yes
|
|
# AttributeMacros:
|
|
# - __capability
|
|
# BinPackArguments: true
|
|
# BinPackParameters: true
|
|
# BraceWrapping:
|
|
# AfterCaseLabel: false
|
|
# AfterClass: false
|
|
# AfterControlStatement: Never
|
|
# AfterEnum: false
|
|
# AfterFunction: false
|
|
# AfterNamespace: false
|
|
# AfterObjCDeclaration: false
|
|
# AfterStruct: false
|
|
# AfterUnion: false
|
|
# AfterExternBlock: false
|
|
# BeforeCatch: false
|
|
# BeforeElse: false
|
|
# BeforeLambdaBody: false
|
|
# BeforeWhile: false
|
|
# IndentBraces: false
|
|
# SplitEmptyFunction: true
|
|
# SplitEmptyRecord: true
|
|
# SplitEmptyNamespace: true
|
|
# BreakBeforeBinaryOperators: None
|
|
BreakBeforeBinaryOperators: NonAssignment
|
|
# BreakBeforeConceptDeclarations: true
|
|
# BreakBeforeBraces: Attach
|
|
# BreakBeforeInheritanceComma: false
|
|
# BreakInheritanceList: BeforeColon
|
|
# BreakBeforeTernaryOperators: true
|
|
# BreakConstructorInitializersBeforeComma: false
|
|
# BreakConstructorInitializers: BeforeColon
|
|
# BreakAfterJavaFieldAnnotations: false
|
|
# BreakStringLiterals: true
|
|
# ColumnLimit: 80
|
|
ColumnLimit: 120
|
|
# CommentPragmas: '^ IWYU pragma:'
|
|
# CompactNamespaces: false
|
|
# ConstructorInitializerAllOnOneLineOrOnePerLine: false
|
|
# ConstructorInitializerIndentWidth: 4
|
|
# ContinuationIndentWidth: 4
|
|
# Cpp11BracedListStyle: true
|
|
# DeriveLineEnding: true
|
|
DeriveLineEnding: false
|
|
# DerivePointerAlignment: false
|
|
# DisableFormat: false
|
|
# EmptyLineAfterAccessModifier: Never
|
|
# EmptyLineBeforeAccessModifier: LogicalBlock
|
|
# ExperimentalAutoDetectBinPacking: false
|
|
# FixNamespaceComments: true
|
|
# ForEachMacros:
|
|
# - foreach
|
|
# - Q_FOREACH
|
|
# - BOOST_FOREACH
|
|
# IfMacros:
|
|
# - KJ_IF_MAYBE
|
|
# IncludeBlocks: Preserve
|
|
IncludeBlocks: Regroup
|
|
# IncludeCategories:
|
|
# - Regex: '^"(llvm|llvm-c|clang|clang-c)/'
|
|
# Priority: 2
|
|
# SortPriority: 0
|
|
# CaseSensitive: false
|
|
# - Regex: '^(<|"(gtest|gmock|isl|json)/)'
|
|
# Priority: 3
|
|
# SortPriority: 0
|
|
# CaseSensitive: false
|
|
# - Regex: '.*'
|
|
# Priority: 1
|
|
# SortPriority: 0
|
|
# CaseSensitive: false
|
|
IncludeCategories:
|
|
- Regex: '^<yvals(_core)?\.h>$'
|
|
Priority: 1
|
|
- Regex: '^<(Windows|userenv)\.h>$'
|
|
Priority: 3
|
|
SortPriority: 3
|
|
- Regex: '^<WinIoCtl\.h>$'
|
|
Priority: 3
|
|
SortPriority: 4
|
|
- Regex: '^<__.*\.hpp>$'
|
|
Priority: 2
|
|
- Regex: '\.hpp[>"]$'
|
|
Priority: 5
|
|
- Regex: '.*'
|
|
Priority: 2
|
|
# IncludeIsMainRegex: '(Test)?$'
|
|
# IncludeIsMainSourceRegex: ''
|
|
# IndentAccessModifiers: false
|
|
# IndentCaseLabels: false
|
|
# IndentCaseBlocks: false
|
|
IndentCaseBlocks: true
|
|
# IndentGotoLabels: true
|
|
# IndentPPDirectives: None
|
|
# IndentExternBlock: AfterExternBlock
|
|
# IndentRequires: false
|
|
IndentRequires: true
|
|
# IndentWidth: 2
|
|
IndentWidth: 4
|
|
# IndentWrappedFunctionNames: false
|
|
IndentWrappedFunctionNames: true
|
|
# InsertTrailingCommas: None
|
|
# JavaScriptQuotes: Leave
|
|
# JavaScriptWrapImports: true
|
|
# KeepEmptyLinesAtTheStartOfBlocks: true
|
|
# LambdaBodyIndentation: Signature
|
|
# NOTE: MacroBlockBegin/MacroBlockEnd don't work with _CATCH_ALL.
|
|
# MacroBlockBegin: ''
|
|
# MacroBlockEnd: ''
|
|
# MaxEmptyLinesToKeep: 1
|
|
MaxEmptyLinesToKeep: 2
|
|
# NamespaceIndentation: None
|
|
NamespaceIndentation: All
|
|
# ObjCBinPackProtocolList: Auto
|
|
# ObjCBlockIndentWidth: 2
|
|
# ObjCBreakBeforeNestedBlockParam: true
|
|
# ObjCSpaceAfterProperty: false
|
|
# ObjCSpaceBeforeProtocolList: true
|
|
# PenaltyBreakAssignment: 2
|
|
# PenaltyBreakBeforeFirstCallParameter: 19
|
|
# PenaltyBreakComment: 300
|
|
# PenaltyBreakFirstLessLess: 120
|
|
# PenaltyBreakString: 1000
|
|
# PenaltyBreakTemplateDeclaration: 10
|
|
# PenaltyExcessCharacter: 1000000
|
|
# PenaltyReturnTypeOnItsOwnLine: 60
|
|
# PenaltyIndentedWhitespace: 0
|
|
# PointerAlignment: Right
|
|
PointerAlignment: Left
|
|
# PPIndentWidth: -1
|
|
# ReferenceAlignment: Pointer
|
|
# ReflowComments: true
|
|
# ShortNamespaceLines: 1
|
|
# SortIncludes: CaseSensitive
|
|
# SortJavaStaticImport: Before
|
|
# SortUsingDeclarations: true
|
|
# SpaceAfterCStyleCast: false
|
|
SpaceAfterCStyleCast: true
|
|
# SpaceAfterLogicalNot: false
|
|
# SpaceAfterTemplateKeyword: true
|
|
# SpaceBeforeAssignmentOperators: true
|
|
# SpaceBeforeCaseColon: false
|
|
# SpaceBeforeCpp11BracedList: false
|
|
# SpaceBeforeCtorInitializerColon: true
|
|
# SpaceBeforeInheritanceColon: true
|
|
# SpaceBeforeParens: ControlStatements
|
|
# SpaceAroundPointerQualifiers: Default
|
|
# SpaceBeforeRangeBasedForLoopColon: true
|
|
# SpaceInEmptyBlock: false
|
|
# SpaceInEmptyParentheses: false
|
|
# SpacesBeforeTrailingComments: 1
|
|
# SpacesInAngles: Never
|
|
# SpacesInConditionalStatement: false
|
|
# SpacesInContainerLiterals: true
|
|
# SpacesInCStyleCastParentheses: false
|
|
# SpacesInLineCommentPrefix:
|
|
# Minimum: 1
|
|
# Maximum: -1
|
|
# SpacesInParentheses: false
|
|
# SpacesInSquareBrackets: false
|
|
# SpaceBeforeSquareBrackets: false
|
|
# BitFieldColonSpacing: Both
|
|
# Standard: Latest
|
|
# StatementAttributeLikeMacros:
|
|
# - Q_EMIT
|
|
# StatementMacros:
|
|
# - Q_UNUSED
|
|
# - QT_REQUIRE_VERSION
|
|
# NOTE: _STD_BEGIN, _STD_END, etc. aren't macros for complete statements, but telling
|
|
# clang-format that they are produces the behavior that we want (with no block indentation).
|
|
StatementMacros:
|
|
- _STD_BEGIN
|
|
- _STD_END
|
|
- _STDEXT_BEGIN
|
|
- _STDEXT_END
|
|
- _EXTERN_C
|
|
- _END_EXTERN_C
|
|
- _EXTERN_C_UNLESS_PURE
|
|
- _END_EXTERN_C_UNLESS_PURE
|
|
# TabWidth: 8
|
|
# UseCRLF: false
|
|
UseCRLF: true
|
|
# UseTab: Never
|
|
# WhitespaceSensitiveMacros:
|
|
# - STRINGIZE
|
|
# - PP_STRINGIZE
|
|
# - BOOST_PP_STRINGIZE
|
|
# - NS_SWIFT_NAME
|
|
# - CF_SWIFT_NAME
|
|
...
|