[clang] [Format] Configure ASSIGN_OR_RETURN macros for Google style (PR #169037)
Ilya Biryukov via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 9 02:05:51 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());",
----------------
ilya-biryukov wrote:
Done. Replacing `ReturnMe` with `RetMe` seemed to have been enough, it was just one character too much.
https://github.com/llvm/llvm-project/pull/169037
More information about the cfe-commits
mailing list