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

Windows: Lots of false clang-tidy warnings for project with custom .clang-tidy

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • Qt Creator 12.0.2
    • Windows11
    • Windows

    Description

      Hello,

      I have a project with a custom .clang-tidy file. When I open the project with QtCreator on Linux, everything works as intended. However, on Windows, clang-tidy emits a lot of false warnings. Here is an example of the issue - clang-tidy output for main.cpp from the attached project:

      Removing the custom .clang-tidy file gets rid of these warnings.

      I have attached a MRE with .clang-tidy set to misc-* checks.

      I use QtCreator12.0.2 and Clangd 17.0.1.

      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
              mbugdol Michał Bugdoł
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes