diff options
author | Haojian Wu <hokein@google.com> | 2019-03-25 15:46:07 +0000 |
---|---|---|
committer | Haojian Wu <hokein@google.com> | 2019-03-25 15:46:07 +0000 |
commit | ae3fefe3978237a8b71a6a08a11caab4485b87a4 (patch) | |
tree | 4951b36e64f01f89b9b7ec6b567dc76be32382cf /clang/unittests/Format/FormatTestProto.cpp | |
parent | 040f94cc7e9e010a332e2dcbfd119e7fecb176b3 (diff) | |
download | bcm5719-llvm-ae3fefe3978237a8b71a6a08a11caab4485b87a4.tar.gz bcm5719-llvm-ae3fefe3978237a8b71a6a08a11caab4485b87a4.zip |
Revert "[clang-format] Keep protobuf "package" statement on one line"
This reverts commit r356835. This patch causes a regression, see the
test below:
verifyFormat("// Detached comment\n\n"
"// Leading comment\n"
"syntax = \"proto2\"; // trailing comment\n\n"
"// in foo.bar package\n"
"package foo.bar; // foo.bar package\n");
llvm-svn: 356912
Diffstat (limited to 'clang/unittests/Format/FormatTestProto.cpp')
-rw-r--r-- | clang/unittests/Format/FormatTestProto.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/clang/unittests/Format/FormatTestProto.cpp b/clang/unittests/Format/FormatTestProto.cpp index fd4870c27f2..d5683b5b844 100644 --- a/clang/unittests/Format/FormatTestProto.cpp +++ b/clang/unittests/Format/FormatTestProto.cpp @@ -393,12 +393,6 @@ TEST_F(FormatTestProto, FormatsOptions) { "};"); } -TEST_F(FormatTestProto, DoesntWrapPackageStatements) { - verifyFormat( - "package" - " some.really.long.package.that.exceeds.the.column.limit00000000;"); -} - TEST_F(FormatTestProto, FormatsService) { verifyFormat("service SearchService {\n" " rpc Search(SearchRequest) returns (SearchResponse) {\n" |