blob: 871920f15b5bc9ca60895393f679926cdbab99ee [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',
Louis Dionne9ddedf02024-04-16 14:57:4827 '_LIBCPP_DEPRECATED_ATOMIC_SYNC',
Nikolas Klausere7c72d62022-06-14 18:09:0328 '_LIBCPP_DEPRECATED_IN_CXX11',
29 '_LIBCPP_DEPRECATED_IN_CXX14',
30 '_LIBCPP_DEPRECATED_IN_CXX17',
31 '_LIBCPP_DEPRECATED_IN_CXX20',
Hristo Hristoved276df2024-01-20 04:07:1932 '_LIBCPP_DEPRECATED_IN_CXX23',
Louis Dionneb7bc8033f2023-07-04 15:25:1533 '_LIBCPP_DEPRECATED',
34 '_LIBCPP_DISABLE_EXTENTSION_WARNING',
Louis Dionneb7bc8033f2023-07-04 15:25:1535 '_LIBCPP_EXCLUDE_FROM_EXPLICIT_INSTANTIATION',
36 '_LIBCPP_EXPORTED_FROM_ABI',
37 '_LIBCPP_EXTERN_TEMPLATE_TYPE_VIS',
Nikolas Klausere7c72d62022-06-14 18:09:0338 '_LIBCPP_FALLTHROUGH',
Louis Dionneb7bc8033f2023-07-04 15:25:1539 '_LIBCPP_HIDDEN',
40 '_LIBCPP_HIDE_FROM_ABI_AFTER_V1',
41 '_LIBCPP_HIDE_FROM_ABI',
Louis Dionneb7bc8033f2023-07-04 15:25:1542 '_LIBCPP_INTERNAL_LINKAGE',
43 '_LIBCPP_METHOD_TEMPLATE_IMPLICIT_INSTANTIATION_VIS',
Louis Dionneb7bc8033f2023-07-04 15:25:1544 '_LIBCPP_NO_SANITIZE',
Nikolas Klausere7c72d62022-06-14 18:09:0345 '_LIBCPP_NO_UNIQUE_ADDRESS',
Louis Dionneb7bc8033f2023-07-04 15:25:1546 '_LIBCPP_NOALIAS',
Louis Dionneb7bc8033f2023-07-04 15:25:1547 '_LIBCPP_NODISCARD',
48 '_LIBCPP_NORETURN',
49 '_LIBCPP_OVERRIDABLE_FUNC_VIS',
50 '_LIBCPP_STANDALONE_DEBUG',
51 '_LIBCPP_TEMPLATE_DATA_VIS',
52 '_LIBCPP_TEMPLATE_VIS',
Louis Dionne5b666cf2023-07-03 15:02:4753 '_LIBCPP_THREAD_SAFETY_ANNOTATION',
Louis Dionneb7bc8033f2023-07-04 15:25:1554 '_LIBCPP_USING_IF_EXISTS',
55 '_LIBCPP_WEAK',
Nikolas Klausere7c72d62022-06-14 18:09:0356 ]
57BinPackArguments: false
58BinPackParameters: false
59BreakBeforeConceptDeclarations: true
60BreakInheritanceList: BeforeColon
61EmptyLineAfterAccessModifier: Never
62EmptyLineBeforeAccessModifier: Always
63IndentWrappedFunctionNames: false
64IndentRequires: true
65InsertTrailingCommas: Wrapped
66KeepEmptyLinesAtTheStartOfBlocks: false
67MaxEmptyLinesToKeep: 1
Nikolas Klausere7c72d62022-06-14 18:09:0368PackConstructorInitializers: NextLine
69
Nikolas Klauserd5a3cc12022-07-28 08:32:0270PenaltyIndentedWhitespace: 2
Nikolas Klausere7c72d62022-06-14 18:09:0371
Mark de Wever4cb3d7d2021-10-28 15:48:2772Standard: c++20
73SpacesInAngles: Leave
Eric Fiselier55b31b4e2016-11-23 01:18:5674
75AlwaysBreakTemplateDeclarations: true
Saleem Abdulrasool720fb142017-01-03 04:23:5276PointerAlignment: Left
Eric Fiselier949e47d2016-12-09 03:17:2577
Nikolas Klauserac251722022-06-13 15:25:2378
Mark de Wever15dfe782021-09-15 16:29:2279# libc++'s preferred indentions of preprocessor statements.
80IndentPPDirectives: AfterHash
81
Christopher Di Bella2e3a78b2021-03-31 22:46:2882# libc++ has some long names so we need more than the 80 column limit imposed by LLVM style, for sensible formatting
83ColumnLimit: 120