QtCreator clang static analyzer on windows

  • When I rund the clang static analyzer from QtCreator under windows I get a ton of errors that are triggered in included std headers. Here is an example:

    In file included from C:\Program Files (x86)\Microsoft Visual Studio\Preview\Community\VC\Tools\MSVC\14.12.25805\include\chrono:7:
    In file included from C:\Program Files (x86)\Microsoft Visual Studio\Preview\Community\VC\Tools\MSVC\14.12.25805\include\ratio:7:
    C:\Program Files (x86)\Microsoft Visual Studio\Preview\Community\VC\Tools\MSVC\14.12.25805\include\type_traits(898,47):  error: '_Ty' does not refer to a value
                    : bool_constant<__is_trivially_destructible(_Ty)>
    C:\Program Files (x86)\Microsoft Visual Studio\Preview\Community\VC\Tools\MSVC\14.12.25805\include\type_traits(896,16):  note: declared here
    template<class _Ty>
    C:\Program Files (x86)\Microsoft Visual Studio\Preview\Community\VC\Tools\MSVC\14.12.25805\include\type_traits(899,2):  error: expected class name
            {       // determine whether _Ty has a trivial destructor
    2 errors generated.

    Are there some kind of settings that can be used to remedy this?

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.