This adds support for text proto extensions, like:
msg { [type.type/ext] { key: value } }
Paths
| Differential D43180
[clang-format] Support text proto extensions ClosedPublic Authored by krasimir on Feb 12 2018, 5:18 AM.
Details Summary This adds support for text proto extensions, like: msg { [type.type/ext] { key: value } }
Diff Detail
Event Timeline
This revision is now accepted and ready to land.Feb 12 2018, 11:28 PM Closed by commit rC324995: [clang-format] Support text proto extensions (authored by krasimir). · Explain WhyFeb 13 2018, 2:23 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 133836 lib/Format/ContinuationIndenter.cpp
lib/Format/FormatToken.h
lib/Format/TokenAnnotator.cpp
unittests/Format/FormatTestProto.cpp
unittests/Format/FormatTestTextProto.cpp
|
It might be useful to attach a test case for what happens if the "[...]" does not fit on one line. I don't even know how I would format that, but it seems important to know and not accidentally modify the behavior.