Bug 372615 - Move name matching strategy for content assist from CDT core into CTD UI
Summary: Move name matching strategy for content assist from CDT core into CTD UI
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-core (show other bugs)
Version: Next   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-26 23:13 EST by Jens Elmenthaler CLA
Modified: 2020-09-04 15:17 EDT (History)
2 users (show)

See Also:


Attachments
proposed implementation (199.82 KB, patch)
2012-02-26 23:26 EST, Jens Elmenthaler CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jens Elmenthaler CLA 2012-02-26 23:13:05 EST
Build Identifier: HEAD

This is a follow up on bug173458 (enabling camel case completion for CDT).

It turned out that implementing and selecting the name matching strategies in CDT core is not optimal since
- it imposes unnecessary dependencies on clients (=preferences)
- it prevents from choosing different strategies for different clients

The basic approach to escalate the name matching strategy into the client is the following:
- Introduce the concept of an INameMatcher which is used everywhere in the core, i.e. not just for content assist. For the cases that exact names are to be searched (i.e. no content assist), an ExactNameMatcher implementation of INameMatcher is provided for this use.
- a method taking the name matcher as parameter instead of a prefix will be added to the following interfaces:
   IASTCompletionContext
   ICPPASTCompletionContext
   IScope
   IIndex


Reproducible: Always
Comment 1 Jens Elmenthaler CLA 2012-02-26 23:26:18 EST
Created attachment 211651 [details]
proposed implementation