Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. The Lounge
  4. QTCreator's annotations
Qt 6.11 is out! See what's new in the release blog

QTCreator's annotations

Scheduled Pinned Locked Moved Unsolved The Lounge
6 Posts 4 Posters 2.1k Views 2 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.
  • TobyT Offline
    TobyT Offline
    Toby
    wrote on last edited by
    #1

    Hi everybody

    is there a way to configure the annotations? I found a way to disable them or to configure their position, but that's not what i want.

    I am experiencing a really annoying annotation that says:
    "'if' initialization statements are a C++17 extension"

    How can i force QTCreator to show only a specific category of annotations? ( e.g. errors )

    greetings
    toby

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

      Hi
      I was wondering if one could add something to
      alt text

      however, im not really sure what to write to have it not say anything
      https://clang.llvm.org/docs/DiagnosticsReference.html#wc-17-extensions

      aha_1980A 1 Reply Last reply
      1
      • mrjjM mrjj

        Hi
        I was wondering if one could add something to
        alt text

        however, im not really sure what to write to have it not say anything
        https://clang.llvm.org/docs/DiagnosticsReference.html#wc-17-extensions

        aha_1980A Offline
        aha_1980A Offline
        aha_1980
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @mrjj Exactly. You need to find the name of the warning and the add -Wno-<Warning>, like you did with old style cast.

        Qt has to stay free or it will die.

        1 Reply Last reply
        0
        • TobyT Offline
          TobyT Offline
          Toby
          wrote on last edited by Toby
          #4

          Thanks for your help. At least now i know where to configure this feature. I tried several configurations, but none removed the C++17-Warning.

          Your link says:
          -Wc++17-extensions
          Some of the diagnostics controlled by this flag are enabled by default.

          Maybe that is the real issue i am facing here...

          1 Reply Last reply
          0
          • T Offline
            T Offline
            ThomasD1991
            wrote on last edited by ThomasD1991
            #5

            Still not found anything. UPSers

            mrjjM 1 Reply Last reply
            0
            • T ThomasD1991

              Still not found anything. UPSers

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @ThomasD1991

              Hi and welcome.
              So are you Toby ?
              and its still the red alert with
              "'if' initialization statements are a C++17 extension"

              you try to kill ?

              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