This is an archive of the discontinued LLVM Phabricator instance.

[clang][CodeComplete] Dont perform fallback completion for incomplete member ref
ClosedPublic

Authored by kadircet on Apr 6 2020, 10:19 AM.

Details

Summary

Clang performs expression based completion whenever it can't figure out
base of a member reference expression. It might be quite confusing in cases like
incomplete types. This patch disables that fallback.

Unfortunately ParsePostfixExpressionSuffix is quite tangled and this patch
adds more to it.

Diff Detail

Event Timeline

kadircet created this revision.Apr 6 2020, 10:19 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 6 2020, 10:19 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
sammccall accepted this revision.Apr 6 2020, 10:24 AM

It'd be nice to suppress the fallback more directly, but this is pretty clear.

This revision is now accepted and ready to land.Apr 6 2020, 10:24 AM
This revision was automatically updated to reflect the committed changes.