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

IDL produces const-qualified return types on generated functions

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 3.5.9
    • Internal Client
    • None
    • Fully Compatible
    • ALL
    • 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

            mark.benvenuto@mongodb.com Mark Benvenuto
            milkie@mongodb.com Eric Milkie
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: