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

Error with clang tidy when analyse current file

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • None
    • Qt Creator 4.12.0
    • None
    • Windows 10, MinGW 7, Qt 5.14.2
    • Windows

    Description

      When I run "Analyze current File" I am getting the following error:

      In file included from C:\Users\Leander Schulten\git_projects\Lichtsteuerung.git\src\main.cpp:50:
      In file included from C:\Qt\5.14.2\mingw73_64\include\QtQuick\QQuickView:1:
      In file included from C:\Qt\5.14.2\mingw73_64\include\QtQuick/qquickview.h:43:
      In file included from C:\Qt\5.14.2\mingw73_64\include\QtQuick/qquickwindow.h:44:
      In file included from C:\Qt\5.14.2\mingw73_64\include\QtQuick/qsgrendererinterface.h:43:
      In file included from C:\Qt\5.14.2\mingw73_64\include\QtQuick/qsgnode.h:46:
      In file included from C:\Qt\Tools\QtCreator\bin\clang\lib\clang\8.0.1\include\float.h:45:
      C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\float.h:28:15: fatal error: 'float.h' file not found
      #include_next <float.h>
                    ^~~~~~~~~
      66 warnings and 1 error generated.
      21:37:59: Error: Failed to analyze 0 files.
      

      Here is the complete output of the analysis

      21:37:55: Running Clang-Tidy and Clazy on C:\Users\Leander Schulten\git_projects\Lichtsteuerung.git\src\Lichtsteuerung.pro with configuration "Default Clang-Tidy and Clazy checks".
      Analyzing "C:\Users\Leander Schulten\git_projects\Lichtsteuerung.git\src\main.cpp" [Clang-Tidy].
      Analyzing "C:\Users\Leander Schulten\git_projects\Lichtsteuerung.git\src\main.cpp" [Clazy].
      Failed to analyze "C:/Users/Leander Schulten/git_projects/Lichtsteuerung.git/src/main.cpp": Clang-Tidy finished with exit code: 1.
      Command line: C:\Qt\Tools\QtCreator\bin\clang\bin\clang-tidy.exe "-config={}" "-export-fixes=C:/Users/Leander Schulten/AppData/Local/Temp/QtCreator-LVusos/clangtools-uePrMx/report-main.cpp-hIlHZR" "C:\Users\Leander Schulten\git_projects\Lichtsteuerung.git\src\main.cpp" -- -Wno-unknown-pragmas -Wno-unknown-warning-option -Wno-documentation-unknown-command -w -nostdinc -nostdinc++ -g "-std=gnu++1z" -fexceptions -mthreads -fsyntax-only -m64 "--target=x86_64-w64-mingw32" -x c++ -fcxx-exceptions -fexceptions -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API -DCONVERT_FROM_SPOTIFY_OBJECTS -DQT_MESSAGELOGCONTEXT -DQT_DEPRECATED_WARNINGS -D_USE_MATH_DEFINES -DDrMinGW -DBOOST_STACKTRACE_USE_BACKTRACE -DQT_QML_DEBUG -DQT_QUICK_LIB -DQT_WINEXTRAS_LIB -DQT_GUI_LIB -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_NETWORKAUTH_LIB -DQT_WEBSOCKETS_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I C:\Qt\Tools\QtCreator\share\qtcreator\cplusplus\wrappedQtHeaders -I C:\Qt\Tools\QtCreator\share\qtcreator\cplusplus\wrappedQtHeaders\QtCore -I "C:\Users\Leander Schulten\git_projects\Lichtsteuerung.git\src" -I "C:\Users\Leander Schulten\git_projects\Lichtsteuerung.git\src\lib\boost\include" -I "C:\Users\Leander Schulten\git_projects\Lichtsteuerung.git\src\lib\DrMinGW\include" -I "C:\Users\Leander Schulten\git_projects\Lichtsteuerung.git\src\lib\aubio\include" -I "C:\Users\Leander Schulten\git_projects\Lichtsteuerung.git\src\lib\segvcatch\include" -I "C:\Users\Leander Schulten\git_projects\Lichtsteuerung.git\src\lib\libbacktrace\include" -I "C:\Users\Leander Schulten\git_projects\Lichtsteuerung.git\src\lib\RtAudio\include" -I "C:\Users\Leander Schulten\git_projects\Lichtsteuerung.git\src\lib\qtmqtt\include" -I C:\Qt\5.14.2\mingw73_64\include -I C:\Qt\5.14.2\mingw73_64\include\QtQuick -I C:\Qt\5.14.2\mingw73_64\include\QtWinExtras -I C:\Qt\5.14.2\mingw73_64\include\QtGui -I C:\Qt\5.14.2\mingw73_64\include\QtANGLE -I C:\Qt\5.14.2\mingw73_64\include\QtQmlModels -I C:\Qt\5.14.2\mingw73_64\include\QtQml -I C:\Qt\5.14.2\mingw73_64\include\QtNetworkAuth -I C:\Qt\5.14.2\mingw73_64\include\QtWebSockets -I C:\Qt\5.14.2\mingw73_64\include\QtNetwork -I C:\Qt\5.14.2\mingw73_64\include\QtCore -I "C:\Users\Leander Schulten\git_projects\Lichtsteuerung.git\build-Lichtsteuerung-Desktop_Qt_5_14_2_MinGW_64_bit-Debug\debug" -I "C:\Users\Leander Schulten\git_projects\Lichtsteuerung.git\src\include" -I "C:\Users\Leander Schulten\git_projects\Lichtsteuerung.git\build-Lichtsteuerung-Desktop_Qt_5_14_2_MinGW_64_bit-Debug" -I C:\Qt\5.14.2\mingw73_64\mkspecs\win32-g++ -isystem C:\Qt\Tools\mingw730_64\lib\gcc\x86_64-w64-mingw32\7.3.0\include\c++ -isystem C:\Qt\Tools\mingw730_64\lib\gcc\x86_64-w64-mingw32\7.3.0\include\c++\x86_64-w64-mingw32 -isystem C:\Qt\Tools\mingw730_64\lib\gcc\x86_64-w64-mingw32\7.3.0\include\c++\backward -isystem C:\Qt\Tools\QtCreator\bin\clang\lib\clang\8.0.1\include -isystem C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include
      Process Error: 5
      Output:
      1 error generated.
      Error while processing C:\Users\Leander Schulten\git_projects\Lichtsteuerung.git\src\main.cpp.
      C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\float.h:28:15: error: 'float.h' file not found [clang-diagnostic-error]
      #include_next <float.h>
                    ^
      Found compiler error(s).
      Failed to analyze "C:/Users/Leander Schulten/git_projects/Lichtsteuerung.git/src/main.cpp": Clazy finished with exit code: 1.
      Command line: C:\Qt\Tools\QtCreator\bin\clang\bin\clang.exe -serialize-diagnostics "C:/Users/Leander Schulten/AppData/Local/Temp/QtCreator-LVusos/clangtools-uePrMx/report-main.cpp-VTupfp" -Xclang -add-plugin -Xclang clazy -Wno-unknown-pragmas -Wno-unknown-warning-option -Wno-documentation-unknown-command -w -nostdinc -nostdinc++ -g "-std=gnu++1z" -fexceptions -mthreads -fsyntax-only -m64 "--target=x86_64-w64-mingw32" -x c++ -fcxx-exceptions -fexceptions -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API -DCONVERT_FROM_SPOTIFY_OBJECTS -DQT_MESSAGELOGCONTEXT -DQT_DEPRECATED_WARNINGS -D_USE_MATH_DEFINES -DDrMinGW -DBOOST_STACKTRACE_USE_BACKTRACE -DQT_QML_DEBUG -DQT_QUICK_LIB -DQT_WINEXTRAS_LIB -DQT_GUI_LIB -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_NETWORKAUTH_LIB -DQT_WEBSOCKETS_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I C:\Qt\Tools\QtCreator\share\qtcreator\cplusplus\wrappedQtHeaders -I C:\Qt\Tools\QtCreator\share\qtcreator\cplusplus\wrappedQtHeaders\QtCore -I "C:\Users\Leander Schulten\git_projects\Lichtsteuerung.git\src" -I "C:\Users\Leander Schulten\git_projects\Lichtsteuerung.git\src\lib\boost\include" -I "C:\Users\Leander Schulten\git_projects\Lichtsteuerung.git\src\lib\DrMinGW\include" -I "C:\Users\Leander Schulten\git_projects\Lichtsteuerung.git\src\lib\aubio\include" -I "C:\Users\Leander Schulten\git_projects\Lichtsteuerung.git\src\lib\segvcatch\include" -I "C:\Users\Leander Schulten\git_projects\Lichtsteuerung.git\src\lib\libbacktrace\include" -I "C:\Users\Leander Schulten\git_projects\Lichtsteuerung.git\src\lib\RtAudio\include" -I "C:\Users\Leander Schulten\git_projects\Lichtsteuerung.git\src\lib\qtmqtt\include" -I C:\Qt\5.14.2\mingw73_64\include -I C:\Qt\5.14.2\mingw73_64\include\QtQuick -I C:\Qt\5.14.2\mingw73_64\include\QtWinExtras -I C:\Qt\5.14.2\mingw73_64\include\QtGui -I C:\Qt\5.14.2\mingw73_64\include\QtANGLE -I C:\Qt\5.14.2\mingw73_64\include\QtQmlModels -I C:\Qt\5.14.2\mingw73_64\include\QtQml -I C:\Qt\5.14.2\mingw73_64\include\QtNetworkAuth -I C:\Qt\5.14.2\mingw73_64\include\QtWebSockets -I C:\Qt\5.14.2\mingw73_64\include\QtNetwork -I C:\Qt\5.14.2\mingw73_64\include\QtCore -I "C:\Users\Leander Schulten\git_projects\Lichtsteuerung.git\build-Lichtsteuerung-Desktop_Qt_5_14_2_MinGW_64_bit-Debug\debug" -I "C:\Users\Leander Schulten\git_projects\Lichtsteuerung.git\src\include" -I "C:\Users\Leander Schulten\git_projects\Lichtsteuerung.git\build-Lichtsteuerung-Desktop_Qt_5_14_2_MinGW_64_bit-Debug" -I C:\Qt\5.14.2\mingw73_64\mkspecs\win32-g++ -isystem C:\Qt\Tools\mingw730_64\lib\gcc\x86_64-w64-mingw32\7.3.0\include\c++ -isystem C:\Qt\Tools\mingw730_64\lib\gcc\x86_64-w64-mingw32\7.3.0\include\c++\x86_64-w64-mingw32 -isystem C:\Qt\Tools\mingw730_64\lib\gcc\x86_64-w64-mingw32\7.3.0\include\c++\backward -isystem C:\Qt\Tools\QtCreator\bin\clang\lib\clang\8.0.1\include -isystem C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include "C:\Users\Leander Schulten\git_projects\Lichtsteuerung.git\src\main.cpp"
      Process Error: 5
      Output:
      In file included from C:\Users\Leander Schulten\git_projects\Lichtsteuerung.git\src\main.cpp:2:
      In file included from C:\Users\Leander Schulten\git_projects\Lichtsteuerung.git\src/codeeditorhelper.h:4:
      In file included from C:\Qt\5.14.2\mingw73_64\include\QtQuick\QQuickTextDocument:1:
      In file included from C:\Qt\5.14.2\mingw73_64\include\QtQuick/qquicktextdocument.h:43:
      In file included from C:\Qt\5.14.2\mingw73_64\include\QtGui/QTextDocument:1:
      C:\Qt\5.14.2\mingw73_64\include\QtGui/qtextdocument.h:101:5: warning: Q_PROPERTY should have either NOTIFY or CONSTANT [-Wclazy-qproperty-without-notify]
          Q_PROPERTY(bool undoRedoEnabled READ isUndoRedoEnabled WRITE setUndoRedoEnabled)
          ^
      C:\Qt\5.14.2\mingw73_64\include\QtGui/qtextdocument.h:102:5: warning: Q_PROPERTY should have either NOTIFY or CONSTANT [-Wclazy-qproperty-without-notify]
          Q_PROPERTY(bool modified READ isModified WRITE setModified DESIGNABLE false)
      
      ...
      ...
      
      many warnings like the previous one
      
      ...
      ...
      In file included from C:\Users\Leander Schulten\git_projects\Lichtsteuerung.git\src\main.cpp:45:
      In file included from C:\Qt\5.14.2\mingw73_64\include\QtGui\QGuiApplication:1:
      C:\Qt\5.14.2\mingw73_64\include\QtGui/qguiapplication.h:75:5: warning: Q_PROPERTY should have either NOTIFY or CONSTANT [-Wclazy-qproperty-without-notify]
          Q_PROPERTY(QIcon windowIcon READ windowIcon WRITE setWindowIcon)
          ^
      C:\Qt\5.14.2\mingw73_64\include\QtGui/qguiapplication.h:77:5: warning: Q_PROPERTY should have either NOTIFY or CONSTANT [-Wclazy-qproperty-without-notify]
          Q_PROPERTY(QString desktopFileName READ desktopFileName WRITE setDesktopFileName)
          ^
      C:\Qt\5.14.2\mingw73_64\include\QtGui/qguiapplication.h:79:5: warning: Q_PROPERTY should have either NOTIFY or CONSTANT [-Wclazy-qproperty-without-notify]
          Q_PROPERTY(QString platformName READ platformName STORED false)
          ^
      C:\Qt\5.14.2\mingw73_64\include\QtGui/qguiapplication.h:80:5: warning: Q_PROPERTY should have either NOTIFY or CONSTANT [-Wclazy-qproperty-without-notify]
          Q_PROPERTY(bool quitOnLastWindowClosed  READ quitOnLastWindowClosed WRITE setQuitOnLastWindowClosed)
          ^
      In file included from C:\Users\Leander Schulten\git_projects\Lichtsteuerung.git\src\main.cpp:50:
      In file included from C:\Qt\5.14.2\mingw73_64\include\QtQuick\QQuickView:1:
      In file included from C:\Qt\5.14.2\mingw73_64\include\QtQuick/qquickview.h:43:
      In file included from C:\Qt\5.14.2\mingw73_64\include\QtQuick/qquickwindow.h:44:
      In file included from C:\Qt\5.14.2\mingw73_64\include\QtQuick/qsgrendererinterface.h:43:
      In file included from C:\Qt\5.14.2\mingw73_64\include\QtQuick/qsgnode.h:46:
      In file included from C:\Qt\Tools\QtCreator\bin\clang\lib\clang\8.0.1\include\float.h:45:
      C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\include\float.h:28:15: fatal error: 'float.h' file not found
      #include_next <float.h>
                    ^~~~~~~~~
      66 warnings and 1 error generated.
      21:37:59: Error: Failed to analyze 0 files.
      21:37:59: Clang-Tidy and Clazy finished: Processed 0 files successfully, 1 failed.
      21:37:59: Elapsed time: 00:03.
      

      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
              autoantwort autoantwort
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes