Community
Participate
Working Groups
Code analysis ignored the [[noreturn]] attribute. For example for the following code in C++ 17 mode: extern void [[noreturn]] quit(); inline int test(int i) { if (i != 0) { return i; } quit(); } Codan reports "No return, in function returning non-void". The same is reported if [[noreturn]] is replaced by the gcc-specific __attribute__((noreturn)). See also related bug 316076.