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 | 0c91571d3379041ebaee2af4afdbf3c8a48645fa (patch) | |
tree | 7e6083f8e2d5f1325652184b1318c4035ceebce2 /clang/lib/Format/Format.cpp | |
parent | 56821acc79914bba7dd0934b72042ce0a1b554fe (diff) | |
download | bcm5719-llvm-0c91571d3379041ebaee2af4afdbf3c8a48645fa.tar.gz bcm5719-llvm-0c91571d3379041ebaee2af4afdbf3c8a48645fa.zip |
Fix regression in string literal alignment.
Now correctly indents (again):
a = a + "a"
"a"
"a";
llvm-svn: 175630
Diffstat (limited to 'clang/lib/Format/Format.cpp')
-rw-r--r-- | clang/lib/Format/Format.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp index aca5d36aefc..44a91a96ecb 100644 --- a/clang/lib/Format/Format.cpp +++ b/clang/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; |