diff options
Diffstat (limited to 'clang/lib/Format/TokenAnnotator.cpp')
-rw-r--r-- | clang/lib/Format/TokenAnnotator.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Format/TokenAnnotator.cpp b/clang/lib/Format/TokenAnnotator.cpp index a3197d23c4e..c2b9521a590 100644 --- a/clang/lib/Format/TokenAnnotator.cpp +++ b/clang/lib/Format/TokenAnnotator.cpp @@ -1405,8 +1405,7 @@ bool TokenAnnotator::mustBreakBefore(const AnnotatedLine &Line, return Right.Previous->BlockKind != BK_BracedInit && Right.NewlinesBefore > 0; } else if (Right.Previous->isTrailingComment() || - (Right.is(tok::string_literal) && - Right.Previous->is(tok::string_literal))) { + (Right.isStringLiteral() && Right.Previous->isStringLiteral())) { return true; } else if (Right.Previous->IsUnterminatedLiteral) { return true; |