[cfe-users] Why is clang defining NULL as __null ??

2019-11-04 Thread pendyala syam via cfe-users
I have a .cpp file which has usage of *NULL* at several places. When I try to compile this cpp file for Android/x86 platform using clang++ on Windows machine + standalone tool chain, I am running into "expected expression" error at the places where *NULL* is used. I find the definition of *NULL* in

Re: [cfe-users] Why is clang defining NULL as __null ??

2019-11-04 Thread David Blaikie via cfe-users
clang generally also understands __null (for the same reasons GCC does - to provide better diagnostics when using NULL in non-pointer contexts). See, for example, this warning (not an error): https://godbolt.org/z/KvdW7a Can't say I know much about the NDK or what version of clang it has, what fla