Skip to content

Commit d77d94f

Browse files
committed
Move comment around
1 parent ecc4284 commit d77d94f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang/lib/Format/TokenAnnotator.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5151,10 +5151,10 @@ bool TokenAnnotator::mustBreakBefore(const AnnotatedLine &Line,
51515151
return true;
51525152
if (Left.IsUnterminatedLiteral)
51535153
return true;
5154+
// FIXME: Breaking after newlines seems useful in general. Turn this into an
5155+
// option and Recognize more cases like endl etc, and break independent of
5156+
// what comes after operator lessless.
51545157
if (Right.is(tok::lessless) && Right.Next && Left.is(tok::string_literal) &&
5155-
// FIXME: Breaking after newlines seems useful in general. Turn this into
5156-
// an option and Recognize more cases like endl etc, and break independent
5157-
// of what comes after operator lessless.
51585158
Right.Next->is(tok::string_literal) &&
51595159
Left.TokenText.ends_with("\\n\"")) {
51605160
return true;

0 commit comments

Comments
 (0)