Open llvmbot opened 3 years ago
It seems that there is more to do than just ignoring the warning.
The following code :
M_COMMA_P( , ) M_COMMA_P( a )
produces when preprocessed (-E) : 1 0 on GCC (all), CLANG (Linux & MacOs), TCC, MSVC CL (/Zc:preprocessor)
whereas it produces : 0 0 on CLANG (Windows), MSVS CL (no /Zc:preprocessor)
Extended Description
Visual C++ 2019 has new compiler option /Zc:preprocessor for ISO C++ conformance. As clang should be conforming by default, it should ignore them instead of issuing a warning "argument unused during compilation". https://devblogs.microsoft.com/cppblog/announcing-full-support-for-a-c-c-conformant-preprocessor-in-msvc/ https://docs.microsoft.com/en-us/cpp/build/reference/zc-conformance?view=msvc-160