This enables:
- completion in { .x.^ }
- completion in { .x = { .^ } }
- type-based ranking of candidates for { .x = ^ }
Paths
| Differential D96058
[CodeComplete] Guess type for designated initializers ClosedPublic Authored by sammccall on Feb 4 2021, 9:42 AM.
Details Summary This enables:
Diff Detail
Event TimelineComment Actions Thanks! LG with a small concern around possible effects on member completions for uninstantiated templates.
This revision is now accepted and ready to land.Feb 4 2021, 11:17 AM sammccall added inline comments.
This revision was landed with ongoing or failed builds.Feb 4 2021, 1:17 PM Closed by commit rGeb4ab3358cd4: [CodeComplete] Guess type for designated initializers (authored by sammccall). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 321556 clang/include/clang/Parse/Parser.h
clang/include/clang/Sema/Sema.h
clang/lib/Parse/ParseInit.cpp
clang/lib/Sema/SemaCodeComplete.cpp
clang/test/CodeCompletion/desig-init.cpp
|
it might be nice to make the whole preferredtypebuilder a no-op on construction when codecompletion is disabled. but that can be an adventure for another day.