clang-format: use options for C++20 requires
clang-15 adds options to format C++20 Concepts `requires`
statements. Set them now so we have consistency in any code
which starts to use C++20 Concepts.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: If75f8ebdf46855423a4ffb1dba598e9c61d9a462
diff --git a/style/cpp/.clang-format b/style/cpp/.clang-format
index c1337a8..5f0cb09 100644
--- a/style/cpp/.clang-format
+++ b/style/cpp/.clang-format
@@ -75,6 +75,7 @@
- Regex: '.*'
Priority: 6
IndentCaseLabels: true
+IndentRequiresClause: true
IndentWidth: 4
IndentWrappedFunctionNames: true
KeepEmptyLinesAtTheStartOfBlocks: false
@@ -96,6 +97,7 @@
QualifierAlignment: Left
ReferenceAlignment: Left
ReflowComments: true
+RequiresClausePosition: OwnLine
SortIncludes: true
SortUsingDeclarations: true
SpaceAfterCStyleCast: false