This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Verify the diagnostic code in include-fixer diagnostic tests, NFC.
ClosedPublic

Authored by hokein on Oct 5 2020, 6:00 AM.

Details

Summary

Make it easier to spot which diagnostics in the include-fixer list are tested.

Diff Detail

Event Timeline

hokein created this revision.Oct 5 2020, 6:00 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 5 2020, 6:00 AM
hokein requested review of this revision.Oct 5 2020, 6:00 AM
kadircet accepted this revision.Oct 5 2020, 6:05 AM

LGTM, but can you add some description about why you've decided to do it now :D

This revision is now accepted and ready to land.Oct 5 2020, 6:05 AM
hokein added a comment.Oct 6 2020, 1:56 AM

LGTM, but can you add some description about why you've decided to do it now :D

yeah, this comes up when I read the code, I think it is easier to spot which diagnostics in the include-fixer list are tested, (e.g. err_incomplete_type is not tested yet).

And my next step to see whether there are other missing diagnostics that could be fixed by inserting a header.

hokein edited the summary of this revision. (Show Details)Oct 6 2020, 1:57 AM