summaryrefslogtreecommitdiffstats
path: root/clang/lib/Format/TokenAnnotator.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2013-12-20 06:22:01 +0000
committerDaniel Jasper <djasper@google.com>2013-12-20 06:22:01 +0000
commit04b6a081fc37e48bb54e99888f13bdb712cb923e (patch)
tree43806ce7c453da6e68241d4221e9d02db720b3a7 /clang/lib/Format/TokenAnnotator.cpp
parentce0709aa61367def36a86186cf9b91230333ae2c (diff)
downloadbcm5719-llvm-04b6a081fc37e48bb54e99888f13bdb712cb923e.tar.gz
bcm5719-llvm-04b6a081fc37e48bb54e99888f13bdb712cb923e.zip
clang-format: Better support for multi-line wide string literals.
Before: SomeFunction(L"A" L"B"); After: SomeFunction(L"A" L"B"); llvm-svn: 197785
Diffstat (limited to 'clang/lib/Format/TokenAnnotator.cpp')
-rw-r--r--clang/lib/Format/TokenAnnotator.cpp3
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;
OpenPOWER on IntegriCloud