Skip to content

Diagnostic when looping after a container is checked #18

Open

Description

@pfultz2

We should warn for:

if(!v.empty())
{
    for(auto x:v)
    {}
}

Activity

  1. pfultz2 commented on Sep 25, 2018

    @pfultz2
    OwnerAuthor

    Also we should also warn for this:

    if(n > 0)
    {
        for(int i = 0;i < n;i++) {}
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions