Don't insert a break into include lines with trailing comments.
llvm-svn: 182003
diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp
index 6631c67..6966aab 100644
--- a/clang/lib/Format/Format.cpp
+++ b/clang/lib/Format/Format.cpp
@@ -777,7 +777,8 @@
llvm::OwningPtr<BreakableToken> Token;
unsigned StartColumn = State.Column - Current.FormatTok.TokenLength -
UnbreakableTailLength;
- if (Current.is(tok::string_literal)) {
+ if (Current.is(tok::string_literal) &&
+ Current.Type != TT_ImplicitStringLiteral) {
// Only break up default narrow strings.
const char *LiteralData = SourceMgr.getCharacterData(
Current.FormatTok.getStartOfNonWhitespace());