aboutsummaryrefslogtreecommitdiff
path: root/lib/Format/UnwrappedLineParser.cpp
diff options
context:
space:
mode:
authorManuel Klimek <klimek@google.com>2013-01-31 15:58:48 +0000
committerManuel Klimek <klimek@google.com>2013-01-31 15:58:48 +0000
commitbd04f2aa2247f2fda3fd8f3fee90479ba2c94499 (patch)
treeae703493e7dec03ae8923bbad0c8ef6dcc1fcda4 /lib/Format/UnwrappedLineParser.cpp
parentf343cabb68d495041706b8e2f1ed48fbac3cba06 (diff)
Never break inside something that was a preprocessor directive.
Just put it in one unwrapped line and let the formatter handle it. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174063 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Format/UnwrappedLineParser.cpp')
-rw-r--r--lib/Format/UnwrappedLineParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Format/UnwrappedLineParser.cpp b/lib/Format/UnwrappedLineParser.cpp
index e724c69eb8..19bca8d860 100644
--- a/lib/Format/UnwrappedLineParser.cpp
+++ b/lib/Format/UnwrappedLineParser.cpp
@@ -215,7 +215,7 @@ void UnwrappedLineParser::parsePPDirective() {
nextToken();
if (FormatTok.Tok.getIdentifierInfo() == NULL) {
- addUnwrappedLine();
+ parsePPUnknown();
return;
}