HomePhabricator

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

Description

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

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D10889

Details

Provenance
PiRKAuthored on Jan 25 2022, 13:39
PiRKPushed on Jan 26 2022, 08:19
Reviewer
Restricted Project
Differential Revision
D10889: Remove obsolete NODISCARD ifdef forest. Use [[nodiscard]]
Parents
rABC1349291f1479: span: update constructors to match c++20 draft spec and add lifetimebound…
Branches
Unknown
Tags
Unknown