Bug 172317 - [Content Assist] Class scoped reference: missing proposals
Summary: [Content Assist] Class scoped reference: missing proposals
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-core (show other bugs)
Version: 4.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 4.0 M5   Edit
Assignee: Bryan Wilkinson CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2007-01-31 09:55 EST by Bryan Wilkinson CLA
Modified: 2009-01-09 15:09 EST (History)
0 users

See Also:


Attachments
proposed patch (6.26 KB, patch)
2007-01-31 10:18 EST, Bryan Wilkinson CLA
bjorn.freeman-benson: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bryan Wilkinson CLA 2007-01-31 09:55:44 EST
Currently, if a completion is executed for a class scoped reference, only the class's declared methods are considered for proposals.  Static fields and nested classes should also be considered.

Failing tests:
CompletionTest_ScopedReference_NonCodeScope
CompletionTest_VariableType_NestedPrefix
Comment 1 Bryan Wilkinson CLA 2007-01-31 10:18:00 EST
Created attachment 57916 [details]
proposed patch

CPPASTQualifiedName.resolvePrefix() finds bindings for these cases.  This patch makes this method look through the class's fields and nested classes for appropriate bindings.
Comment 2 Anton Leherbauer CLA 2007-02-01 06:51:04 EST
Patch looks good.
Comment 3 Anton Leherbauer CLA 2007-02-01 07:43:46 EST
Applied to HEAD. Thanks!