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

rowbearto

  • Senior Community Member
  • Posts: 2335
  • Hero Points: 132
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

  • Senior Community Member
  • Posts: 3961
  • Hero Points: 517
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.