Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. QtCreator clang static analyzer on windows
Qt 6.11 is out! See what's new in the release blog

QtCreator clang static analyzer on windows

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
1 Posts 1 Posters 736 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    B_old
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved