Using the test code:
bool fooBar()
{
return true;
}
int main()
{
if ( fooBar() )
{
return 1;
}
fooBar();
return 0;
}
If I hover over fooBar() when it is used in the if statement, and trigger the Refactor Menu, I am offered 'Create Declaration' when I should not be.