Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-7565

Automatically generate error_codes.h and error_codes.cpp from a list of codes

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.3.0
    • Fix Version/s: 2.3.1
    • Component/s: Build
    • Labels:
      None
    • Environment:
      scons and Visual Studio builds

      Description

      The source files mongo/base/error_codes.h and mongo/base/error_codes.cpp need to be kept in sync as new error codes are added. This would be easier to do correctly if the files were automatically generated by the build system from a single list of error codes.

      Both of the scons and Visual Studio builds should do this, producing identical output files.

        Attachments

          Activity

            People

            Assignee:
            schwerin Andy Schwerin
            Reporter:
            tad Tad Marshall
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: