How does cpptestcli choose MSVC compiler and the purpose of compiler configuration files
Hi all,
I am trying to understand the behaviour and relationship of cpptestcli with Microsoft Visual C++ (MSVC) compiler.
My question is:
- How does Parasoft choose the default MSVC compiler to use?
When specifying the compiler configuration using the -compiler property, specifying vc_14_2-64 (64 bit version of compiler) will cause the test to fail with Error: Code Analysis for TestApp/TestApp.cpp finished with code 3 (cwc)
. Most of the code line errors are error: invalid redeclaration of type name ___
or class template has already been defined
.
My suspicion is that specifying the property -compiler vc_14_2-64 doesn't actually cause cpptestcli to invoke the 64 bit version of MSVC's cl.exe, it only tells cpptestcli to use the compiler configuration files shipped with Parasoft. Which leads me to the 2nd question.
- What exactly are the Parasoft compiler configuration files (under cpptest/bin/engine/etc/compilers/vc_14_2 or vc_14_2-64) used for?
Would appreciate if someone can shed some light on this!
Parasoft version used: C/C++ Standard for Windows x64 2023.1.1