Page MenuHomePhabricator

Remove obsolete NODISCARD ifdef forest. Use [[nodiscard]]
ClosedPublic

Authored by PiRK on Jan 25 2022, 14:14.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABCf192773f33dd: Remove obsolete NODISCARD ifdef forest. Use [[nodiscard]]
Summary

scripted-diff: Use nodiscard (C++17) instead of NODISCARD

-BEGIN VERIFY SCRIPT-
sed -i "s/NODISCARD/[[nodiscard]]/g" $(git grep -l "NODISCARD" ":(exclude)src/bench/nanobench.h" ":(exclude)src/attributes.h")
-END VERIFY SCRIPT-

Remove NODISCARD

This is a backport of core#20499
Depends on D10888

Test Plan

ninja all check-all

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable