Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Constrain Clang-Tidy and Clazy to just one file
Qt 6.11 is out! See what's new in the release blog

Constrain Clang-Tidy and Clazy to just one file

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
7 Posts 3 Posters 376 Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Michael58
    wrote last edited by
    #1

    When running Clang-Tidy or Clazy even for "current file only", they show the results for many other files, mostly system include files.

    2e3ddbdb-3cce-402a-8a15-aa57ea549509-grafik.png

    Thats a mess to check them all. I'm probably making a simple mistake here. Can someone please help?
    I use Windows 10 and Qt6.9.1, which I know is a little outdated. I'm a bit reluctant to update on each minor version, unless really necessary.

    1 Reply Last reply
    0
    • Nils SjobergN Offline
      Nils SjobergN Offline
      Nils Sjoberg
      wrote last edited by SGaist
      #2

      clang-tidy שינה ברירת מחדל ומציג אזהרות מכל header - תקן עם HeaderFilterRegex: '' בקובץ .clang-tidy.

      clang-tidy changed default and shows warnings from every header - fix with HeaderFilterRegex: '' in .clang-tidy file.

      [edit: added translation SGaist]

      "What's up, Doc?"

      SGaistS 1 Reply Last reply
      0
      • Nils SjobergN Nils Sjoberg

        clang-tidy שינה ברירת מחדל ומציג אזהרות מכל header - תקן עם HeaderFilterRegex: '' בקובץ .clang-tidy.

        clang-tidy changed default and shows warnings from every header - fix with HeaderFilterRegex: '' in .clang-tidy file.

        [edit: added translation SGaist]

        SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote last edited by
        #3

        @Nils-Sjoberg why answer in Hebrew ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        Nils SjobergN 1 Reply Last reply
        1
        • SGaistS SGaist

          @Nils-Sjoberg why answer in Hebrew ?

          Nils SjobergN Offline
          Nils SjobergN Offline
          Nils Sjoberg
          wrote last edited by
          #4

          @SGaist said in Constrain Clang-Tidy and Clazy to just one file:

          @Nils-Sjoberg why answer in Hebrew ?

          I'm originally from Israel, I forgot to translate.

          "What's up, Doc?"

          SGaistS 1 Reply Last reply
          1
          • Nils SjobergN Nils Sjoberg

            @SGaist said in Constrain Clang-Tidy and Clazy to just one file:

            @Nils-Sjoberg why answer in Hebrew ?

            I'm originally from Israel, I forgot to translate.

            SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote last edited by
            #5

            @Nils-Sjoberg said in Constrain Clang-Tidy and Clazy to just one file:

            @SGaist said in Constrain Clang-Tidy and Clazy to just one file:

            @Nils-Sjoberg why answer in Hebrew ?

            I'm originally from Israel, I forgot to translate.

            Understood, I think you can still edit your answer and translate it. If not, please let me know.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • Nils SjobergN Offline
              Nils SjobergN Offline
              Nils Sjoberg
              wrote last edited by
              #6

              @SGaist With great pleasure, English is not my native language.

              "What's up, Doc?"

              SGaistS 1 Reply Last reply
              0
              • Nils SjobergN Nils Sjoberg

                @SGaist With great pleasure, English is not my native language.

                SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote last edited by
                #7

                @Nils-Sjoberg said in Constrain Clang-Tidy and Clazy to just one file:

                @SGaist With great pleasure, English is not my native language.

                Done :-)

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                1

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved