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

Clang code model fails to parse remove_cv_t subexpression in type_traits header

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • Qt Creator 4.6.1
    • Qt Creator 4.3.1, Qt Creator 4.6.0
    • C/C++/Obj-C++ Support
    • None
    • Arch Linux x86_64

      extra/qtcreator 4.3.1-2
      extra/clang 4.0.1-5
      multilib/gcc-libs-multilib 7.1.1-4
      multilib/gcc-multilib 7.1.1-4 (multilib-devel)
      multilib/lib32-gcc-libs 7.1.1-4

    Description

      The following expression yields "Parse Issue 3079:52: error: expected '(' for function-style cast or type construction"

      3077:  template<typename _Tp>
      3078:    struct is_aggregate
      3079:    : bool_constant<__is_aggregate(remove_cv_t<_Tp>)> { };

      The specific part causing a problem appears to be remove_cv_t<_Tp>

      Other files that include type_traits result in the following header being displayed:
      "Warning: The code model could not parse an included file, which might lead to slow or incorrect code completion and highlighting, for example"

      Attachments

        Issue Links

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

          Activity

            People

              kosjar Nikolai Kosjar
              shroudednight Luc des Trois Maisons
              Votes:
              5 Vote for this issue
              Watchers:
              18 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes