Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

CDT/Obsolete/C editor enhancements/Context-sensitive filtering of context assist

< CDT‎ | Obsolete‎ | C editor enhancements
Revision as of 14:35, 6 May 2010 by Unnamed Poltroon (Talk) (Initial upload)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This is a problem page. Please treat it as a discussion page and feel free to insert your comments anywhere. My open questions are in bold--Tomasz Wesołowski 18:35, 6 May 2010 (UTC)

Description

In many situations, the Context Assist provides a lot of possibilities basing on the name only. Many of them are likely to produce compile errors when used. The IDE has enough information to filter the list and give more accurate suggestions.

Ranking

Category: editing

Importance: 3/5 --Tomasz Wesołowski 18:35, 6 May 2010 (UTC)

Please append your opinion here.

Solution

Context analysis

There are numerous situations where the context gives enough information to deduce what type is expected. Those include:

  • Function calls,
  • Operator expressions,
  • Initializers.

list probably incomplete - suggestions?

Proposal processing

If the required type is known, then every proposal should be filtered to remain on the list only if its type is castable to the required type.

Alternative: Instead of filtering, type matching may be used for sorting the proposals (with higher priority than alphabetical order of the name).

Back to the top