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

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • Qt Creator 4.7.1
    • Qt Creator 4.7.0
    • C/C++/Obj-C++ Support
    • None
    • KDE Neon 16.04
    • 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

              kosjar Nikolai Kosjar
              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