[clang] [ClangFormat] Fix formatting bugs. (PR #76245)
Owen Pan via cfe-commits
cfe-commits at lists.llvm.org
Sun Dec 31 20:10:20 PST 2023
================
@@ -255,6 +255,44 @@ TEST_F(FormatTestMacroExpansion,
Style);
}
+TEST_F(FormatTestMacroExpansion, CommaAsOperator) {
+ FormatStyle Style = getGoogleStyle();
+ Style.Macros.push_back("ASSIGN_OR_RETURN(a, b, c)=a=(b); if(x) c");
+ verifyFormat(R"(ASSIGN_OR_RETURN(auto reader,
----------------
owenca wrote:
It's hard to read the test cases with raw strings. Can you set `ColumnLimit` to 60 so that we don't have to use raw strings?
https://github.com/llvm/llvm-project/pull/76245
More information about the cfe-commits
mailing list