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 Clang Code Model problems collection
QtWS25 Last Chance

Qt Creator Clang Code Model problems collection

Scheduled Pinned Locked Moved Qt Creator and other tools
qt creatorclang
36 Posts 17 Posters 18.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.
  • J Offline
    J Offline
    J.Hilk
    Moderators
    wrote on 22 Mar 2019, 09:51 last edited by J.Hilk
    #7

    One more for the list, turning clang code model off helped here as well

    https://forum.qt.io/topic/100408/qt-creator-strange-behaviour-how-to-fix-it/10


    Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


    Q: What's that?
    A: It's blue light.
    Q: What does it do?
    A: It turns blue.

    1 Reply Last reply
    2
    • R Offline
      R Offline
      rudag
      wrote on 4 Apr 2019, 12:30 last edited by
      #8

      I had the same problem as this one:

      https://forum.qt.io/topic/74385/qt-creator-autocomplete-not-updating-for-new-ui-widgets-until-re-compile/4

      And I solved it by turning clang code model off.

      A 1 Reply Last reply 4 Apr 2019, 17:02
      1
      • R rudag
        4 Apr 2019, 12:30

        I had the same problem as this one:

        https://forum.qt.io/topic/74385/qt-creator-autocomplete-not-updating-for-new-ui-widgets-until-re-compile/4

        And I solved it by turning clang code model off.

        A Offline
        A Offline
        aha_1980
        Lifetime Qt Champion
        wrote on 4 Apr 2019, 17:02 last edited by
        #9

        Hi @rudag, thanks for your comment.

        I think this specific bug has been fixed recently. Which version did you try?

        Qt has to stay free or it will die.

        R 1 Reply Last reply 8 Apr 2019, 12:47
        0
        • A aha_1980
          4 Apr 2019, 17:02

          Hi @rudag, thanks for your comment.

          I think this specific bug has been fixed recently. Which version did you try?

          R Offline
          R Offline
          rudag
          wrote on 8 Apr 2019, 12:47 last edited by
          #10

          @aha_1980

          4.8.2 (4.8.0)
          I just updated Qt Creator

          1 Reply Last reply
          0
          • M Offline
            M Offline
            Maxxii
            wrote on 13 Apr 2019, 21:22 last edited by
            #11

            I had issue with autocompetion of inherited function parameters here:
            https://forum.qt.io/topic/101748/autocompletion-doesn-t-suggest-function-parameters-inherited-from-parent-class

            And it is solved by turning off clang code model.

            A 1 Reply Last reply 15 Apr 2019, 07:42
            0
            • M Maxxii
              13 Apr 2019, 21:22

              I had issue with autocompetion of inherited function parameters here:
              https://forum.qt.io/topic/101748/autocompletion-doesn-t-suggest-function-parameters-inherited-from-parent-class

              And it is solved by turning off clang code model.

              A Offline
              A Offline
              aha_1980
              Lifetime Qt Champion
              wrote on 15 Apr 2019, 07:42 last edited by
              #12

              Hi @Maxxii,

              thanks for adding your problem here. I think your specific problem can be turned in a report at bugreports.qt.io - as we already have a reproducible example. Would you mind doing that? (and adding a link here?)

              Thanks!

              Qt has to stay free or it will die.

              1 Reply Last reply
              0
              • M Offline
                M Offline
                Maxxii
                wrote on 15 Apr 2019, 15:42 last edited by
                #13

                @aha_1980 Actually, I made a bug report even before making that thread ;) And then decided to ask on forums to be sure. It's here. I also added comment to this bug, noticing it is solved by turning off clang code model.

                1 Reply Last reply
                1
                • A Offline
                  A Offline
                  aha_1980
                  Lifetime Qt Champion
                  wrote on 27 Apr 2019, 09:55 last edited by
                  #14

                  https://forum.qt.io/topic/102198/many-incomprehensible-errors looks like another candidate...

                  Qt has to stay free or it will die.

                  1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    aha_1980
                    Lifetime Qt Champion
                    wrote on 30 Apr 2019, 03:51 last edited by
                    #15

                    https://forum.qt.io/topic/102266/autocomplete-on-a-hello-world-basic-project-doesn-t-works/4

                    Qt has to stay free or it will die.

                    1 Reply Last reply
                    0
                    • A Offline
                      A Offline
                      aha_1980
                      Lifetime Qt Champion
                      wrote on 1 May 2019, 05:02 last edited by
                      #16

                      https://forum.qt.io/topic/102272/using-qt-project-code-with-earlier-versions/10 also looks like a candidate

                      Qt has to stay free or it will die.

                      1 Reply Last reply
                      0
                      • A Offline
                        A Offline
                        aha_1980
                        Lifetime Qt Champion
                        wrote on 20 May 2019, 17:31 last edited by
                        #17

                        And another one: https://forum.qt.io/topic/102999/strange-variable-has-incomplete-type-and-forward-declaration-of-qapplication-issues

                        Qt has to stay free or it will die.

                        J 1 Reply Last reply 21 May 2019, 05:08
                        0
                        • A Offline
                          A Offline
                          aha_1980
                          Lifetime Qt Champion
                          wrote on 21 May 2019, 05:00 last edited by
                          #18

                          And one more: https://forum.qt.io/topic/103006/linux-qtcreator-and-qt5-9-6-compiling-gnu-c-libraries

                          Qt has to stay free or it will die.

                          1 Reply Last reply
                          0
                          • A aha_1980
                            20 May 2019, 17:31

                            And another one: https://forum.qt.io/topic/102999/strange-variable-has-incomplete-type-and-forward-declaration-of-qapplication-issues

                            J Offline
                            J Offline
                            J.Hilk
                            Moderators
                            wrote on 21 May 2019, 05:08 last edited by
                            #19

                            @aha_1980

                            And another one: https://forum.qt.io/topic/102999/strange-variable-has-incomplete-type-and-forward-declaration-of-qapplication-issues

                            oh! I run into that as well, didn't think about turning off the code model as potential solution.

                            I ended up forwarding a class instance pointer several levels up in the hierarchy ....

                            This is stupid.


                            Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


                            Q: What's that?
                            A: It's blue light.
                            Q: What does it do?
                            A: It turns blue.

                            A 1 Reply Last reply 21 May 2019, 05:19
                            1
                            • J J.Hilk
                              21 May 2019, 05:08

                              @aha_1980

                              And another one: https://forum.qt.io/topic/102999/strange-variable-has-incomplete-type-and-forward-declaration-of-qapplication-issues

                              oh! I run into that as well, didn't think about turning off the code model as potential solution.

                              I ended up forwarding a class instance pointer several levels up in the hierarchy ....

                              This is stupid.

                              A Offline
                              A Offline
                              aha_1980
                              Lifetime Qt Champion
                              wrote on 21 May 2019, 05:19 last edited by
                              #20

                              Hi @J.Hilk,

                              oh! I run into that as well, didn't think about turning off the code model as potential solution.

                              Well I don't think turning off the code model is a solution. But most of these problems collected here have in common, that Clang has parse problems in a header which then propagate in every file that is including the header.

                              Tracking down these problems, however, is a tedious task.

                              Qt has to stay free or it will die.

                              1 Reply Last reply
                              0
                              • A Offline
                                A Offline
                                aha_1980
                                Lifetime Qt Champion
                                wrote on 21 May 2019, 12:53 last edited by
                                #21

                                https://forum.qt.io/topic/103030/qt-creator-4-9-0-can-t-disable-line-annotations-ignores-option

                                Qt has to stay free or it will die.

                                A 1 Reply Last reply 7 Oct 2019, 04:08
                                0
                                • A aha_1980
                                  21 May 2019, 12:53

                                  https://forum.qt.io/topic/103030/qt-creator-4-9-0-can-t-disable-line-annotations-ignores-option

                                  A Offline
                                  A Offline
                                  aha_1980
                                  Lifetime Qt Champion
                                  wrote on 7 Oct 2019, 04:08 last edited by
                                  #22

                                  probably https://forum.qt.io/topic/107498/code-completion-is-not-working-in-qtcreator too

                                  Qt has to stay free or it will die.

                                  1 Reply Last reply
                                  0
                                  • A.A.SEZENA Offline
                                    A.A.SEZENA Offline
                                    A.A.SEZEN
                                    wrote on 7 Oct 2019, 04:48 last edited by
                                    #23

                                    probably
                                    https://forum.qt.io/topic/107332/undeclared-i̇dentifier-ve-auto-complete-problemi/2
                                    too.

                                    1 Reply Last reply
                                    1
                                    • R Offline
                                      R Offline
                                      rsacchettini
                                      wrote on 28 Jan 2020, 03:03 last edited by
                                      #24

                                      Hitting a similar issue in Qtcreatorv4.11.0 on linux x64 ubuntu18 lts with CMAKE and gcc or clang btw, the symbols parsing i.e. finding functions or type definitions does not work :

                                      1. does not work at all if not starting qtCreator in the actual CMAKE project source directory
                                      2. Always stops working regardless after a few minutes to about 1hours, requires a restart of Qtcreator after which it usually works again.

                                      Make me hate trying to convince my colleagues to migrate from Eclipse to QtCreator, I was always telling them how much more usable and snappy QtCreator is but a bug like this is not a small bug and not a good look to my colleagues currently trying it.

                                      Regards

                                      A 1 Reply Last reply 28 Jan 2020, 05:50
                                      1
                                      • R rsacchettini
                                        28 Jan 2020, 03:03

                                        Hitting a similar issue in Qtcreatorv4.11.0 on linux x64 ubuntu18 lts with CMAKE and gcc or clang btw, the symbols parsing i.e. finding functions or type definitions does not work :

                                        1. does not work at all if not starting qtCreator in the actual CMAKE project source directory
                                        2. Always stops working regardless after a few minutes to about 1hours, requires a restart of Qtcreator after which it usually works again.

                                        Make me hate trying to convince my colleagues to migrate from Eclipse to QtCreator, I was always telling them how much more usable and snappy QtCreator is but a bug like this is not a small bug and not a good look to my colleagues currently trying it.

                                        Regards

                                        A Offline
                                        A Offline
                                        aha_1980
                                        Lifetime Qt Champion
                                        wrote on 28 Jan 2020, 05:50 last edited by aha_1980
                                        #25

                                        Hi @rsacchettini,

                                        Clang is a double-sided sword. If it works, it gives you fantastic insight in your code - but if not, you often have no idea why.

                                        I'd recommend you nevertheless to start an own discussion topic here, we might be able to help you get it at least running. Can you at least work on a small example project?

                                        Also note that the CMake integration is in flow currently, so there might be regressions in .0 releases. You might want to try the last stable or the next snapshot release.

                                        Regards

                                        Edit: Ah, you alread did: https://forum.qt.io/topic/111067/symbols-parsing-and-finding-stops-working-qtcreator-v4-11-0-cmake-on-linux-x64

                                        Qt has to stay free or it will die.

                                        1 Reply Last reply
                                        1
                                        • N Offline
                                          N Offline
                                          Neil9
                                          wrote on 2 Dec 2021, 03:36 last edited by
                                          #26

                                          When I just typed a few code in a c++ project,I got an error in the editor which was " no member named 'uint64_t' in namespace 'std' ".The code are listed here:

                                          #include <iostream>
                                          #include <cstdint>
                                          using std::uint64_t
                                          

                                          I didn't think it was the code made the issue.And I didn't know how to fix it until I found this topic.Actually,I solved the problem just by disabling Clang. It was really useful.

                                          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