[clang][lex] NFCI: Use DirectoryEntryRef in ModuleMap::inferFrameworkModule()
[llvm-project.git] / libcxx / .clang-format
blobacf987dbe88603cf7736294fa91a3c64533f3156
1 BasedOnStyle: LLVM
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_SINCE_CXX14',
16                   '_LIBCPP_CONSTEXPR_SINCE_CXX17',
17                   '_LIBCPP_CONSTEXPR_SINCE_CXX20',
18                   '_LIBCPP_CONSTEXPR_SINCE_CXX23',
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_NOALIAS',
41                   '_LIBCPP_USING_IF_EXISTS',
42                   '_LIBCPP_DEPRECATED',
43                   '_LIBCPP_DEPRECATED_IN_CXX11',
44                   '_LIBCPP_DEPRECATED_IN_CXX14',
45                   '_LIBCPP_DEPRECATED_IN_CXX17',
46                   '_LIBCPP_DEPRECATED_IN_CXX20',
47                   '_LIBCPP_NODISCARD',
48                   '_LIBCPP_NODISCARD_EXT',
49                   '_LIBCPP_NO_DESTROY',
50                   '_LIBCPP_WEAK',
51                   '_LIBCPP_CONSTINIT',
52                   '_LIBCPP_FALLTHROUGH',
53                   '_LIBCPP_STANDALONE_DEBUG',
54                   '_LIBCPP_NO_UNIQUE_ADDRESS',
55                  ]
56 BinPackArguments: false
57 BinPackParameters: false
58 BreakBeforeConceptDeclarations: true
59 BreakInheritanceList: BeforeColon
60 EmptyLineAfterAccessModifier: Never
61 EmptyLineBeforeAccessModifier: Always
62 IndentWrappedFunctionNames: false
63 IndentRequires: true
64 InsertTrailingCommas: Wrapped
65 KeepEmptyLinesAtTheStartOfBlocks: false
66 MaxEmptyLinesToKeep: 1
67 PackConstructorInitializers: NextLine
69 PenaltyIndentedWhitespace: 2
71 Language: Cpp
72 Standard: c++20
73 SpacesInAngles: Leave
75 AlwaysBreakTemplateDeclarations: true
76 PointerAlignment: Left
79 # libc++'s preferred indentions of preprocessor statements.
80 IndentPPDirectives: AfterHash
82 # libc++ has some long names so we need more than the 80 column limit imposed by LLVM style, for sensible formatting
83 ColumnLimit: 120