[CDRIVER-2156] Generate correctly-formatted mock server code Created: 09/May/17 Updated: 28/Oct/23 Resolved: 11/May/17 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | libmongoc, tests |
| Affects Version/s: | None |
| Fix Version/s: | 1.7.0 |
| Type: | Improvement | Priority: | Trivial - P5 |
| Reporter: | A. Jesse Jiryu Davis | Assignee: | Hannes Magnusson |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
The script generate-future-functions.py writes C code to support the mock server test framework. This code predates our clang-format style and doesn't conform. On occasion we accidentally apply clang-format to the generated code, which makes a big diff, and the next time we generate it the style changes back, which makes another big diff. Update the code generator to conform to clang-format, or add a step to the code generator to call clang-format on its output, or find a way to prevent its output from ever being accidentally formatted. |
| Comments |
| Comment by Githook User [ 11/May/17 ] |
|
Author: {u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}Message: |