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

Clang fix-it hints & analysis not available on header files

    XMLWordPrintable

Details

    • 60fca0596adfc98af9e3ef4e657d90eec4af9486 (qt-creator/tqtc-qt-creator/6.0)

    Description

      These issues mentions that it works but it still does not in 4.15 for me:

      https://bugreports.qt.io/browse/QTCREATORBUG-21060

      https://bugreports.qt.io/browse/QTCREATORBUG-21452

      • The analysis panel does not show header files.
      • They aren't analyzed on the fly when opening / editing a header file either.

      I attached a repro.
      To see it in action :

      • Enable clang-tidy config-file based checks in Qt Creator
      • main.cpp : there is a warning
      • main.hpp : there isn't

       

      Both files are added as source files to CMake and are seen as project files.

      Attachments

        1. cpp.png
          cpp.png
          28 kB
        2. hpp.png
          hpp.png
          14 kB
        3. repro.tar.gz
          0.6 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kandeler Christian Kandeler
            jcelerier Jean-Michaël Celerier
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes