Bugzilla will undergo maintenance 2024-03-29 18h00 CET. Bugzilla will be placed in read-only mode at that time.

Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 395562 - Content-assist does not find nonstatic member names when invoked as &ClassName::
Summary: Content-assist does not find nonstatic member names when invoked as &ClassName::
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-editor (show other bugs)
Version: Next   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 9.3.0   Edit
Assignee: Nathan Ridge CLA
QA Contact: Anton Leherbauer CLA
URL:
Whiteboard:
Keywords:
: 515803 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-12-02 16:39 EST by Nathan Ridge CLA
Modified: 2017-07-03 15:43 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nathan Ridge CLA 2012-12-02 16:39:21 EST
In the following code:


struct S
{
    void foo();
};

template <typename F>
void f(F);

int main()
{
    f(&S:: /* invoke content-assist here */ );
}


when content-assist is invoked at the indicated location, the non-static member function 'foo' is not listed among the completion results. If 'foo' is made static, then it is listed.

I think non-member functions should be listed as well, because they are valid arguments to some functions (in particular, things like std::bind() and std::mem_fn()).
Comment 1 Nathan Ridge CLA 2012-12-02 16:40:09 EST
Sorry, I meant "I think *non-static* member functions should be listed as well..."
Comment 2 Eclipse Genie CLA 2016-12-12 23:36:25 EST
New Gerrit change created: https://git.eclipse.org/r/87007
Comment 3 Nathan Ridge CLA 2016-12-12 23:49:28 EST
Static fields are also not shown in this context, but should be.

The patch in comment 2 fixes the issue for both methods and fields.
Comment 5 Nathan Ridge CLA 2016-12-19 13:37:48 EST
Fixed for 9.3.
Comment 7 Nathan Ridge CLA 2017-01-24 17:18:47 EST
This change introduced a regression where completing the method name in an out-of-line method definition would no longer emit parentheses.
Comment 8 Eclipse Genie CLA 2017-01-24 17:20:33 EST
New Gerrit change created: https://git.eclipse.org/r/89484
Comment 9 Nathan Ridge CLA 2017-01-24 17:21:32 EST
(In reply to Nathan Ridge from comment #7)
> This change introduced a regression where completing the method name in an
> out-of-line method definition would no longer emit parentheses.

Fixed by the patch from comment 8.
Comment 11 Serge Shpikin CLA 2017-07-03 15:43:53 EDT
*** Bug 515803 has been marked as a duplicate of this bug. ***