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

IDL produces const-qualified return types on generated functions

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.5.9
    • Component/s: Internal Client
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      Platforms 2017-06-19

      Description

      For example, oplog_entry.idl produces code that looks like this:

      const std::int64_t getVersion() const { return _version; }
      

      Coverity is flagging all of these with:
      CID 101615 (#1 of 1): Parse warning (PW.USELESS_TYPE_QUALIFIER_ON_RETURN_TYPE)
      1. useless_type_qualifier_on_return_type: type qualifier on return type is meaningless

        Attachments

          Activity

            People

            Assignee:
            mark.benvenuto Mark Benvenuto
            Reporter:
            milkie Eric Milkie
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: