[SERVER-29328] IDL produces const-qualified return types on generated functions Created: 23/May/17  Updated: 30/Oct/23  Resolved: 06/Jun/17

Status: Closed
Project: Core Server
Component/s: Internal Client
Affects Version/s: None
Fix Version/s: 3.5.9

Type: Bug Priority: Major - P3
Reporter: Eric Milkie Assignee: Mark Benvenuto
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Platforms 2017-06-19
Participants:

 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



 Comments   
Comment by Githook User [ 06/Jun/17 ]

Author:

{u'username': u'markbenvenuto', u'name': u'Mark Benvenuto', u'email': u'mark.benvenuto@mongodb.com'}

Message: SERVER-29328 Do not mark primitive types as const
Branch: master
https://github.com/mongodb/mongo/commit/684cfd1ecc7de52f3f8d8da5d6df66b3856c4bdc

Generated at Thu Feb 08 04:20:31 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.