GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Include what you use cout and printf by geoffviola · Pull Request #94 · cpplint/cpplint

Conversation

@geoffviola

@geoffviola geoffviola commented Mar 1, 2019

Copy link
Copy Markdown
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.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@geoffviola
initial commit
2e723e9
@tkruse

tkruse commented Mar 1, 2019

Copy link
Copy Markdown
Contributor

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@aaronliu0130
aaronliu0130 changed the base branch from master to develop January 29, 2024 21:43
aaronliu0130 added 3 commits January 29, 2024 16:46
@aaronliu0130
Merge branch 'develop' into printing
b5ddf55
@aaronliu0130
update samples to match PR
30e502e
@aaronliu0130
remove transitive include exemption from IWYU
e3482c5
@aaronliu0130
aaronliu0130 merged commit e93e8fc into cpplint:develop Feb 1, 2024
@aaronliu0130 aaronliu0130 mentioned this pull request Mar 20, 2024
Avoid IWYU False Positives on external libraries #266
Merged
@snirlugassy-imagry snirlugassy-imagry mentioned this pull request Dec 3, 2024
IWYU - functionality removed #301
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@geoffviola @tkruse @aaronliu0130
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.