style: cpp: update for clang-format-19
There are a few options in our .clang-format file that are
deprecated in clang 19 and have alternative configurations
that match the same intention. Update our .clang-format to
be compliant.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ie2f6eb3b043f2d655c9df806815afd7971fd0947
diff --git a/style/cpp/.clang-format b/style/cpp/.clang-format
index 28e3328..a75a2c2 100644
--- a/style/cpp/.clang-format
+++ b/style/cpp/.clang-format
@@ -17,9 +17,7 @@
AllowShortIfStatementsOnASingleLine: Never
AllowShortLambdasOnASingleLine: true
AllowShortLoopsOnASingleLine: false
-AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: false
-AlwaysBreakTemplateDeclarations: Yes
BinPackArguments: true
BinPackParameters: true
BitFieldColonSpacing: None
@@ -43,12 +41,14 @@
SplitEmptyRecord: false
SplitEmptyNamespace: false
BreakAfterAttributes: Never
+BreakAfterReturnType: Automatic
BreakBeforeBinaryOperators: None
BreakBeforeBraces: Custom
BreakBeforeTernaryOperators: true
BreakConstructorInitializers: AfterColon
BreakInheritanceList: AfterColon
BreakStringLiterals: false
+BreakTemplateDeclarations: Yes
ColumnLimit: 80
CommentPragmas: '^ IWYU pragma:'
CompactNamespaces: false