diff options
| author | Daniel Jasper <djasper@google.com> | 2014-01-20 16:47:22 +0000 |
|---|---|---|
| committer | Daniel Jasper <djasper@google.com> | 2014-01-20 16:47:22 +0000 |
| commit | 929b1db276aa6735da81bc0bc206d0f81fe7c334 (patch) | |
| tree | 3be83a1a7168f3d414e594ab8eab64e8481532ad /clang/unittests | |
| parent | 3f5f3e7949f60f96b8b35a32dd5f517cd03cc036 (diff) | |
| download | bcm5719-llvm-929b1db276aa6735da81bc0bc206d0f81fe7c334.tar.gz bcm5719-llvm-929b1db276aa6735da81bc0bc206d0f81fe7c334.zip | |
clang-format: Properly format custom options in protocol buffer definitions.
Before:
option(my_option) = "abc";
After:
option (my_option) = "abc";
llvm-svn: 199672
Diffstat (limited to 'clang/unittests')
| -rw-r--r-- | clang/unittests/Format/FormatTestProto.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTestProto.cpp b/clang/unittests/Format/FormatTestProto.cpp index d102c6567c1..7623e46db44 100644 --- a/clang/unittests/Format/FormatTestProto.cpp +++ b/clang/unittests/Format/FormatTestProto.cpp @@ -68,5 +68,10 @@ TEST_F(FormatTestProto, MessageFieldAttributes) { " [default = REALLY_REALLY_LONG_CONSTANT_VALUE];"); } +TEST_F(FormatTestProto, FormatsOptions) { + verifyFormat("option java_package = \"my.test.package\";"); + verifyFormat("option (my_custom_option) = \"abc\";"); +} + } // end namespace tooling } // end namespace clang |

