| Issue |
75788
|
| Summary |
Readability check to detect `return` from a `void` function
|
| Labels |
clang-tidy,
check-request
|
| Assignees |
|
| Reporter |
carlosgalvezp
|
Hi!
We recently came across this type of code and realized that some tool should have caught it:
```cpp
void foo()
{}
void bar()
{
return foo();
}
```
Turns out no warning in clang or clang-tidy catches this. Maybe we could have a clang-tidy `readability` check for it?
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs