blob: fe2f2ef0119fadd8433299b64acdfeaed02e154e [file] [log] [blame]
Eric Fiselier7004d662016-11-15 20:21:301BasedOnStyle: LLVM
Louis Dionne5a6e6ad2023-06-16 18:32:082# 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 Fiselier55b31b4e2016-11-23 01:18:565
Nikolas Klausere7c72d62022-06-14 18:09:036AlignAfterOpenBracket: Align
7AlignConsecutiveAssignments: Consecutive
8AlignConsecutiveBitFields: Consecutive
9AlignEscapedNewlines: Right
10AlignOperands: AlignAfterOperator
11AlignTrailingComments: true
12AllowAllArgumentsOnNextLine: true
13AllowAllParametersOfDeclarationOnNextLine: true
14AllowShortFunctionsOnASingleLine: true
15AllowShortLambdasOnASingleLine: All
Louis Dionneb7bc8033f2023-07-04 15:25:1516AttributeMacros: [
17 '_ALIGNAS_TYPE',
18 '_ALIGNAS',
19 '_LIBCPP_ALIGNOF',
20 '_LIBCPP_ALWAYS_INLINE',
Nikolas Klauser5146b572022-08-19 11:08:0121 '_LIBCPP_CONSTEXPR_SINCE_CXX14',
22 '_LIBCPP_CONSTEXPR_SINCE_CXX17',
23 '_LIBCPP_CONSTEXPR_SINCE_CXX20',
24 '_LIBCPP_CONSTEXPR_SINCE_CXX23',
Louis Dionneb7bc8033f2023-07-04 15:25:1525 '_LIBCPP_CONSTEXPR',
Nikolas Klauser8b73be52023-11-13 12:06:0626 '_LIBCPP_CONSTINIT',
Nikolas Klausere7c72d62022-06-14 18:09:0327 '_LIBCPP_DEPRECATED_IN_CXX11',
28 '_LIBCPP_DEPRECATED_IN_CXX14',
29 '_LIBCPP_DEPRECATED_IN_CXX17',
30 '_LIBCPP_DEPRECATED_IN_CXX20',
Hristo Hristoved276df2024-01-20 04:07:1931 '_LIBCPP_DEPRECATED_IN_CXX23',
Louis Dionneb7bc8033f2023-07-04 15:25:1532 '_LIBCPP_DEPRECATED',
Louis Dionneb7bc8033f2023-07-04 15:25:1533 '_LIBCPP_EXCLUDE_FROM_EXPLICIT_INSTANTIATION',
34 '_LIBCPP_EXPORTED_FROM_ABI',
35 '_LIBCPP_EXTERN_TEMPLATE_TYPE_VIS',
Nikolas Klausere7c72d62022-06-14 18:09:0336 '_LIBCPP_FALLTHROUGH',
Louis Dionneb7bc8033f2023-07-04 15:25:1537 '_LIBCPP_HIDDEN',
38 '_LIBCPP_HIDE_FROM_ABI_AFTER_V1',
39 '_LIBCPP_HIDE_FROM_ABI',
Louis Dionneb7bc8033f2023-07-04 15:25:1540 '_LIBCPP_NO_SANITIZE',
Nikolas Klausere7c72d62022-06-14 18:09:0341 '_LIBCPP_NO_UNIQUE_ADDRESS',
Louis Dionneb7bc8033f2023-07-04 15:25:1542 '_LIBCPP_NOALIAS',
Louis Dionneb7bc8033f2023-07-04 15:25:1543 '_LIBCPP_OVERRIDABLE_FUNC_VIS',
44 '_LIBCPP_STANDALONE_DEBUG',
45 '_LIBCPP_TEMPLATE_DATA_VIS',
Louis Dionne5b666cf2023-07-03 15:02:4746 '_LIBCPP_THREAD_SAFETY_ANNOTATION',
Louis Dionneb7bc8033f2023-07-04 15:25:1547 '_LIBCPP_USING_IF_EXISTS',
48 '_LIBCPP_WEAK',
Nikolas Klausere7c72d62022-06-14 18:09:0349 ]
50BinPackArguments: false
51BinPackParameters: false
52BreakBeforeConceptDeclarations: true
53BreakInheritanceList: BeforeColon
54EmptyLineAfterAccessModifier: Never
55EmptyLineBeforeAccessModifier: Always
56IndentWrappedFunctionNames: false
57IndentRequires: true
58InsertTrailingCommas: Wrapped
59KeepEmptyLinesAtTheStartOfBlocks: false
60MaxEmptyLinesToKeep: 1
Nikolas Klausere7c72d62022-06-14 18:09:0361PackConstructorInitializers: NextLine
62
Nikolas Klauserd5a3cc12022-07-28 08:32:0263PenaltyIndentedWhitespace: 2
Nikolas Klausere7c72d62022-06-14 18:09:0364
Mark de Wever4cb3d7d2021-10-28 15:48:2765Standard: c++20
66SpacesInAngles: Leave
Eric Fiselier55b31b4e2016-11-23 01:18:5667
68AlwaysBreakTemplateDeclarations: true
Saleem Abdulrasool720fb142017-01-03 04:23:5269PointerAlignment: Left
Eric Fiselier949e47d2016-12-09 03:17:2570
Nikolas Klauserac251722022-06-13 15:25:2371
Mark de Wever15dfe782021-09-15 16:29:2272# libc++'s preferred indentions of preprocessor statements.
73IndentPPDirectives: AfterHash
74
Christopher Di Bella2e3a78b2021-03-31 22:46:2875# libc++ has some long names so we need more than the 80 column limit imposed by LLVM style, for sensible formatting
76ColumnLimit: 120