Eric Fiselier | e93265a | 2016-11-15 20:21:30 +0000 | [diff] [blame] | 1 | BasedOnStyle: LLVM |
Eric Fiselier | b5d9f44 | 2016-11-23 01:18:56 +0000 | [diff] [blame] | 2 | |
Nikolas Klauser | 77017e1 | 2022-06-14 20:09:03 +0200 | [diff] [blame^] | 3 | AlignAfterOpenBracket: Align |
| 4 | AlignConsecutiveAssignments: Consecutive |
| 5 | AlignConsecutiveBitFields: Consecutive |
| 6 | AlignEscapedNewlines: Right |
| 7 | AlignOperands: AlignAfterOperator |
| 8 | AlignTrailingComments: true |
| 9 | AllowAllArgumentsOnNextLine: true |
| 10 | AllowAllParametersOfDeclarationOnNextLine: true |
| 11 | AllowShortFunctionsOnASingleLine: true |
| 12 | AllowShortLambdasOnASingleLine: All |
| 13 | AttributeMacros: ['_LIBCPP_HIDE_FROM_ABI', |
| 14 | '_LIBCPP_CONSTEXPR', |
| 15 | '_LIBCPP_CONSTEXPR_AFTER_CXX11', |
| 16 | '_LIBCPP_CONSTEXPR_AFTER_CXX14', |
| 17 | '_LIBCPP_CONSTEXPR_AFTER_CXX17', |
| 18 | '_LIBCPP_CONSTEXPR_AFTER_CXX20', |
| 19 | '_LIBCPP_ALIGNOF', |
| 20 | '_ALIGNAS_TYPE', |
| 21 | '_ALIGNAS', |
| 22 | '_LIBCPP_NORETURN', |
| 23 | '_LIBCPP_ALWAYS_INLINE', |
| 24 | '_LIBCPP_DISABLE_EXTENTSION_WARNING', |
| 25 | '_LIBCPP_HIDDEN', |
| 26 | '_LIBCPP_METHOD_TEMPLATE_IMPLICIT_INSTANTIATION_VIS', |
| 27 | '_LIBCPP_FUNC_VIS', |
| 28 | '_LIBCPP_TYPE_VIS', |
| 29 | '_LIBCPP_TEMPLATE_VIS', |
| 30 | '_LIBCPP_TEMPLATE_DATA_VIS', |
| 31 | '_LIBCPP_EXPORTED_FROM_ABI', |
| 32 | '_LIBCPP_OVERRIDABLE_FUNC_VIS', |
| 33 | '_LIBCPP_EXCEPTION_ABI', |
| 34 | '_LIBCPP_ENUM_VIS', |
| 35 | '_LIBCPP_EXTERN_TEMPLATE_TYPE_VIS', |
| 36 | '_LIBCPP_INTERNAL_LINKAGE', |
| 37 | '_LIBCPP_EXCLUDE_FROM_EXPLICIT_INSTANTIATION', |
| 38 | '_LIBCPP_HIDE_FROM_ABI_AFTER_V1', |
| 39 | '_LIBCPP_INLINE_VISIBILITY', |
| 40 | '_LIBCPP_CONSTEVAL', |
| 41 | '_LIBCPP_NOALIAS', |
| 42 | '_LIBCPP_USING_IF_EXISTS', |
| 43 | '_LIBCPP_DEPRECATED', |
| 44 | '_LIBCPP_DEPRECATED_IN_CXX11', |
| 45 | '_LIBCPP_DEPRECATED_IN_CXX14', |
| 46 | '_LIBCPP_DEPRECATED_IN_CXX17', |
| 47 | '_LIBCPP_DEPRECATED_IN_CXX20', |
| 48 | '_LIBCPP_NODISCARD', |
| 49 | '_LIBCPP_NODISCARD_EXT', |
| 50 | '_LIBCPP_NO_DESTROY', |
| 51 | '_LIBCPP_WEAK', |
| 52 | '_LIBCPP_CONSTINIT', |
| 53 | '_LIBCPP_FALLTHROUGH', |
| 54 | '_LIBCPP_STANDALONE_DEBUG', |
| 55 | '_LIBCPP_NO_UNIQUE_ADDRESS', |
| 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 | NamespaceIndentation: Inner |
| 69 | PackConstructorInitializers: NextLine |
| 70 | |
| 71 | PenaltyIndentedWhitespace: 61 |
| 72 | |
Eric Fiselier | b5d9f44 | 2016-11-23 01:18:56 +0000 | [diff] [blame] | 73 | --- |
| 74 | Language: Cpp |
Mark de Wever | db51a55 | 2021-10-28 17:48:27 +0200 | [diff] [blame] | 75 | Standard: c++20 |
| 76 | SpacesInAngles: Leave |
Eric Fiselier | b5d9f44 | 2016-11-23 01:18:56 +0000 | [diff] [blame] | 77 | |
| 78 | AlwaysBreakTemplateDeclarations: true |
Saleem Abdulrasool | 2f31a16 | 2017-01-03 04:23:52 +0000 | [diff] [blame] | 79 | PointerAlignment: Left |
Eric Fiselier | 1500ba7 | 2016-12-09 03:17:25 +0000 | [diff] [blame] | 80 | |
Nikolas Klauser | 9c73039 | 2022-06-13 17:25:23 +0200 | [diff] [blame] | 81 | |
Eric Fiselier | 1500ba7 | 2016-12-09 03:17:25 +0000 | [diff] [blame] | 82 | # Disable formatting options which may break tests. |
| 83 | SortIncludes: false |
Eric Fiselier | a473abc | 2016-12-09 03:18:45 +0000 | [diff] [blame] | 84 | ReflowComments: false |
Christopher Di Bella | 29e7292 | 2021-03-31 22:46:28 +0000 | [diff] [blame] | 85 | |
Mark de Wever | 795628c | 2021-09-15 18:29:22 +0200 | [diff] [blame] | 86 | # libc++'s preferred indentions of preprocessor statements. |
| 87 | IndentPPDirectives: AfterHash |
| 88 | |
Christopher Di Bella | 29e7292 | 2021-03-31 22:46:28 +0000 | [diff] [blame] | 89 | # libc++ has some long names so we need more than the 80 column limit imposed by LLVM style, for sensible formatting |
| 90 | ColumnLimit: 120 |
Eric Fiselier | b5d9f44 | 2016-11-23 01:18:56 +0000 | [diff] [blame] | 91 | --- |