diff options
author | Daniel Jasper <djasper@google.com> | 2013-12-20 06:22:01 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2013-12-20 06:22:01 +0000 |
commit | 04b6a081fc37e48bb54e99888f13bdb712cb923e (patch) | |
tree | 43806ce7c453da6e68241d4221e9d02db720b3a7 /clang/lib/Format/TokenAnnotator.cpp | |
parent | ce0709aa61367def36a86186cf9b91230333ae2c (diff) | |
download | bcm5719-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.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; |