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. Following symbols in Qt Creator broken
Forum Updated to NodeBB v4.3 + New Features

Following symbols in Qt Creator broken

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
6 Posts 2 Posters 1.9k Views 1 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
    miki151
    wrote on last edited by miki151
    #1

    I have a few issues with the 'follow symbol' functionality in Qt Creator. The first one is that if I have a variable declared as 'auto', then 'follow symbol' doesn't work on any of its members (for example when it's a struct). This issue has already been reported here: https://bugreports.qt.io/browse/QTCREATORBUG-13794

    The second is that following an enum class type jumps to the forward declaration even if the full declaration is available.

    Odly enough, autocompletion works perfectly for 'auto' variables.

    I tried debugging Qt Creator, and it seems that for jumping to variable declaration it uses a library in libs/3rdparty/cplusplus, and not libclang. Is that correct?

    Any hints on how to fix these problems in Qt Creator source code would be very welcome.

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

      Hi,

      IIRC, Qt Cteator has two code models plugin the "old one" and the recent that is clang based. You should check which is activated in your Qt Creator options.

      Hope it helps

      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
      • M Offline
        M Offline
        miki151
        wrote on last edited by
        #3

        "The Clang Code Model is enabled because the corresponding plugin is loaded".

        I assume that this means that the older code model is inactive? Are there any other settings for it other than Optiona->C++->CodeModel?

        1 Reply Last reply
        0
        • M Offline
          M Offline
          miki151
          wrote on last edited by
          #4

          I turned off the Clang Code Model plugin, and the 'follow symbol' command still works the same (in cases where it wasn't already broken before), along with 'find usages', and renaming.

          It seems that the only thing not working now is code completion. So I assume that's the only functionality that uses the clang based model.

          My question is whether it's possible to switch Qt Creator to use the clang model for all of the above and not use the 'old' model at all?

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

            Which version are you using ?

            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
            • M Offline
              M Offline
              miki151
              wrote on last edited by
              #6

              I've tried this in both 4.1 and 4.4-beta1 that I built from git a few days ago.

              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