Skip to content

Include what you use cout and printf #94

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

Merged
merged 4 commits into from
Feb 1, 2024

Conversation

geoffviola
Copy link
Contributor

Here is a continuation of #61. I'm not sure if somethings like this should go in https://github.com/google/styleguide.

I wanted to have the tool to be a little more pushier on whether an include is present. The problem that I've seen is that unrelated changed in include paths can break cc files. For example, in debug mode there may be additional includes for printing. I wanted the tool to capture those issues without having to compile in both modes.

I noticed that it backs off a little if the file has a compilation file extension (.cc, .cpp, etc). I'm not sure if that will open the door to false positives. It might be better to keep this tool as it is and use another tool instead for more rigorous IWYU problems: https://github.com/include-what-you-use/include-what-you-use.

@tkruse
Copy link
Contributor

tkruse commented Mar 1, 2019

More false positives would be a problem. And I agree cpplint is not a good general iwyu checker.
If you want to add such Features, i believe cpplint would need much more comprehensive regression tests than it has now, including much larger codebases to use for making sure patches dont unduly break projects.

@aaronliu0130 aaronliu0130 changed the base branch from master to develop January 29, 2024 21:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy