Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

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

    Tools
    3
    8
    5290
    Loading More Posts
    • 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
      Violet Giraffe last edited by

      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 Reply Quote 0
      • S
        savva.surenkov last edited by

        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 Reply Quote 0
        • V
          Violet Giraffe last edited by

          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 Reply Quote 0
          • S
            savva.surenkov last edited by

            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 Reply Quote 0
            • V
              Violet Giraffe last edited by

              Yep, that's exactly what I did.

              1 Reply Last reply Reply Quote 0
              • V
                Violet Giraffe last edited by

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

                1 Reply Last reply Reply Quote 0
                • A
                  andrep last edited by

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

                  1 Reply Last reply Reply Quote 0
                  • V
                    Violet Giraffe last edited by

                    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 Reply Quote 0
                    • First post
                      Last post