Author Topic: go to definition issue  (Read 377 times)

rowbearto

  • Senior Community Member
  • Posts: 1468
  • Hero Points: 111
go to definition issue
« on: September 26, 2018, 01:17:52 pm »
I recently encountered some code that looked like the below:

Code: [Select]
if (cond1)
{
  for (SomeType::const_iterator itExample = SomeType::begin(); blah blah; blah blah)
  {
  }
}


if (cond2)
{
  for (SomeType::const_iterator itExample = SomeType::begin(); blah blah; blah blah)
  {
  }
}


if (cond3)
{
  for (SomeType::const_iterator itExample = SomeType::begin(); blah blah; blah blah)
  {
    // Perform go to definition on the "itExample" below, and it should only bring me to the
    // for loop that is immediately above this comment. However I am presented with a dialog
    // that presents the itExample from all 3 for loops.
    itExample->abc;
  }
}

See the comment in the last for loop to understand what the issue is

Dennis

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2791
  • Hero Points: 422
Re: go to definition issue
« Reply #1 on: October 04, 2018, 09:07:39 pm »
Thanks for bringing this to my attention.  This will be fixed in the next beta.