[SERVER-19249] Clang-format should allow BSON macro to be used with one key-value pair per line Created: 01/Jul/15 Updated: 15/Oct/19 Resolved: 15/Oct/19 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Build |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Spencer Brody (Inactive) | Assignee: | DO NOT USE - Backlog - Platform Team |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | clang-format | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Participants: | |||||||||
| Description |
|
| Comments |
| Comment by Githook User [ 23/Feb/17 ] |
|
Author: {u'username': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}Message: before: == { a: 2 }] @file:123 after: == { a: 2 }] @file:123 |
| Comment by Mark Benvenuto [ 03/May/16 ] |
|
There is no way to hint that the << should be treated as key value pairs in the BSON macro. Formatting for << is a little different in 3.8.0, but it never format as we want without customization. Since this cannot be done with clang-format 3.8.0, moving it to planned but not scheduled. |
| Comment by Mathias Stearn [ 30/Jul/15 ] |
|
Ditto for the BSON_ARRAY, DOC and DOC_ARRAY macros |