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

update server C++ code style for output parameters

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • Execution Team 2022-12-12

      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.

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

              Created:
              Updated:
              Resolved: