Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 50202

Summary: [Content Assist] ignore function with std::string
Product: [Tools] CDT Reporter: Felix <felix>
Component: cdt-parserAssignee: John Camelon <john.camelon>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: aniefer, jciesiel
Version: 2.0   
Target Milestone: 2.0   
Hardware: PC   
OS: Windows 2000   
Whiteboard:
Bug Depends on: 44952    
Bug Blocks:    

Description Felix CLA 2004-01-19 06:48:08 EST
try this:

#include <string>
class test{
    public:
    bool a();
    int b();
    std::string c();
    void d(std::string s);
}
-------------
test t;
test.<ctr-space>
---->>>>
function a and b content assist show
function c and d ignor

Gruss Felix
Comment 1 Andrew Niefer CLA 2004-04-05 15:27:58 EDT
this is now working with changes commited 04/02/04 and can be resolved

note that the for code completion to work, the 2nd part should look more like:
test t;
void foo(){
   t.<ctrl-space>
}
Comment 2 John Camelon CLA 2004-04-05 19:00:44 EDT
I do not see this working yet in the latest from HEAD, at least using Windows 
XP-Cygwin/Managed Make.  
Please describe what your project/build settings look like Andrew ... 
Comment 3 John Camelon CLA 2004-04-05 19:02:55 EDT
Just including <string> causes us to be in the wrong scope:

Offset  = 170
Scope   = Class: back_insert_iterator  // WRONG
Context = null
Kind    = NO_SUCH_KIND
Prefix  = 
No of Keywords       = 0
Time spent in Completion Engine = 681 ms

Comment 4 John Camelon CLA 2004-04-06 12:40:21 EDT
Updating summary for easier bugzilla queries.  
Comment 5 John Camelon CLA 2004-04-06 15:20:03 EDT
Seems to work now in HEAD, for both managed and standard make.