Skip to content

Conversation

@Empact
Copy link
Contributor

@Empact Empact commented May 21, 2022

Since the removal of NODISCARD in 81d5af4,
the only attributes.h def is LIFETIMEBOUND, and it's included in many more
places that it is used.

This removes all includes which do not have an associated use of LIFETIMEBOUND,
and adds it to the following files, due to their use of the same:

  • src/validationinterface.h
  • src/script/standard.h

See also #20499.

Since the removal of NODISCARD in 81d5af4,
the only attributes def is LIFETIMEBOUND, and it's included in many more
places that it is used.

This removes all includes which do not have an associated use of LIFETIMEBOUND,
and adds it to the following files, due to their use of the same:
* src/validationinterface.h
* src/script/standard.h
@maflcko
Copy link
Member

maflcko commented May 23, 2022

Seems ok, but in the future it would be good to use iwyu for this. See also #25067 (comment)

@maflcko maflcko merged commit 66e3b16 into bitcoin:master May 23, 2022
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request May 28, 2022
71a8dbe refactor: Remove defunct attributes.h includes (Ben Woosley)

Pull request description:

  Since the removal of NODISCARD in 81d5af4,
  the only attributes.h def is LIFETIMEBOUND, and it's included in many more
  places that it is used.

  This removes all includes which do not have an associated use of LIFETIMEBOUND,
  and adds it to the following files, due to their use of the same:
  * src/validationinterface.h
  * src/script/standard.h

  See also bitcoin#20499.

Top commit has no ACKs.

Tree-SHA512: f3e10a5cda5ab78371b77b702f4a241ff69d490a16cc6059f1a4202b97c584accdbc951cc7b6120eae94bee3b9249e9117b45cf6ed1a5228ca23b5638fcf7b7b
Fabcien pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request Mar 10, 2023
Summary:
Since the removal of NODISCARD the only attributes def is LIFETIMEBOUND, and it's included in many more places that it is used.

This removes all includes which do not have an associated use of LIFETIMEBOUND, and adds it to  src/validationinterface.cpp.

This is a backport of [[bitcoin/bitcoin#25184 | core#25184]]

Test Plan: `ninja all check-all`

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D13266
@bitcoin bitcoin locked and limited conversation to collaborators May 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants