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

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Not Evaluated Not Evaluated
    • Qt Creator 4.7.1
    • Qt Creator 4.7.0
    • C/C++/Obj-C++ Support
    • None
    • KDE Neon 16.04
    • Linux/X11

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes