Centralize compiler detection for GCC, clang, MSVC and MINGW32.
Description
Macros detecting compilers GCC, clang, MSVC and MINGW32 added to catch_compiler_capabilities.hpp .
New macros are replaced with former conditions that detect the compiler.
If detecting compilers needs more conditions we can just change macros
at catch_compiler_capabilities.hpp instead of multi places in code.
GitHub Issues
Closes #2094
Codecov Report
Merging #2410 (e1827f7) into devel (7b93a20) will not change coverage. The diff coverage is
n/a.
:exclamation: Current head e1827f7 differs from pull request most recent head 56d04d2. Consider uploading reports for the commit 56d04d2 to get more accurate results
@@ Coverage Diff @@
## devel #2410 +/- ##
=======================================
Coverage 91.10% 91.10%
=======================================
Files 157 157
Lines 7414 7414
=======================================
Hits 6754 6754
Misses 660 660
Some includes should be removed before merging. :| I try to handle it by review but there were a lot of files.
Some lines missing while renaming macro from CATCH_COMPILER_MSC to CATCH_COMPILER_MSVC.
After testing with clang and MSVC compiler on my machine I will push new changes.
I think this PR is currently trying to do too much. I'd recommend starting by merging the reworked compiler detection macros and the code can be converted to use them iteratively later on.