Author Topic: B3: Go to References only lists header file reference  (Read 2772 times)

JimmieC

  • Senior Community Member
  • Posts: 490
  • Hero Points: 17
B3: Go to References only lists header file reference
« on: October 14, 2015, 06:31:18 PM »
I have variable that is used, assigned or compared, in 5 places in my .cpp file. It is instantiated as private in the class for a total of 6 representations. When I right-click on the variable in the .cpp file and select Go to References, on the header file representation is listed. However, when I watch the left pane of the References window carefully, I notice that it does list the .cpp file but it immediately removes it. That is, it "blinks" the .cpp file.

Here is a rudimentary code snippet:
----------------------------------------
Header file (AlarmTask.h):
class CAlarmTask
{
public:
    void ProcessDir(Ctime*);

protected:
    int DirRxZones;
}
----------------------------------------
Cpp file (AlarmTask.cpp):
void CAlarmTask::ProcessDir(Ctime* pCurrentTime)
{
    int Selection = 0;
    DirRxZones = 0;

    for(int i = 0; i < N_PEOPLES; i++)
        if (xxx && yyy) // Could be any variable set here, I guess
        {
            Selection++;
        }

    if(Selection == 0)
    {
        DirRxZones = 2;
        return;
    }
}
----------------------------------------
When I Go To References on DirRxZones, it only lists the header file, not the .cpp file.

See attached image.

Jim


Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6866
  • Hero Points: 528
Re: B3: Go to References only lists header file reference
« Reply #1 on: October 14, 2015, 06:41:35 PM »
Reproduced. Looking into this

Dennis

  • Senior Community Member
  • Posts: 3961
  • Hero Points: 517
Re: B3: Go to References only lists header file reference
« Reply #2 on: October 14, 2015, 08:56:27 PM »
Good catch, this will be fixed for the next build.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6866
  • Hero Points: 528
Re: B3: Go to References only lists header file reference
« Reply #3 on: October 21, 2015, 11:58:31 AM »
Please try release candidate 1