This is an archive of the discontinued LLVM Phabricator instance.

[include-fixer] Add the missing header to the file where the unidentified symbol comes from.
Needs ReviewPublic

Authored by hokein on Jun 3 2016, 8:15 AM.

Details

Reviewers
bkramer

Diff Detail

Event Timeline

hokein updated this revision to Diff 59560.Jun 3 2016, 8:15 AM
hokein retitled this revision from to [include-fixer] Add the missing header to the file where the unidentified symbol comes from..
hokein updated this object.
hokein added reviewers: bkramer, ioeric.
hokein added a subscriber: cfe-commits.
bkramer added inline comments.Jun 6 2016, 2:35 AM
include-fixer/IncludeFixer.cpp
104

Does this patch do the right thing for the test case in the comment? Otherwise we'll try add includes to system headers all the time, which both wrong and invisible to the user.

hokein added inline comments.Jun 7 2016, 2:41 AM
include-fixer/IncludeFixer.cpp
104

No, the patch doesn't handle this case :(. Currently it is hard to figure out this case. For the system headers, we can probably blacklist them?

ioeric removed a reviewer: ioeric.Jan 17 2017, 12:43 AM