]> granicus.if.org Git - clang/commit
clang-format: Understand proto text format without commas.
authorDaniel Jasper <djasper@google.com>
Tue, 15 Apr 2014 09:54:30 +0000 (09:54 +0000)
committerDaniel Jasper <djasper@google.com>
Tue, 15 Apr 2014 09:54:30 +0000 (09:54 +0000)
commit864ce8bbe06b165f85237ee0f088d3201b164f14
treefe5234fab57b6fd67a470060db4faaf696cbc663
parentf831a1c9429f5c0535b1c02f3cc7ea50bc361f6c
clang-format: Understand proto text format without commas.

Also removed spaces before colons as they don't seem to be used
frequently.

Before:
optional int32 b = 2
    [(foo_options) = {aaaaaaaaaaaaaaaaaaa : 123 bbbbbbbbbbbbbbbbbbbbbbbb :
                          "baz"}];

After:
optional int32 b = 2 [(foo_options) = {aaaaaaaaaaaaaaaaaaa: 123,
                                       bbbbbbbbbbbbbbbbbbbbbbbb:"baz"}];

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@206269 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Format/ContinuationIndenter.cpp
lib/Format/Format.cpp
lib/Format/TokenAnnotator.cpp
unittests/Format/FormatTestProto.cpp