Examples of errors V3110

Examples of errors detected by the V3110 diagnostic


V3110. Possible infinite recursion.


Orchard CMS

V3110 Possible infinite recursion inside 'ReturnTypeCustomAttributes' property. ContentItemAlteration.cs 121


public override ICustomAttributeProvider
  ReturnTypeCustomAttributes
{
  get { return ReturnTypeCustomAttributes; }
}

Similar errors can be found in some other places:

  • V3110 Possible infinite recursion inside 'IsDefined' method. ContentItemAlteration.cs 101

Umbraco

V3110 Possible infinite recursion inside 'Render' method. MenuSplitButton.cs 30


protected override void
Render(System.Web.UI.HtmlTextWriter writer)
{
  writer.Write("</div>");
  base.Render(writer);
  this.Render(writer);
  writer.Write("<div class='btn-group>");
}

PascalABC.NET

V3110 Possible infinite recursion inside 'SetRange' method. TreeConverter SymbolInfoArrayList.cs 439


public void SetRange(int index,SymbolInfo[] tnarr)
{
  SetRange(index,tnarr);
}

public void SetRange(int index,SymbolInfoArrayList tnarl)
{
  SetRange(index,tnarl);
}

Similar errors can be found in some other places:

  • V3110 Possible infinite recursion inside 'SetRange' method. TreeConverter SymbolInfoArrayList.cs 444
  • V3110 Possible infinite recursion inside 'node_kind' property. TreeConverter functions.cs 2528
  • V3110 Possible infinite recursion inside 'node_location_kind' property. TreeConverter functions.cs 2590
  • And 3 additional diagnostic messages.


Do you make errors in the code?

Check your code
with PVS-Studio

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

goto PVS-Studio;