Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [cdt-dev] Indexer & context assist problems with templates

Uui, I can now reproduce the issue with Content Assist. Looks similar to
https://bugs.eclipse.org/bugs/show_bug.cgi?id=267911. 

The search on b.doit() works, though. You cannot search for the 
references on B::doit(), which is a similar issue as reported in
https://bugs.eclipse.org/bugs/show_bug.cgi?id=240589

Markus.

> -----Original Message-----
> From: cdt-dev-bounces@xxxxxxxxxxx 
> [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Schorn, Markus
> Sent: Thursday, March 12, 2009 3:21 PM
> To: CDT General developers list.
> Subject: RE: [cdt-dev] Indexer & context assist problems with 
> templates
> Importance: Low
> 
> Works perfectly for me (using 6.0 HEAD). Chances are that 
> your project is not indexed. You can check by enabling the 
> C/C++-Indexed files decorator (Window - Preferences -  
> General - Appearance - Label Decorators). The decorator will 
> show a little green dot on the indexed files in the project explorer.
> 
> Markus.
> 
> > -----Original Message-----
> > From: cdt-dev-bounces@xxxxxxxxxxx
> > [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Rolando Martins
> > Sent: Thursday, March 12, 2009 10:46 AM
> > To: CDT General developers list.
> > Subject: [cdt-dev] Indexer & context assist problems with templates
> > Importance: Low
> > 
> > Hi,
> > I am using CDT:cdt-master-6.0.0-I200903060602 & using 
> eclipse 3.5M5, 
> > and came across the following problems using templates.
> > Follows the test example:
> > 
> > 
> > #include <stdio.h>
> > 
> > template <typename T>
> > class A{
> > public:
> > 	A(){}
> > 	~A(){}
> > };
> > 
> > template <typename T>
> > class B:public A<T>{
> > public:	
> > 	B(){}
> > 	~B(){}
> > 
> > 	void doit(){
> > 		printf("B::doit()\n");
> > 	}
> > };
> > 
> > 
> > int main()
> > {
> > 	B<int> b;
> > 	b.doit();
> > }
> > 
> > 
> > 
> > a) When typing "b."  the content assist only shows:
> > class A
> > A(void)
> > class B
> > B(void)
> > 
> > b) When I try to find usages on b::doit() I get 0 references.
> > 
> > Just want to make sure these are problems, prior to 
> submitting a bug.
> > 
> > Thanks.
> > _______________________________________________
> > cdt-dev mailing list
> > cdt-dev@xxxxxxxxxxx
> > https://dev.eclipse.org/mailman/listinfo/cdt-dev
> > 
> _______________________________________________
> cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/cdt-dev
> 


Back to the top