WriteCompilerDetectionHeader should define <FOO>_NORETURN
C++11 defines [[noreturn]]
in N2761, that is checked using the cxx_attributes
and can be tested using the COMPILER_CXX_ATTRIBUTES
definition from WriteCompilerDetectionHeader
.
If not supported by current combination of compiler and flags, some compiler have their way to specify that a function does not return (__attribute__((noreturn))
for GCC, _Noreturn
(I think) for clang).
It would be useful if when checking for cxx_attributes
, WriteCompilerDetectionHeader
would define <FOO>_NORETURN
.