Issue |
81016
|
Summary |
attribute `[[noreturn]]` Diagnoses 'should not return' on a void function
|
Labels |
clang:diagnostics
|
Assignees |
|
Reporter |
erichkeane
|
See https://godbolt.org/z/h5nsj8qEK
```
[[noreturn]]
void foo() {
}
```
```
<source>:3:1: warning: function declared 'noreturn' should not return [-Winvalid-noreturn]
3 | }
| ^
```
We should probably suppress this diagnostic when the function is void .
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs