Examples of errors detected by the V700 diagnostic

V700. Consider inspecting the 'T foo = foo = x;' expression. It is odd that variable is initialized through itself.


.NET CoreCLR

V700 Consider inspecting the 'T foo = foo = ...' expression. It is odd that variable is initialized through itself. cee_wks zapsig.cpp 172


BOOL ZapSig::GetSignatureForTypeHandle(....)
{
  ....
  CorElementType elemType = elemType =
    TryEncodeUsingShortcut(pMT);
  ....
}

Unreal Engine 4

V700 Consider inspecting the 'T foo = foo = ...' expression. It is odd that variable is initialized through itself. leveleditorcontextmenu.cpp 537


void FLevelEditorContextMenuImpl::FillSelectActorMenu(....)
{
  ....
  int32 NumSelectedSurfaces = NumSelectedSurfaces =
    AssetSelectionUtils::GetNumSelectedSurfaces(....);
  ....
}

Apple II emulator

V700 Consider inspecting the 'T foo = foo = ...' expression. It is odd that variable is initialized through itself. debugger_display.cpp 1226


int GetConsoleLineHeightPixels()
{
  int nHeight=nHeight=g_aFontConfig[ FONT_CONSOLE ]._nFontHeight;
  ....
}


Do you make errors in the code?

Check your code
with PVS-Studio

Static code analysis
for C, C++ and C#

goto PVS-Studio;