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

Clang code model cannot find OpenMP headers/symbols

    XMLWordPrintable

Details

    Description

      OpenMP support is baked into many compilers including GCC and LLVM: https://www.openmp.org/resources/openmp-compilers-tools/

      It is enabled by setting compiler and linker flags, rather than INCLUDEPATH. The Qt Creator code model should look for these flags and update its own search paths accordingly.

      The attached code and screenshot shows that the code builds and runs fine, but the Clang code model (both libclang and clangd) doesn't recognize OpenMP.

      Attachments

        Issue Links

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

          Activity

            People

              kandeler Christian Kandeler
              skoh-qt Sze Howe Koh
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes