[Github] Remove CMake options from docs CI resetting defaults
[llvm-project.git] / libcxx / .clang-format
blob4904374f89bc66cfb6fd408d203b9ddddef97843
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.
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_ALIGNOF',
20                   '_LIBCPP_ALWAYS_INLINE',
21                   '_LIBCPP_CONSTEXPR_SINCE_CXX14',
22                   '_LIBCPP_CONSTEXPR_SINCE_CXX17',
23                   '_LIBCPP_CONSTEXPR_SINCE_CXX20',
24                   '_LIBCPP_CONSTEXPR_SINCE_CXX23',
25                   '_LIBCPP_CONSTEXPR',
26                   '_LIBCPP_CONSTINIT',
27                   '_LIBCPP_DEPRECATED_IN_CXX11',
28                   '_LIBCPP_DEPRECATED_IN_CXX14',
29                   '_LIBCPP_DEPRECATED_IN_CXX17',
30                   '_LIBCPP_DEPRECATED_IN_CXX20',
31                   '_LIBCPP_DEPRECATED',
32                   '_LIBCPP_DISABLE_EXTENTSION_WARNING',
33                   '_LIBCPP_EXCLUDE_FROM_EXPLICIT_INSTANTIATION',
34                   '_LIBCPP_EXPORTED_FROM_ABI',
35                   '_LIBCPP_EXTERN_TEMPLATE_TYPE_VIS',
36                   '_LIBCPP_FALLTHROUGH',
37                   '_LIBCPP_HIDDEN',
38                   '_LIBCPP_HIDE_FROM_ABI_AFTER_V1',
39                   '_LIBCPP_HIDE_FROM_ABI',
40                   '_LIBCPP_INLINE_VISIBILITY',
41                   '_LIBCPP_INTERNAL_LINKAGE',
42                   '_LIBCPP_METHOD_TEMPLATE_IMPLICIT_INSTANTIATION_VIS',
43                   '_LIBCPP_NO_DESTROY',
44                   '_LIBCPP_NO_SANITIZE',
45                   '_LIBCPP_NO_UNIQUE_ADDRESS',
46                   '_LIBCPP_NOALIAS',
47                   '_LIBCPP_NODISCARD_EXT',
48                   '_LIBCPP_NODISCARD',
49                   '_LIBCPP_NORETURN',
50                   '_LIBCPP_OVERRIDABLE_FUNC_VIS',
51                   '_LIBCPP_STANDALONE_DEBUG',
52                   '_LIBCPP_TEMPLATE_DATA_VIS',
53                   '_LIBCPP_TEMPLATE_VIS',
54                   '_LIBCPP_THREAD_SAFETY_ANNOTATION',
55                   '_LIBCPP_USING_IF_EXISTS',
56                   '_LIBCPP_WEAK',
57                  ]
58 BinPackArguments: false
59 BinPackParameters: false
60 BreakBeforeConceptDeclarations: true
61 BreakInheritanceList: BeforeColon
62 EmptyLineAfterAccessModifier: Never
63 EmptyLineBeforeAccessModifier: Always
64 IndentWrappedFunctionNames: false
65 IndentRequires: true
66 InsertTrailingCommas: Wrapped
67 KeepEmptyLinesAtTheStartOfBlocks: false
68 MaxEmptyLinesToKeep: 1
69 PackConstructorInitializers: NextLine
71 PenaltyIndentedWhitespace: 2
73 Standard: c++20
74 SpacesInAngles: Leave
76 AlwaysBreakTemplateDeclarations: true
77 PointerAlignment: Left
80 # libc++'s preferred indentions of preprocessor statements.
81 IndentPPDirectives: AfterHash
83 # libc++ has some long names so we need more than the 80 column limit imposed by LLVM style, for sensible formatting
84 ColumnLimit: 120