[clang] [Format] Configure ASSIGN_OR_RETURN macros for Google style (PR #169037)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Feb 7 13:53:38 PST 2026
================
@@ -63,6 +63,14 @@ TEST_F(FormatTestMacroExpansion, UnexpandConfiguredMacros) {
"ReturnMe());",
Style);
+ verifyFormat("void f() {\n"
+ " ASSIGN_OR_RETURN(MySomewhatLongType* variable,\n"
+ " MySomewhatLongFunction(SomethingElse()));\n"
+ " ASSIGN_OR_RETURN(MySomewhatLongType* variable,\n"
+ " MySomewhatLongFunction(SomethingElse()), "
+ "ReturnMe());",
----------------
owenca wrote:
Please shorten the test so that it will fit into one line. (You can use e.g. `ColumnLimit: 60` if needed.
https://github.com/llvm/llvm-project/pull/169037
More information about the cfe-commits
mailing list