Eric Fiselier | 7004d66 | 2016-11-15 20:21:30 | [diff] [blame] | 1 | BasedOnStyle: LLVM |
Louis Dionne | 5a6e6ad | 2023-06-16 18:32:08 | [diff] [blame] | 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. |
Eric Fiselier | 55b31b4e | 2016-11-23 01:18:56 | [diff] [blame] | 5 | |
Nikolas Klauser | e7c72d6 | 2022-06-14 18:09:03 | [diff] [blame] | 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 |
Louis Dionne | b7bc8033f | 2023-07-04 15:25:15 | [diff] [blame] | 16 | AttributeMacros: [ |
| 17 | '_ALIGNAS_TYPE', |
| 18 | '_ALIGNAS', |
| 19 | '_LIBCPP_ALIGNOF', |
| 20 | '_LIBCPP_ALWAYS_INLINE', |
Nikolas Klauser | 5146b57 | 2022-08-19 11:08:01 | [diff] [blame] | 21 | '_LIBCPP_CONSTEXPR_SINCE_CXX14', |
| 22 | '_LIBCPP_CONSTEXPR_SINCE_CXX17', |
| 23 | '_LIBCPP_CONSTEXPR_SINCE_CXX20', |
| 24 | '_LIBCPP_CONSTEXPR_SINCE_CXX23', |
Louis Dionne | b7bc8033f | 2023-07-04 15:25:15 | [diff] [blame] | 25 | '_LIBCPP_CONSTEXPR', |
Nikolas Klauser | 8b73be5 | 2023-11-13 12:06:06 | [diff] [blame] | 26 | '_LIBCPP_CONSTINIT', |
Nikolas Klauser | e7c72d6 | 2022-06-14 18:09:03 | [diff] [blame] | 27 | '_LIBCPP_DEPRECATED_IN_CXX11', |
| 28 | '_LIBCPP_DEPRECATED_IN_CXX14', |
| 29 | '_LIBCPP_DEPRECATED_IN_CXX17', |
| 30 | '_LIBCPP_DEPRECATED_IN_CXX20', |
Hristo Hristov | ed276df | 2024-01-20 04:07:19 | [diff] [blame] | 31 | '_LIBCPP_DEPRECATED_IN_CXX23', |
Louis Dionne | b7bc8033f | 2023-07-04 15:25:15 | [diff] [blame] | 32 | '_LIBCPP_DEPRECATED', |
Louis Dionne | b7bc8033f | 2023-07-04 15:25:15 | [diff] [blame] | 33 | '_LIBCPP_EXCLUDE_FROM_EXPLICIT_INSTANTIATION', |
| 34 | '_LIBCPP_EXPORTED_FROM_ABI', |
| 35 | '_LIBCPP_EXTERN_TEMPLATE_TYPE_VIS', |
Nikolas Klauser | e7c72d6 | 2022-06-14 18:09:03 | [diff] [blame] | 36 | '_LIBCPP_FALLTHROUGH', |
Louis Dionne | b7bc8033f | 2023-07-04 15:25:15 | [diff] [blame] | 37 | '_LIBCPP_HIDDEN', |
| 38 | '_LIBCPP_HIDE_FROM_ABI_AFTER_V1', |
| 39 | '_LIBCPP_HIDE_FROM_ABI', |
Louis Dionne | b7bc8033f | 2023-07-04 15:25:15 | [diff] [blame] | 40 | '_LIBCPP_NO_SANITIZE', |
Nikolas Klauser | e7c72d6 | 2022-06-14 18:09:03 | [diff] [blame] | 41 | '_LIBCPP_NO_UNIQUE_ADDRESS', |
Louis Dionne | b7bc8033f | 2023-07-04 15:25:15 | [diff] [blame] | 42 | '_LIBCPP_NOALIAS', |
Louis Dionne | b7bc8033f | 2023-07-04 15:25:15 | [diff] [blame] | 43 | '_LIBCPP_OVERRIDABLE_FUNC_VIS', |
| 44 | '_LIBCPP_STANDALONE_DEBUG', |
| 45 | '_LIBCPP_TEMPLATE_DATA_VIS', |
Louis Dionne | 5b666cf | 2023-07-03 15:02:47 | [diff] [blame] | 46 | '_LIBCPP_THREAD_SAFETY_ANNOTATION', |
Louis Dionne | b7bc8033f | 2023-07-04 15:25:15 | [diff] [blame] | 47 | '_LIBCPP_USING_IF_EXISTS', |
| 48 | '_LIBCPP_WEAK', |
Nikolas Klauser | e7c72d6 | 2022-06-14 18:09:03 | [diff] [blame] | 49 | ] |
| 50 | BinPackArguments: false |
| 51 | BinPackParameters: false |
| 52 | BreakBeforeConceptDeclarations: true |
| 53 | BreakInheritanceList: BeforeColon |
| 54 | EmptyLineAfterAccessModifier: Never |
| 55 | EmptyLineBeforeAccessModifier: Always |
| 56 | IndentWrappedFunctionNames: false |
| 57 | IndentRequires: true |
| 58 | InsertTrailingCommas: Wrapped |
| 59 | KeepEmptyLinesAtTheStartOfBlocks: false |
| 60 | MaxEmptyLinesToKeep: 1 |
Nikolas Klauser | e7c72d6 | 2022-06-14 18:09:03 | [diff] [blame] | 61 | PackConstructorInitializers: NextLine |
| 62 | |
Nikolas Klauser | d5a3cc1 | 2022-07-28 08:32:02 | [diff] [blame] | 63 | PenaltyIndentedWhitespace: 2 |
Nikolas Klauser | e7c72d6 | 2022-06-14 18:09:03 | [diff] [blame] | 64 | |
Mark de Wever | 4cb3d7d | 2021-10-28 15:48:27 | [diff] [blame] | 65 | Standard: c++20 |
| 66 | SpacesInAngles: Leave |
Eric Fiselier | 55b31b4e | 2016-11-23 01:18:56 | [diff] [blame] | 67 | |
| 68 | AlwaysBreakTemplateDeclarations: true |
Saleem Abdulrasool | 720fb14 | 2017-01-03 04:23:52 | [diff] [blame] | 69 | PointerAlignment: Left |
Eric Fiselier | 949e47d | 2016-12-09 03:17:25 | [diff] [blame] | 70 | |
Nikolas Klauser | ac25172 | 2022-06-13 15:25:23 | [diff] [blame] | 71 | |
Mark de Wever | 15dfe78 | 2021-09-15 16:29:22 | [diff] [blame] | 72 | # libc++'s preferred indentions of preprocessor statements. |
| 73 | IndentPPDirectives: AfterHash |
| 74 | |
Christopher Di Bella | 2e3a78b | 2021-03-31 22:46:28 | [diff] [blame] | 75 | # libc++ has some long names so we need more than the 80 column limit imposed by LLVM style, for sensible formatting |
| 76 | ColumnLimit: 120 |