summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format/FormatTestProto.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2018-08-15 19:07:55 +0000
committerDaniel Jasper <djasper@google.com>2018-08-15 19:07:55 +0000
commit67e6521a6747bba0936a9202395b9bce00914f46 (patch)
treec3d72dc4788cfb08cd1c0707c7f8b1b1729a19e6 /clang/unittests/Format/FormatTestProto.cpp
parent00fb14da274efc35afa4eba6019050bbcf605ead (diff)
downloadbcm5719-llvm-67e6521a6747bba0936a9202395b9bce00914f46.tar.gz
bcm5719-llvm-67e6521a6747bba0936a9202395b9bce00914f46.zip
clang-format: Change Google style wrt. the formatting of empty messages.
Before: message Empty { } After: message Empty {} llvm-svn: 339803
Diffstat (limited to 'clang/unittests/Format/FormatTestProto.cpp')
-rw-r--r--clang/unittests/Format/FormatTestProto.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/clang/unittests/Format/FormatTestProto.cpp b/clang/unittests/Format/FormatTestProto.cpp
index d25aeb846a9..70ef2d2f134 100644
--- a/clang/unittests/Format/FormatTestProto.cpp
+++ b/clang/unittests/Format/FormatTestProto.cpp
@@ -397,29 +397,25 @@ TEST_F(FormatTestProto, FormatsService) {
}
TEST_F(FormatTestProto, ExtendingMessage) {
- verifyFormat("extend .foo.Bar {\n"
- "}");
+ verifyFormat("extend .foo.Bar {}");
}
TEST_F(FormatTestProto, FormatsImports) {
verifyFormat("import \"a.proto\";\n"
"import \"b.proto\";\n"
"// comment\n"
- "message A {\n"
- "}");
+ "message A {}");
verifyFormat("import public \"a.proto\";\n"
"import \"b.proto\";\n"
"// comment\n"
- "message A {\n"
- "}");
+ "message A {}");
// Missing semicolons should not confuse clang-format.
verifyFormat("import \"a.proto\"\n"
"import \"b.proto\"\n"
"// comment\n"
- "message A {\n"
- "}");
+ "message A {}");
}
TEST_F(FormatTestProto, KeepsLongStringLiteralsOnSameLine) {
OpenPOWER on IntegriCloud