[SERVER-64635] Coverity analysis defect 121898: Parse warning Created: 18/Mar/22 Updated: 29/Oct/23 Resolved: 11/Apr/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 6.0.0-rc0 |
| Type: | Bug | Priority: | Trivial - P5 |
| Reporter: | Coverity Collector User | Assignee: | Matthew Russotto |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | coverity | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Operating System: | ALL | ||||||||
| Sprint: | Repl 2022-04-04, Repl 2022-04-18 | ||||||||
| Participants: | |||||||||
| Description |
|
Parse warning A parse warning may reduce maintainability of the code, or it may indicate a serious error. A parse warning from the Coverity parser may indicate a bug, or poor coding practice |
| Comments |
| Comment by Githook User [ 08/Apr/22 ] |
|
Author: {'name': 'Matthew Russotto', 'email': 'matthew.russotto@mongodb.com', 'username': 'mtrussotto'}Message: Fixes "Coverity analysis defect 121898: Parse warning" |
| Comment by Kyle Suarez [ 05/Apr/22 ] |
|
Per a Slack conversation, readability-const-return is actually already enabled in our current clang-tidy and sadly it does not seem to catch much. There is hope that upgrading to clang-format v4 will catch more of this. |
| Comment by Matthew Russotto [ 01/Apr/22 ] |
|
Would it be possible to turn on readability-const-return in clang-tidy to catch this earlier? |
| Comment by Kyle Suarez [ 18/Mar/22 ] |
|
|