Issue 184930
Summary [clang-tidy] Extend `readability-else-after-return` to treat calls to `[[noreturn]]` functions like `return`s
Labels clang-tidy
Assignees
Reporter localspook
    It seems reasonable to treat this:
```cpp
if (...) {
  std::exit(1);
} else {
  ...
}
```
the same as:
```cpp
if (...) {
  return;
} else {
 ...
}
```
and remove the `else`.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to