Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-core-dev] CDT Open Declaration in Function


Open Declarations currently does not support local variables. If you wish to change this, you can modify the call to searchEngine.search in OpenDeclarationsAction to not exclude local declarations. The problem with this is that you will get all occurences of whatever variable you select as we don't have a way of specifying the immediate local scope.

BTW, we have a CDT newsgroup(eclipse.tools.cdt on news.eclipse.org ) where we answer these types of questions...

- Bogdan



NUDT <guofangkeda@xxxxxxxxxx>
Sent by: cdt-core-dev-admin@xxxxxxxxxxx

03/17/2004 04:03 AM

Please respond to
cdt-core-dev

To
cdt-core-dev@xxxxxxxxxxx
cc
Subject
[cdt-core-dev] CDT  Open Declaration in Function





I want to open a declaration in the function, but it do nothing.
For example:
    int add(int x, int y){
       int iTemp = 0;

            ...
        printf("iTemp = %d. \n",iTemp);
            ...
       return x + y ;
   }

In the function, we don't open the declaration when we have selected iTemp, x or y.
 
How to modify the CDT ?
 
Thanks!
Ben

Back to the top