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

Clang Tools: can't analyze a header file

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • Qt Creator 9.0.1
    • None

    Description

      Clang Tools analysis of a C(++) header is impossible with Qt Creator - the error is shown in Issues pane:

      :-1: error: Cannot analyze current file: "/home/bam/kde/src/kwin/src/main.h" is not a known source file.

      The same file can be analyzed with CLI Clang-Tidy just fine.

      Tried on CMake-based KWin project:
      https://invent.kde.org/plasma/kwin

       

      To reproduce:
      right-click on the header source, from the context menu choose Analyze Current File item 

       

      An upstream issue at CMake was opened up, not mush progress so far:
      file-api: add ability to query for header files (#24359) · Issues · CMake / CMake · GitLab (kitware.com) 

      Attachments

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

        Activity

          People

            cadam Cristian Adam
            bam80 Andrey Butirsky
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes