# SPDX-FileCopyrightText: Copyright (C) swift Project Community / Contributors # SPDX-License-Identifier: CC0-1.0 --- Language: Cpp BasedOnStyle: LLVM AccessModifierOffset: -4 AlignTrailingComments: false AllowShortBlocksOnASingleLine: Always AllowShortCaseLabelsOnASingleLine: true AllowShortIfStatementsOnASingleLine: WithoutElse AllowShortLoopsOnASingleLine: true AlwaysBreakTemplateDeclarations: Yes BraceWrapping: AfterCaseLabel: true AfterClass: true AfterControlStatement: Always AfterEnum: true AfterFunction: true AfterNamespace: true AfterObjCDeclaration: true AfterStruct: true AfterUnion: true AfterExternBlock: true BeforeCatch: true BeforeElse: true BeforeLambdaBody: false BeforeWhile: true IndentBraces: false SplitEmptyFunction: false SplitEmptyRecord: false SplitEmptyNamespace: false BreakBeforeBraces: Custom BreakInheritanceList: AfterColon BreakBeforeTernaryOperators: false BreakConstructorInitializers: BeforeColon ColumnLimit: 120 Cpp11BracedListStyle: false FixNamespaceComments: true IncludeBlocks: Regroup # Adapted from Google style: IncludeCategories: - Regex: '^<.*\.h>' Priority: 1 SortPriority: 0 - Regex: '^<[a-z].*' Priority: 2 SortPriority: 0 CaseSensitive: true - Regex: '^