forked from chromium/subspace
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.clang-format
27 lines (25 loc) · 899 Bytes
/
.clang-format
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
BasedOnStyle: Google
Standard: Latest
AllowShortCaseLabelsOnASingleLine: true
DerivePointerAlignment: false
PointerAlignment: Left
ReflowComments: false
IndentPPDirectives: AfterHash
# This would be nice but it also changes requires() and not wrapping requires clauses with () introduces clang-tidy bugs like:
#```
# template <size_t I>
# requires I <= sizeof
# ...(Ts) constexpr inline const auto& at() const& noexcept {
# sus_check(!moved_from(I));
# return __private::find_storage<I>(storage_).value;
# }
#```
#AlignAfterOpenBracket: BlockIndent
# TODO: Turn these one and reformat everything.
#BreakBeforeBinaryOperators: true
#BreakBeforeConceptDeclarations: Always
#RequiresClausePosition: OwnLine
#IndentRequiresClause: true
#RequiresExpressionIndentation: OuterScope
#QualifierOrder: ['inline', 'static', 'const', 'volatile', 'constexpr', 'type' ]
#SortUsingDeclarations: true