| 1 |
BasedOnStyle: LLVM |
| 2 |
# Note that we don't specify the language in this file because some files are |
| 3 |
# detected as Cpp, but others are detected as ObjC and we want this formatting |
| 4 |
# to apply to all types of files. |
| 5 |
|
| 6 |
AlignAfterOpenBracket: Align |
| 7 |
AlignConsecutiveAssignments: Consecutive |
| 8 |
AlignConsecutiveBitFields: Consecutive |
| 9 |
AlignEscapedNewlines: Right |
| 10 |
AlignOperands: AlignAfterOperator |
| 11 |
AlignTrailingComments: true |
| 12 |
AllowAllArgumentsOnNextLine: true |
| 13 |
AllowAllParametersOfDeclarationOnNextLine: true |
| 14 |
AllowShortFunctionsOnASingleLine: true |
| 15 |
AllowShortLambdasOnASingleLine: All |
| 16 |
AttributeMacros: [ |
| 17 |
'_ALIGNAS_TYPE', |
| 18 |
'_ALIGNAS', |
| 19 |
'_LIBCPP_ACQUIRE_CAPABILITY', |
| 20 |
'_LIBCPP_ACQUIRE_SHARED_CAPABILITY', |
| 21 |
'_LIBCPP_ALIGNOF', |
| 22 |
'_LIBCPP_ALWAYS_INLINE', |
| 23 |
'_LIBCPP_CAPABILITY', |
| 24 |
'_LIBCPP_CONSTEXPR_SINCE_CXX14', |
| 25 |
'_LIBCPP_CONSTEXPR_SINCE_CXX17', |
| 26 |
'_LIBCPP_CONSTEXPR_SINCE_CXX20', |
| 27 |
'_LIBCPP_CONSTEXPR_SINCE_CXX23', |
| 28 |
'_LIBCPP_CONSTEXPR', |
| 29 |
'_LIBCPP_CONSTINIT', |
| 30 |
'_LIBCPP_DEPRECATED_IN_CXX11', |
| 31 |
'_LIBCPP_DEPRECATED_IN_CXX14', |
| 32 |
'_LIBCPP_DEPRECATED_IN_CXX17', |
| 33 |
'_LIBCPP_DEPRECATED_IN_CXX20', |
| 34 |
'_LIBCPP_DEPRECATED_IN_CXX23', |
| 35 |
'_LIBCPP_DEPRECATED', |
| 36 |
'_LIBCPP_EXCLUDE_FROM_EXPLICIT_INSTANTIATION', |
| 37 |
'_LIBCPP_EXPORTED_FROM_ABI', |
| 38 |
'_LIBCPP_EXTERN_TEMPLATE_TYPE_VIS', |
| 39 |
'_LIBCPP_FALLTHROUGH', |
| 40 |
'_LIBCPP_HIDDEN', |
| 41 |
'_LIBCPP_HIDE_FROM_ABI_AFTER_V1', |
| 42 |
'_LIBCPP_HIDE_FROM_ABI', |
| 43 |
'_LIBCPP_NO_SANITIZE', |
| 44 |
'_LIBCPP_NO_UNIQUE_ADDRESS', |
| 45 |
'_LIBCPP_NOALIAS', |
| 46 |
'_LIBCPP_OVERRIDABLE_FUNC_VIS', |
| 47 |
'_LIBCPP_RELEASE_CAPABILITY', |
| 48 |
'_LIBCPP_REQUIRES_CAPABILITY', |
| 49 |
'_LIBCPP_SCOPED_LOCKABLE', |
| 50 |
'_LIBCPP_STANDALONE_DEBUG', |
| 51 |
'_LIBCPP_TEMPLATE_DATA_VIS', |
| 52 |
'_LIBCPP_TRY_ACQUIRE_CAPABILITY', |
| 53 |
'_LIBCPP_TRY_ACQUIRE_SHARED_CAPABILITY', |
| 54 |
'_LIBCPP_USING_IF_EXISTS', |
| 55 |
'_LIBCPP_WEAK', |
| 56 |
] |
| 57 |
BinPackArguments: false |
| 58 |
BinPackParameters: false |
| 59 |
BreakBeforeConceptDeclarations: true |
| 60 |
BreakInheritanceList: BeforeColon |
| 61 |
EmptyLineAfterAccessModifier: Never |
| 62 |
EmptyLineBeforeAccessModifier: Always |
| 63 |
IndentWrappedFunctionNames: false |
| 64 |
IndentRequires: true |
| 65 |
InsertTrailingCommas: Wrapped |
| 66 |
KeepEmptyLinesAtTheStartOfBlocks: false |
| 67 |
MaxEmptyLinesToKeep: 1 |
| 68 |
PackConstructorInitializers: NextLine |
| 69 |
|
| 70 |
PenaltyIndentedWhitespace: 2 |
| 71 |
|
| 72 |
Standard: c++20 |
| 73 |
SpacesInAngles: Leave |
| 74 |
|
| 75 |
AlwaysBreakTemplateDeclarations: true |
| 76 |
PointerAlignment: Left |
| 77 |
|
| 78 |
|
| 79 |
# libc++'s preferred indentions of preprocessor statements. |
| 80 |
IndentPPDirectives: AfterHash |
| 81 |
|
| 82 |
# libc++ has some long names so we need more than the 80 column limit imposed by LLVM style, for sensible formatting |
| 83 |
ColumnLimit: 120 |