Paul J. Lucas wrote: > IMHO, the code generated for config.h should not use [[ anywhere unless it > knows for certain (via #if’s or other means) that the compiler supports [[ > without warnings under any circumstances.
The compiler does not give us this information. The compiler only gives us the information that it supports [[__nodiscard__]]. Whether with warnings or not, it does not tell us. > That aside, as I mentioned previously, this generated line: > > # if defined __clang__ && defined __cplusplus > > seems wrong to me. This #if is the result of case-by-case testing that we did. It cannot be explained by logic, only by testing. Bruno