This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Fix tests for implicit C function declaration
ClosedPublic

Authored by ArcsinX on Aug 31 2022, 12:23 PM.

Details

Summary

clangd code fixes at D122983 were not right.
We need to check that clangd provides IncludeFixer fixits for implicit function declaration even if this is not an error (e.g. implicit function declaration in C89).

Diff Detail

Event Timeline

ArcsinX created this revision.Aug 31 2022, 12:23 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 31 2022, 12:23 PM
Herald added a subscriber: arphaman. · View Herald Transcript
ArcsinX requested review of this revision.Aug 31 2022, 12:23 PM

LGTM, but someone with more clangd experience should do the final sign off (seeing as how I caused the issue in the first place, sorry about that!).

sammccall accepted this revision.Sep 1 2022, 10:13 AM

Thanks!

(And not surprising at all this regressed, the mechanism clangd is using here is extremely fragile, we just couldn't come up with a better one :-()

This revision is now accepted and ready to land.Sep 1 2022, 10:13 AM
This revision was automatically updated to reflect the committed changes.