Skip to content

Conversation

@geoffviola
Copy link
Contributor

This PR addresses #27

I noticed some false positives when using transform in other namespaces. There may be some new false negatives when using namespace std is used and std:: is omitted, but it seems worth it.

@tkruse tkruse force-pushed the develop branch 5 times, most recently from b683f2b to 2cb090b Compare January 29, 2023 12:33
@tkruse
Copy link
Contributor

tkruse commented Jan 29, 2023

Since cpplint has been used in the past to detect missing includes when using using namespace std, I am not sure that it's reasonable to make a change to cpplint to make those false negatives. I would prefer a solution reducing false positives without creating false negatives.

@geoffviola geoffviola closed this Jan 29, 2023
@grantwwu
Copy link

grantwwu commented Apr 6, 2023

Could the behavior be controlled through an option?

aaronliu0130 pushed a commit that referenced this pull request Mar 20, 2024
Follow-up to #217, another try to fix #27. This stops IWYU on erring on tokens with namespace prefixes that aren't std.
This change should preserve backward compatibility while preventing false positives for common names in other namespaces.
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