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

Clang code model "definition of builtin function" error when including GCC intrisics headers

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Fixed
    • Affects Version/s: Qt Creator 4.7.0
    • Fix Version/s: Qt Creator 4.7.1
    • Component/s: C/C++/Obj-C++ Support
    • Labels:
      None
    • Environment:
      KDE Neon 16.04
    • Platform/s:
      Linux/X11

      Description

      Using the default clang code model on Linux using GCC 7, doing

      #include <emmintrin.h>
      

      gives

      Warning: The code model could not parse an included file, .....
      0:0: error: definition of builtin function '_mm_getcsr'
      

       
      I'm using the Eigen library which uses these a lot, and there are code highlighting errors all over the place as a result.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              kosjar Nikolai Kosjar
              Reporter:
              olathorsen Ola Røer Thorsen
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes