Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for include-what-you-use #61

Merged
merged 1 commit into from
Oct 17, 2023
Merged

Add support for include-what-you-use #61

merged 1 commit into from
Oct 17, 2023

Conversation

ffoulkes
Copy link
Contributor

include-what-you-use is a utility developed at Google that analyzes C and C++ source files, looking for violations of the Include What You Use rule, and recommends fixes for them.

"The main goal of include-what-you-use is to remove superfluous #includes. It does this both by figuring out what #includes are not actually needed for this file (for both .cc and .h files), and replacing #includes with forward-declares when possible."

This CL implements a cmake option that can be used to run include-what-you-use on krnlmon. It requires standalone build support (#56), plus a trivial change to FindDpdkDriver (ipdk-io/networking-recipe#315) in order to analyze krnlmon for DPDK.

Copy link
Collaborator

@5abeel 5abeel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to have this utility available. Nice find and an addition to the project

Copy link
Contributor

@nupuruttarwar nupuruttarwar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ffoulkes ffoulkes merged commit f84a456 into main Oct 17, 2023
@ffoulkes ffoulkes deleted the iwyu branch October 17, 2023 00:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cmake Affects CMake build system trivial effort Almost no effort required
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants