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
{{ message }}
Repository navigation
Compatibility fix GSL_SUPPRESS not working with clang-cl.exe #739
Werner Henze (@beinhaerter) Because all these tests were performed with clang++ on Mac and Linux.
This happens when using clang-cl.exe, clang's compatible replacement for cl.exe.
Clang-cl is Windows only and the default when used from Visual Studio.
Activity
beinhaerter commentedon Oct 12, 2018
Related: https://stackoverflow.com/questions/38499462/how-to-tell-clang-to-stop-pretending-to-be-other-compilers
What bothers me: why do the unit tests compile with clang 3.x/4/5/6 (https://travis-ci.org/Microsoft/GSL/builds/415282747?utm_source=github_status&utm_medium=notification) but you cannot compile with clang 7? The linked StackOverflow question is two years old when clang 7 was not released. So the problem that you face should also be seen in the unit tests.
Farwaykorse commentedon Oct 15, 2018
Werner Henze (@beinhaerter) Because all these tests were performed with clang++ on Mac and Linux.
This happens when using clang-cl.exe, clang's compatible replacement for cl.exe.
Clang-cl is Windows only and the default when used from Visual Studio.
See also: https://clang.llvm.org/docs/UsersManual.html#clang-cl
And: https://blogs.msdn.microsoft.com/vcblog/2018/09/18/exploring-clang-tooling-part-0-building-your-code-with-clang/
Fix microsoft#739 correct cppcorecheck warnings check for clang-cl
Fix microsoft#739 correct cppcorecheck warnings for clang-cl
beinhaerter commentedon Oct 15, 2018
So question to the maintainers: is it possible to add clang-cl to the unit tests?
annagrin commentedon Nov 6, 2018
sure, it should be possible to modify appveyor.yml to add clang-cl tests. Contributions to tests are very appreciated!
Clang cl (microsoft#762)