Skip to content

Remove unused headers #includes #157

Description

@j4yan

Currently many header files are included but never used, since we don't have a mechanism or tool to help identify them. Tools like https://github.com/include-what-you-use/include-what-you-use can do the trick.

Activity

  1. changed the title [-]Remove unused headers includes[/-] [+]Remove unused headers #includes[/+] on Mar 29, 2022
  2. aosewski commented on Apr 1, 2022

    @aosewski
    Collaborator

    There is great tool pre-commit which can be configured with plugins to do such thing, and it can even do formatting, static analysis etc.
    Take a look at available hooks (filter with C++ type) https://pre-commit.com/hooks.html
    Here's one repo with some C++ hooks: https://github.com/pocc/pre-commit-hooks

  3. locked and limited conversation to collaborators on Sep 25, 2024
  4. converted this issue into a discussion #1534 on Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions