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

update server C++ code style for output parameters

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 6.3.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • Execution Team 2022-12-12

    Description

      TLDR: Reinforce the Google C++ Style Guide recommendation for using references for output parameters; or explicitly recommend pointers for outputs.

      The Server Code Style currently defaults to the Google C++ Style Guide in areas where we do not provide any explicit guidance.

      The guidance for Inputs and Outputs currently recommends using references for output parameters. This is a recent shift from the version of the style guide most of the MongoDB codebase was written against. The guidance before this change in the Google style guide was to use pointers for output parameters.

      Attachments

        Activity

          People

            benety.goh@mongodb.com Benety Goh
            benety.goh@mongodb.com Benety Goh
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: