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. Qt Creator 3.2.2: code completion not working after switching to clang code model

Qt Creator 3.2.2: code completion not working after switching to clang code model

Scheduled Pinned Locked Moved Qt Creator and other tools
8 Posts 3 Posters 5.6k 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.
  • V Offline
    V Offline
    Violet Giraffe
    wrote on last edited by
    #1

    Just activated clang model, restarted Creator and code completion does not work at all. Is this a known issue? Is there a fix?

    P. S. This is on Windows.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      savva.surenkov
      wrote on last edited by
      #2

      Did you set up clang like in "this ":http://blog.qt.digia.com/blog/2011/10/19/qt-creator-and-clang/ article?

      1 Reply Last reply
      0
      • V Offline
        V Offline
        Violet Giraffe
        wrote on last edited by
        #3

        No, I didn't see that article, thanks. I assumed it would be as easy as turning the plugin on...

        P. S. That was published 2.5 years ago. Are you sure it's still the right article to follow?

        1 Reply Last reply
        0
        • S Offline
          S Offline
          savva.surenkov
          wrote on last edited by
          #4

          Yeah, you're right, that article now isn't actual, they integrated libclang in Qt Creator. Did you enable clang code model in preferences (Options > C++ > Code Model) ?

          1 Reply Last reply
          0
          • V Offline
            V Offline
            Violet Giraffe
            wrote on last edited by
            #5

            Yep, that's exactly what I did.

            1 Reply Last reply
            0
            • V Offline
              V Offline
              Violet Giraffe
              wrote on last edited by
              #6

              Still the same issue in Creator 3.2.2 (Windows). Does clang model work for anyone?

              1 Reply Last reply
              0
              • A Offline
                A Offline
                andrep
                wrote on last edited by
                #7

                Sure, works for me (on Linux), is more accurate but slower than the build-in code model.

                1 Reply Last reply
                0
                • V Offline
                  V Offline
                  Violet Giraffe
                  wrote on last edited by
                  #8

                  My main problem with QtCreator model is that it doesn't understand auto, does the clang model (I assume so)?
                  Does clang model work for anyone on Windows?

                  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