-
Notifications
You must be signed in to change notification settings - Fork 382
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
Exclude prefix headers from macro-defined-by-includer heuristics (issue #368). #410
Exclude prefix headers from macro-defined-by-includer heuristics (issue #368). #410
Conversation
include-what-you-use#368). Also considered options of not populating `macro_users_` or `direct_includes_as_fileentries_` for prefix headers but decided not to do so. I think it is better to have correct information for prefix headers but not to give recommendations based on that instead of having incomplete information.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great to me! Comment nit inline, let's merge with that fixed.
@@ -1889,6 +1889,13 @@ size_t PrintableDiffs(const string& filename, | |||
void IwyuFileInfo::HandlePreprocessingDone() { | |||
// Check macros defined by includer. Requires file preprocessing to be | |||
// finished to know all direct includes and all macro usages. | |||
// | |||
// Exclude prefix headers from mapping heuristics. Includes in prefix | |||
// headers are kept regardless of their usage in includer. And entire |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And the entire
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will fix.
Looks like our mailbot doesn't pick up the new GitHub reviews. See above. |
include-what-you-use#368). Also considered options of not populating `macro_users_` or `direct_includes_as_fileentries_` for prefix headers but decided not to do so. I think it is better to have correct information for prefix headers but not to give recommendations based on that instead of having incomplete information. PR include-what-you-use#410
Merged 7cb24d2 with comment fix. |
…ue #368). Also considered options of not populating `macro_users_` or `direct_includes_as_fileentries_` for prefix headers but decided not to do so. I think it is better to have correct information for prefix headers but not to give recommendations based on that instead of having incomplete information. PR include-what-you-use/include-what-you-use#410
Also considered options of not populating
macro_users_
ordirect_includes_as_fileentries_
for prefix headers but decided not todo so. I think it is better to have correct information for prefix
headers but not to give recommendations based on that instead of having
incomplete information.