diff options
author | Manuel Klimek <klimek@google.com> | 2013-02-20 15:32:58 +0000 |
---|---|---|
committer | Manuel Klimek <klimek@google.com> | 2013-02-20 15:32:58 +0000 |
commit | e9a6226c7a2fd1c30a00990cdeb69b89f5599fb3 (patch) | |
tree | 81c5c3c294fa7b688e14f5101941e87098618985 /lib/Format/Format.cpp | |
parent | b56b6d1bd6f41d7b944a9631a9ab481cafe6535b (diff) |
Fix regression in string literal alignment.
Now correctly indents (again):
a = a + "a"
"a"
"a";
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175630 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Format/Format.cpp')
-rw-r--r-- | lib/Format/Format.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Format/Format.cpp b/lib/Format/Format.cpp index aca5d36aef..44a91a96ec 100644 --- a/lib/Format/Format.cpp +++ b/lib/Format/Format.cpp @@ -692,7 +692,7 @@ private: State.Stack.pop_back(); } - if (Current.is(tok::string_literal) && State.StartOfStringLiteral == 0) { + if (Current.is(tok::string_literal)) { State.StartOfStringLiteral = State.Column; } else if (Current.isNot(tok::comment)) { State.StartOfStringLiteral = 0; |