This patch adds support for textual protocol buffer messages.
Details
Diff Detail
- Build Status
Buildable 7908 Build 7908: arc lint + arc unit
Event Timeline
Tests for <>-style message fields are missing because I discovered that they don't really work in a multiline setting in proto options anyways. I'll address this problem separately.
- Add initial support for <>-style message fields
- Added single-line tests
- Added multiline message proto tests
lib/Format/ContinuationIndenter.cpp | ||
---|---|---|
71 | Maybe rename to opensProtoMessageField() and add: if (!LessTok.is(tok::less)) return false; | |
107 | Do we need to set this explicitly here? Is it not enough to set FormatStyle.BinPackParameters to false? | |
lib/Format/TokenAnnotator.cpp | ||
657 | Missing space... | |
lib/Format/UnwrappedLineParser.cpp | ||
1364–1365 | Why not just call nextToken before calling this function instead of adding the "StartInside" parameter? |
Maybe rename to opensProtoMessageField() and add: