Skip to content

Commit a2a3edc

Browse files
committed
Fix capitalization in comment and re-order conditions
1 parent d77d94f commit a2a3edc

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
@@ -5152,10 +5152,10 @@ bool TokenAnnotator::mustBreakBefore(const AnnotatedLine &Line,
51525152
if (Left.IsUnterminatedLiteral)
51535153
return true;
51545154
// 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
5155+
// option and recognize more cases like endl etc, and break independent of
51565156
// what comes after operator lessless.
5157-
if (Right.is(tok::lessless) && Right.Next && Left.is(tok::string_literal) &&
5158-
Right.Next->is(tok::string_literal) &&
5157+
if (Right.is(tok::lessless) && Right.Next &&
5158+
Right.Next->is(tok::string_literal) && Left.is(tok::string_literal) &&
51595159
Left.TokenText.ends_with("\\n\"")) {
51605160
return true;
51615161
}

0 commit comments

Comments
 (0)