[clang] [clang-format] Don't always break before << between string literals (PR #92214)

via cfe-commits cfe-commits at lists.llvm.org
Fri May 24 03:52:40 PDT 2024


================
@@ -10539,6 +10539,17 @@ TEST_F(FormatTest, KeepStringLabelValuePairsOnALine) {
       "                  bbbbbbbbbbbbbbbbbbbbbbb);");
 }
 
+TEST_F(FormatTest, WrapBeforeInsertionOperatorbetweenStringLiterals) {
+  verifyFormat("QStringList() << \"foo\" << \"bar\";");
----------------
Alexolut wrote:

Will `verifyNoChange` here be better suitable?

https://github.com/llvm/llvm-project/pull/92214


More information about the cfe-commits mailing list