update server C++ code style for output parameters

XMLWordPrintableJSON

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

      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
            Reporter:
            Benety Goh
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: