Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-17295

Changes in header file not taken into account by clang code model

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • Qt Creator 4.2.0-rc1
    • Qt Creator 4.2.0-beta1
    • C/C++/Obj-C++ Support
    • None
    • Windows 10

    Description

      Changes in header file not taken into account by clang code model

      How to reproduce:

      1) Create new widgets project
      2) Add a signal handler/slot using designer
      3) The handler is implemented but the code in the cpp file (form.cpp)
      will never get valid. Apparently the code uses an older version of form.h.

      Step 2 does is not necessarily related to the designer. Adding a method manually also triggers the issue.

      After saving the header file (form.h) the issue seems to be gone.
      If I close and reopen the project I see a similar issue for added methods in form.cpp until I save form.h once.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kosjar Nikolai Kosjar
            thohartm Thomas Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes