Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Clang Code Model with Qt

Clang Code Model with Qt

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 2 Posters 763 Views
  • 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.
  • Cobra91151C Offline
    Cobra91151C Offline
    Cobra91151
    wrote on last edited by Cobra91151
    #1

    Hi! After updating Qt Creator I have noticed that Clang Code Model has been enabled. It displays some warnings, for example:

    warning: '~Test' overrides a destructor but is not marked 'override'
    warning: default label in switch which covers all enumeration values
    

    Is it better to fix it or disable Clang Code Model? Have anyone used Clang Code Model? What's your point? Thanks.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Fix them. Always fix your warnings. As the old saying goes: a warning ignored today is a catastrophic segmentation fault tomorrow.

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

      Cobra91151C 1 Reply Last reply
      3
      • SGaistS SGaist

        Hi,

        Fix them. Always fix your warnings. As the old saying goes: a warning ignored today is a catastrophic segmentation fault tomorrow.

        Cobra91151C Offline
        Cobra91151C Offline
        Cobra91151
        wrote on last edited by
        #3

        @SGaist

        So you recommend to use Clang Code Model? Thanks.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          If you take a look at the compile output, you'll see the same or similar warnings during the build process. The code model allows you to cleanup your code without having to wait and take an intensive loop at the build output.

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

          Cobra91151C 1 Reply Last reply
          0
          • SGaistS SGaist

            If you take a look at the compile output, you'll see the same or similar warnings during the build process. The code model allows you to cleanup your code without having to wait and take an intensive loop at the build output.

            Cobra91151C Offline
            Cobra91151C Offline
            Cobra91151
            wrote on last edited by
            #5

            @SGaist

            Ok. Thank you.

            1 Reply Last reply
            0

            • Login

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