summaryrefslogtreecommitdiffstats
path: root/clang/lib/Format/BreakableToken.h
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2013-09-16 20:20:49 +0000
committerAlexander Kornienko <alexfh@google.com>2013-09-16 20:20:49 +0000
commit81e3294e7e19387ad05b60adcd50617b61d94d43 (patch)
tree87d568bbdef37876532ede1c395a136f0920cbe6 /clang/lib/Format/BreakableToken.h
parentdefd1a93c9d5de786ef015d4a53e7259f45b4b58 (diff)
downloadbcm5719-llvm-81e3294e7e19387ad05b60adcd50617b61d94d43.tar.gz
bcm5719-llvm-81e3294e7e19387ad05b60adcd50617b61d94d43.zip
When in pre-c++11 mode, treat _T("xxx") as a single string literal, repeat the _T() part around each fragment. This addresses http://llvm.org/PR17122
Reviewers: djasper Reviewed By: djasper CC: cfe-commits, klimek, rsmith Differential Revision: http://llvm-reviews.chandlerc.com/D1640 llvm-svn: 190804
Diffstat (limited to 'clang/lib/Format/BreakableToken.h')
-rw-r--r--clang/lib/Format/BreakableToken.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Format/BreakableToken.h b/clang/lib/Format/BreakableToken.h
index 65b90152514..af3b09b5a52 100644
--- a/clang/lib/Format/BreakableToken.h
+++ b/clang/lib/Format/BreakableToken.h
@@ -110,6 +110,7 @@ public:
/// \p StartColumn specifies the column in which the token will start
/// after formatting.
BreakableStringLiteral(const FormatToken &Tok, unsigned StartColumn,
+ StringRef Prefix, StringRef Postfix,
bool InPPDirective, encoding::Encoding Encoding,
const FormatStyle &Style);
OpenPOWER on IntegriCloud