sberg added a comment. > Final macros will always warn on redefinition, including situations with > identical bodies and in system headers.
But #define NULL syntax error #pragma clang final(NULL) #include <stddef.h> void * p = NULL; does not produce any warnings/errors for me and indicates that NULL silently gets redefined as a null pointer constant in stddef.h. Is that intended? Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D108567/new/ https://reviews.llvm.org/D108567 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits