[clang] [clang-format] Don't break between string literal operands of << (PR #69871)

Björn Schäpers via cfe-commits cfe-commits at lists.llvm.org
Sun Oct 22 06:12:47 PDT 2023


================
@@ -5118,10 +5118,6 @@ bool TokenAnnotator::mustBreakBefore(const AnnotatedLine &Line,
     return true;
   if (Left.IsUnterminatedLiteral)
     return true;
-  if (Right.is(tok::lessless) && Right.Next && Left.is(tok::string_literal) &&
----------------
HazardyKnusperkeks wrote:

But why was that added? Alone from Github I can't navigate to the commit which introduced it.

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


More information about the cfe-commits mailing list