Skip to content

[clang-tidy] readability-else-after-return not detected in case blocks #160033

@firewave

Description

@firewave
void f(int i, bool b)
{
    switch(i)
    {
        case 0:
            if (b) {
                return;
            }
            else {}
        break;
    }
}

https://godbolt.org/z/fG1z7b97d

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions