Skip to content

[clang-tidy] detect unnecessary try-catch blocks #168529

@firewave

Description

@firewave
void cb() noexcept;

void f()
{
    try {
        cb();
    } catch(...) {}
}

In this case the try-catch is unnecessary as nothing in the scope is throwing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions