llvm-project
llvm-project copied to clipboard
[clang][-Wimplicit-void-ptr-cast] A new false error caused by an unexpected AST change
git bisect shows that #136855 causes a new false error on the example below.
#include <stdatomic.h>
typedef const struct T * T_Ref;
static T_Ref _Atomic x = ATOMIC_VAR_INIT((void*)NULL);
After the commit, the AST of the global variable declaration changes---a level of -ImplicitCastExpr '_Atomic(CFStringRef)'