[PATCH] D108567: Implement #pragma clang final extension
Stephan Bergmann via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 5 02:08:06 PDT 2021
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
More information about the cfe-commits
mailing list