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

ClangTidy errors out on most of Qt Creator's code base

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 18.0.0
    • None

      I am trying to run ClangTidy 20.1.3 on Qt Creator's source code of the master branch:

      ClangTidy output
      Analyzing "/home/alportal/dev/qt-creator/src/libs/utils/mimetypes2/mimeprovider.cpp" [Clang-Tidy].
      Failed to analyze "/home/alportal/dev/qt-creator/src/libs/utils/fsengine/filepathinfocache.h": Clang-Tidy finished with exit code: 1.
      Command line: /home/alportal/Qt/Tools/QtCreator/libexec/qtcreator/clang/bin/clang-tidy '-config={Checks: '\''-*,cppcoreguidelines-init-variables,-clang-diagnostic-*'\'', CheckOptions: []}' -p /tmp/QtCreator-ZDYsxY/Clang-TidyvZJkJD -export-fixes=/tmp/QtCreator-ZDYsxY/clangtools-dGHpqT/report-filepathinfocache.h-GvzABB /home/alportal/dev/qt-creator/src/libs/utils/fsengine/filepathinfocache.h
      Process Error: 5
      Output:
      error: unknown argument: '-fconcepts-diagnostics-depth=8' [clang-diagnostic-error]
      73 warnings and 1 error generated.
      Error while processing /home/alportal/dev/qt-creator/src/libs/utils/fsengine/filepathinfocache.h.
      Suppressed 73 warnings (73 in non-user code).
      Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
      Found compiler error(s).
      

      Side effect of https://codereview.qt-project.org/c/qt-creator/qt-creator/+/629578 ?

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

            kandeler Christian Kandeler
            portale Alessandro Portale
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes