summaryrefslogtreecommitdiff
path: root/unittests/Format/FormatTestProto.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2015-11-20 14:32:54 +0000
committerDaniel Jasper <djasper@google.com>2015-11-20 14:32:54 +0000
commitc48bd86a1862bf8ae5efcbb2b0681d05c1936d8e (patch)
treef0c1a823cb6fd0630375b2082eb0b3ef2a5fc2f4 /unittests/Format/FormatTestProto.cpp
parent1a52114f4d4fbc601568649ac98ee19900638be3 (diff)
downloadclang-c48bd86a1862bf8ae5efcbb2b0681d05c1936d8e.tar.gz
clang-format: [Proto] Support extending message.
Before: extend.foo.Bar { } After: extend .foo.Bar { } git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@253667 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Format/FormatTestProto.cpp')
-rw-r--r--unittests/Format/FormatTestProto.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/unittests/Format/FormatTestProto.cpp b/unittests/Format/FormatTestProto.cpp
index 0dadd3b673..cd2c0c8aa4 100644
--- a/unittests/Format/FormatTestProto.cpp
+++ b/unittests/Format/FormatTestProto.cpp
@@ -162,5 +162,10 @@ TEST_F(FormatTestProto, FormatsService) {
"};");
}
+TEST_F(FormatTestProto, ExtendingMessage) {
+ verifyFormat("extend .foo.Bar {\n"
+ "}");
+}
+
} // end namespace tooling
} // end namespace clang