This fixes a glitch where `operator: value` in a text proto would mess up the underlying formatting since it gets parsed as a kw_operator instead of an identifier.
Details
Details
Diff Detail
Diff Detail
- Repository
- rC Clang
Paths
| Differential D43830
[clang-format] Format operator key in protos ClosedPublic Authored by krasimir on Feb 27 2018, 11:08 AM.
Details Summary This fixes a glitch where `operator: value` in a text proto would mess up the underlying formatting since it gets parsed as a kw_operator instead of an identifier.
Diff Detail
Event TimelineThis revision was not accepted when it landed; it landed in state Needs Review.Feb 27 2018, 11:10 AM This revision was not accepted when it landed; it landed in state Needs Review. Closed by commit rL326227: [clang-format] Format operator key in protos (authored by krasimir). · Explain Why Closed by commit rC326227: [clang-format] Format operator key in protos (authored by krasimir). · Explain Why This revision was automatically updated to reflect the committed changes. This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 136113 lib/Format/TokenAnnotator.cpp
unittests/Format/FormatTestProto.cpp
unittests/Format/FormatTestTextProto.cpp
|