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.
Paths
| Differential D92370
[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 This patch sets the preferedtype to parsed type for the following initializer
Diff Detail
Event TimelineThis 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 Closed by commit rGe98d3be11c29: [clang] Enable code completion of designated initializers in Compound Literal… (authored by kadircet). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 308602 clang/lib/Parse/ParseExpr.cpp
clang/test/CodeCompletion/desig-init.cpp
|