You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When building catch 2 on windows with clang both the Microsoft visual studio and clang compilers are detected in catch_compiler_capabilities.hpp which results in the following macros being redefined:
Turns out this is already fixed in devel, by only enabling the clang-specific pragmas if _MSC_VER is not also enabled (in which case we assume that Clang handles __pragmas and let it handle the MSVC macros).
Describe the bug
When building catch 2 on windows with clang both the Microsoft visual studio and clang compilers are detected in catch_compiler_capabilities.hpp which results in the following macros being redefined:
The following warnings are generated:
Expected behavior
I would expect that no warnings are generated, and the correct compiler was detected.
Reproduction steps
Compile a file which includes catch2/catch_test_macros.hpp with clang 13 on windows
Platform information:
Additional context
It may be possible to extend the check for MSVC to
#if defined(_MSC_VER) && !defined(__clang__)
from
#if defined(_MSC_VER)
But it seems that clang masquerading is already handled in the MSVC case. So there may be some implications of this change that i don't see.
The text was updated successfully, but these errors were encountered: