SlickEdit Community

Archived Read Only Forums => SlickEdit 2018 v23 Beta Discussion => Topic started by: rowbearto on September 26, 2018, 01:17:52 pm

Title: go to definition issue
Post by: rowbearto 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
Title: Re: go to definition issue
Post by: Dennis on October 04, 2018, 09:07:39 pm
Thanks for bringing this to my attention.  This will be fixed in the next beta.