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

Clang Static Analyzer does not find STL headers

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • None
    • Qt Creator 4.4.1
    • None
    • * Windows 10
       * Clang 3.9.1 (shipped with Qt Creator)
       * QBS 1.9.1
       * GCC arm-none-eabi provided by Atmel Studio 7 for Cortex-M4 devices

    Description

      I have an arm-none-eabi gcc toolchain.

      I have successfully configured Qt Creator to use it in a Kit and was able to use it to build a QBS projects.

      However, when I try to run the static analyzer, clang does not find
      the standard headers (neither C++ headers nor C headers):

          main.cpp:9:10: fatal error: 'cstring' file not found

      A solution is to add the include paths of the standard headers in the
      QBS project:

           cpp.includePaths: [
               ".../toolchain/arm/arm-gnu-toolchain/arm-none-eabi/include/c++/6.3.1",
               ".../toolchain/arm/arm-gnu-toolchain/arm-none-eabi/include",
           ]
      

      This issue does not occur when using the MinGW 5.3.0 toolchain installed through the Qt Online Installer.

      Attachments

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

        Activity

          People

            kosjar Nikolai Kosjar
            bterrier Benjamin Terrier
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes