refactor: Remove defunct attributes.h includes #25184

pull Empact wants to merge 1 commits into bitcoin:master from Empact:2022-05-attributes-include changing 16 files +2 −14
  1. Empact commented at 6:58 PM on May 21, 2022: member

    Since the removal of NODISCARD in 81d5af42f4dba5b68a597536cad7f61894dc22a3, 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.

  2. refactor: Remove defunct attributes.h includes
    Since the removal of NODISCARD in 81d5af42f4dba5b68a597536cad7f61894dc22a3,
    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
    71a8dbe5da
  3. DrahtBot added the label Refactoring on May 21, 2022
  4. MarcoFalke commented at 7:40 AM on May 23, 2022: member

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

  5. MarcoFalke merged this on May 23, 2022
  6. MarcoFalke closed this on May 23, 2022

  7. sidhujag referenced this in commit ec3c4daa31 on May 28, 2022
  8. Fabcien referenced this in commit 40a17fb3a8 on Mar 10, 2023
  9. DrahtBot locked this on May 23, 2023

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-16 18:13 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me