diff options
| author | Krasimir Georgiev <krasimir@google.com> | 2018-03-07 21:30:38 +0000 |
|---|---|---|
| committer | Krasimir Georgiev <krasimir@google.com> | 2018-03-07 21:30:38 +0000 |
| commit | 9ad7af64232488ec7c8b4801486051ccdceeead2 (patch) | |
| tree | b5efd4823863c4f973b97f025d092ef9cb9589f3 /clang/unittests/Format/FormatTestTextProto.cpp | |
| parent | d8139348fbd485392dae2720015c491260c21767 (diff) | |
| download | bcm5719-llvm-9ad7af64232488ec7c8b4801486051ccdceeead2.tar.gz bcm5719-llvm-9ad7af64232488ec7c8b4801486051ccdceeead2.zip | |
[clang-format] Break consecutive string literals in text protos
Summary:
This patch fixes a bug where consecutive string literals in text protos were
put on the same line.
Reviewers: alexfh
Reviewed By: alexfh
Subscribers: klimek, cfe-commits
Differential Revision: https://reviews.llvm.org/D44204
llvm-svn: 326945
Diffstat (limited to 'clang/unittests/Format/FormatTestTextProto.cpp')
| -rw-r--r-- | clang/unittests/Format/FormatTestTextProto.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTestTextProto.cpp b/clang/unittests/Format/FormatTestTextProto.cpp index 1102055ea37..39a2e71cbbd 100644 --- a/clang/unittests/Format/FormatTestTextProto.cpp +++ b/clang/unittests/Format/FormatTestTextProto.cpp @@ -452,5 +452,11 @@ TEST_F(FormatTestTextProto, AcceptsOperatorAsKey) { " >\n" ">"); } + +TEST_F(FormatTestTextProto, BreaksConsecutiveStringLiterals) { + verifyFormat("ala: \"str1\"\n" + " \"str2\"\n"); +} + } // end namespace tooling } // end namespace clang |

