Appologies for the delay in getting back to you about this. I have tested the following code in VS2003 with VA 1814, 1819 and 1822:
void testFelineFuncBeforeTestCode() { }
void testFelineFuncHoldingTestCode()
{
bool bIgnoreServiceParam;
void *lpParsedParams;
#if _MSC_VER < 1300
if (ERROR_SUCCESS==RegKey.QueryValue(RegParams,_T("Parameters"),&dwLen))
#else
if (ERROR_SUCCESS==RegKey.QueryStringValue(_T("Parameters"),RegParams,&dwLen))
#endif
{
bIgnoreServiceParam = true;
lpParsedParams = RegParams;
}
}
void testFelineFuncAfterTestCode()
{
bool bIgnoreServiceParam;
bIgnoreServiceParam = false;
}
when I do a Find References search for "bIgnoreServiceParam" in either function, VA only returns the references inside that function. Can you try this test on your system please?
It is possible you will see a different result, and if you do, I am wondering if the problem is file or solution specific.