This is an archive of the discontinued LLVM Phabricator instance.

[clang] Enable code completion of designated initializers in Compound Literal Expressions
ClosedPublic

Authored by kadircet on Dec 1 2020, 1:01 AM.

Details

Summary

PreferedType were not set when parsing compound literals, hence
designated initializers were not available as code completion suggestions.

This patch sets the preferedtype to parsed type for the following initializer
list.

Fixes https://github.com/clangd/clangd/issues/142.

Diff Detail

Event Timeline

kadircet created this revision.Dec 1 2020, 1:01 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 1 2020, 1:01 AM
kadircet requested review of this revision.Dec 1 2020, 1:01 AM
hokein accepted this revision.Dec 1 2020, 1:09 AM
This revision is now accepted and ready to land.Dec 1 2020, 1:09 AM
This revision was landed with ongoing or failed builds.Dec 1 2020, 3:12 AM
This revision was automatically updated to reflect the committed changes.