diff options
| author | 2019-06-23 21:36:31 +0000 | |
|---|---|---|
| committer | 2019-06-23 21:36:31 +0000 | |
| commit | 23f101f37937a1bd4a29726cab2f76e0fb038b35 (patch) | |
| tree | f7da7d6b32c2e07114da399150bfa88d72187012 /gnu/llvm/tools/clang/unittests/Format/FormatTestProto.cpp | |
| parent | sort previous; ok deraadt (diff) | |
| download | wireguard-openbsd-23f101f37937a1bd4a29726cab2f76e0fb038b35.tar.xz wireguard-openbsd-23f101f37937a1bd4a29726cab2f76e0fb038b35.zip | |
Import LLVM 8.0.0 release including clang, lld and lldb.
Diffstat (limited to 'gnu/llvm/tools/clang/unittests/Format/FormatTestProto.cpp')
| -rw-r--r-- | gnu/llvm/tools/clang/unittests/Format/FormatTestProto.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/gnu/llvm/tools/clang/unittests/Format/FormatTestProto.cpp b/gnu/llvm/tools/clang/unittests/Format/FormatTestProto.cpp index d25aeb846a9..70ef2d2f134 100644 --- a/gnu/llvm/tools/clang/unittests/Format/FormatTestProto.cpp +++ b/gnu/llvm/tools/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) { |
