Skip to content

Include What You Use #2170

Open
Open

Description

@v4hn

For fun and profit I just ran include-what-you-use on our code base and put the results here. I wanted to make it a gist, but it seem 23k lines is too much for that :)

Please have a look and tell me what you think of incorporating these changes (partially?) into MoveIt.

The idea is

  1. to reduce compile time by dropping unnecessary (or unnecessarily general) includes and
  2. improve correctness by not relying on transitive includes

@JafarAbdi @henningkayser @tylerjw @rhaschke and whoever else feels responsible :-)

Activity

  1. henningkayser commented on Jun 27, 2020

    @henningkayser
    Member

    Nice! I really like all the added forward declarations and that it checks for transitive MoveIt includes. All those extra Eigen/boost/std includes seem a little excessive, though. What's the performance implication of that? I think it would be really helpful to get a less-restrictive check added to moveit_ci.

  2. v4hn commented on Jun 27, 2020

    @v4hn
    ContributorAuthor
  3. rhaschke commented on Jul 1, 2020

    @rhaschke
    Contributor

    In general, I like the idea to check (and auto-fix) our includes in this fashion. But I agree with Henning, that deep includes for boost or Eigen stuff is counter-productive. These meta includes were introduced for convenience and I remember that you added a similar meta include for MTC recently (stages.h?).
    I'm curious how the tool finds missing includes...

  4. v4hn commented on Jul 2, 2020

    @v4hn
    ContributorAuthor
  5. added a commit that references this issue on Jul 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions