[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: CDRIVER-2156 Ignore clang-format for generated test code
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/a08c413e830ab49fccef1317ad7bd3a725f4bbea

Generated at Wed Feb 07 21:14:21 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.