Re: [PATCH] compiler_types: mark __compiletime_assert failure as __noreturn

From
Miguel Ojeda <hidden>
Date
2021-10-14 18:42:00
Also in
lkml
Reply to
Miguel Ojeda, 2021-10-14
On Thu, Oct 14, 2021 at 8:33 PM Miguel Ojeda
[off-list ref] wrote:
That would be a nice to do, but I am not sure about introducing one
more macro about this... I think it would be simpler to submit patches
for moves into `static_assert` even if we have to "flip" the meaning.
Actually, what would be ideal is a compiler-backed lint that checks
whether it could be an `static_assert`, perhaps in clang-tidy?

It would also ensure things are kept clean.

Cheers,
Miguel
Thread (15 messages) 15 messages, 7 authors, last reply 2021-12-02
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help