Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-21619

Code model can't parse visual studio headers when using PCH

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • Qt Creator 4.8.1, Qt Creator 4.9.0-beta1
    • C/C++/Obj-C++ Support
    • None
    • Visual Studio 15.8.9
    • Windows

    Description

      Steps to reproduce:

      1. include any std header
      2. notice the errors

      The problem happens in MSVS's vadefs.h:151 :

      template <typename _Ty>
      struct __vcrt_assert_va_start_is_not_reference

      { static_assert(!__vcrt_va_list_is_reference<_Ty>::__the_value, "va_start argument must not have reference type and must not be parenthesized"); }

      ;

      the static_assert causes a "Parse issue: error: expected parameter declarator" and after this almost nothing in the code model works - which is to be expected because this is a fundamental header of MS' standard library

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              yvvan Ivan Donchevskii
              jcelerier Jean-Michaël Celerier
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes