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. [solved] Creator doesn't underline semantic errors
Forum Update on Monday, May 27th 2025

[solved] Creator doesn't underline semantic errors

Scheduled Pinned Locked Moved Qt Creator and other tools
creator semanti
4 Posts 3 Posters 1.5k 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.
  • A Offline
    A Offline
    Andreas J
    wrote on 18 May 2015, 12:54 last edited by Andreas J
    #1

    I'm not getting "Semantic errors and warnings are underlined in olive" in the editor.

    In the following I'd expect InexistentType and inexistentMethod to render with olive-colored underline:

    int main(int argc, char *argv[])
    {
        InexistentType bla;
        bla.inexistentMethod();
        return 0;
    }
    

    Instead both words render in black with no underline. Unused variables argc and argv are correctly underlined. If I add code to define the type and the method, InexistentType turns purple while inexistentMethod remains black.

    Is this the expected behavior of Qt Creator (3.0.1, 64-bit, gcc 4.8.3, centos 7) ?

    Or could I be missing some setting or package?

    Looking at http://doc.qt.digia.com/qtcreator-2.4/creator-checking-code-syntax.html I can see this used to work (in version 2.4).

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 18 May 2015, 20:55 last edited by
      #2

      Hi and welcome to devnet,

      Looks strange indeed, can you test with the latest version of Qt Creator (currently 3.4) ?

      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
      • K Offline
        K Offline
        koahnig
        wrote on 18 May 2015, 21:34 last edited by
        #3

        @SGaist @Andreas-J
        here is a link to the latest documentation

        It does not work in my version either Qt creator 3.1.2 on Win7 64 bit.
        Actually I cannot recall to have seen such a syntax high-lighting working.

        Vote the answer(s) that helped you to solve your issue(s)

        1 Reply Last reply
        0
        • A Offline
          A Offline
          Andreas J
          wrote on 19 May 2015, 07:58 last edited by
          #4

          Thanks. My colleague just tried on 3.4 and it's the same (i.e. no underline on undefined types or methods).

          However, he managed to get it working with the Clang code model:

          • Help -> About Plugins... -> C++ -> enable ClangCodeModel
          • Tools -> Options... -> C++ -> Code Model -> C++ -> select Clang

          He then gets red underline on undefined symbols.

          I guess I'll just have to upgrade then.

          1 Reply Last reply
          0

          1/4

          18 May 2015, 12:54

          • Login

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