Can you please try this simple test function, and see what, if anything, Code Inspection picks up in this function:
void testCodeInspectFalsePositive()
{
int* pTestPtr = 0; // this is being flagged by code inspection, to double check its active
if (true)
{
CString text = "something";
text.Insert(4, _T("xxx"));
}
}
for me, only the comment marked line is being picked up. Hopefully you will see the same result.
I suspect I will need a more complete example to reproduce the problem you are seeing.
At the risk of asking a silly question, does your code currently compile? I only ask since if the code is currently invalid, since you are still writing it, this might be a factor in why you are getting the false positive.