Skip to content
Snippets Groups Projects

Add `nodiscard` attribute to StatusCode (C++17)

this allow spotting unchecked StatusCodes at compile time instead of at run time.

I also fixed O(250) unchecked StatusCodes in Gaudi (in ~60 files), using the script $587.

With this we can remove StatusCodeSvc with the overhead it implies (@graven noted that removing ~StatusCode we will also save some time because the return will be done via registers).

This also remove the WARN_UNUSED macro introduced with !386 (merged) (redundant).

Edited by Marco Clemencic

Merge request reports

Pipeline #1460829 passed

Pipeline passed for 82772bc8 on clemenci:replace-statuscodesvc-with-nodiscard

Approval is optional

Merged by Marco ClemencicMarco Clemencic 5 years ago (Mar 11, 2020 2:22pm UTC)

Pipeline #1479428 passed

Pipeline passed for 6bfb0bfa on master

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading