Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-2156

Generate correctly-formatted mock server code

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Trivial - P5 Trivial - P5
    • 1.7.0
    • None
    • libmongoc, tests
    • None

    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.

      Attachments

        Activity

          People

            bjori Hannes Magnusson
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: