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. errors that aren't? or: diff btwn "solid red dot" error and "hollow red dot" error?
Forum Updated to NodeBB v4.3 + New Features

errors that aren't? or: diff btwn "solid red dot" error and "hollow red dot" error?

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
5 Posts 3 Posters 771 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.
  • D Offline
    D Offline
    davecotter
    wrote on last edited by
    #1

    when i build a certain file (CAudioUnicChain.cpp), i see this:
    0_1547581728280_Screen Shot 2019-01-15 at 10.52.54 AM.png
    Note the "issues" tab at the bottom shows zero issues, and the compile output shows zero issues too. yet in the editor we see errors.

    eg: "use of undeclared identifier 'CAudioUnit'" and "unknown type name AudioUnit"

    this is confusing since CAudioUnit and AudioUnit are DEFINITELY declared previously (in CAudioUnitChain.h"), with no errors shown in the header. here's another take (where it DOES show issues even though i didn't compile anything):
    0_1547581787313_Screen Shot 2019-01-15 at 11.49.28 AM.png
    and in here you can see in the header that CAudioUnit is DEFINITELY declared, and no errors in it's decl.

    i note that this confusion doesn't happen with SOLID red dot errors, only HOLLOW red dot errors.

    so what gives?

    also different question: when i go to the "Issues" tab and click the "clear" button (little broom icon), the issues STILL show in the editor window. Why is that?

    kshegunovK 1 Reply Last reply
    0
    • D davecotter

      when i build a certain file (CAudioUnicChain.cpp), i see this:
      0_1547581728280_Screen Shot 2019-01-15 at 10.52.54 AM.png
      Note the "issues" tab at the bottom shows zero issues, and the compile output shows zero issues too. yet in the editor we see errors.

      eg: "use of undeclared identifier 'CAudioUnit'" and "unknown type name AudioUnit"

      this is confusing since CAudioUnit and AudioUnit are DEFINITELY declared previously (in CAudioUnitChain.h"), with no errors shown in the header. here's another take (where it DOES show issues even though i didn't compile anything):
      0_1547581787313_Screen Shot 2019-01-15 at 11.49.28 AM.png
      and in here you can see in the header that CAudioUnit is DEFINITELY declared, and no errors in it's decl.

      i note that this confusion doesn't happen with SOLID red dot errors, only HOLLOW red dot errors.

      so what gives?

      also different question: when i go to the "Issues" tab and click the "clear" button (little broom icon), the issues STILL show in the editor window. Why is that?

      kshegunovK Offline
      kshegunovK Offline
      kshegunov
      Moderators
      wrote on last edited by
      #2

      Have a glance here.
      I personally use the "classical" code model because I find it faster, less buggy and less distracting. But that's me and my habits. Many people (greatly) appreciate the additional in-code annotations that come from the clang code model.

      Read and abide by the Qt Code of Conduct

      JKSHJ 1 Reply Last reply
      2
      • kshegunovK kshegunov

        Have a glance here.
        I personally use the "classical" code model because I find it faster, less buggy and less distracting. But that's me and my habits. Many people (greatly) appreciate the additional in-code annotations that come from the clang code model.

        JKSHJ Offline
        JKSHJ Offline
        JKSH
        Moderators
        wrote on last edited by JKSH
        #3

        To clarify @kshegunov's link, "solid" errors come from your compiler and they are only generated during compilation. "Hollow" errors come from the static code analyzer and they are generated in real time (in other words, they update while you code).

        While the real time analysis can show us errors earlier, they can also cause lags and sometimes the analyzer ends up in a "stale" state (I suspect your screenshot is suffering from this). In the case of stale errors, closing the file and re-opening it will force the analyzer to refresh, removing the wrong "hollow" error.

        If there's a disagreement between the compiler and the analyzer, always go with the compiler. If you want to disable the static analyzer altogether, turn off the Clang Code Model.

        Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

        1 Reply Last reply
        5
        • D Offline
          D Offline
          davecotter
          wrote on last edited by
          #4

          how does one turn off the clang code model? i looked and don't see it

          JKSHJ 1 Reply Last reply
          0
          • D davecotter

            how does one turn off the clang code model? i looked and don't see it

            JKSHJ Offline
            JKSHJ Offline
            JKSH
            Moderators
            wrote on last edited by
            #5

            @davecotter said in errors that aren't? or: diff btwn "solid red dot" error and "hollow red dot" error?:

            how does one turn off the clang code model? i looked and don't see it

            See @kshegunov's link

            Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

            1 Reply Last reply
            2

            • Login

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