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

        1. hello_openmp.zip
          0.6 kB
          Sze Howe Koh
        2. openmp-code-and-output.png
          125 kB
          Sze Howe Koh

        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