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

Clang code model breaks coloring of most external header files

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Not Evaluated
    • None
    • Qt Creator 4.8.0-rc1
    • C/C++/Obj-C++ Support
    • None
    • Windows
    • Windows

    Description

      Using putting headers in precompiled header file make them lose coloring in editor

      Without Clang code model everything is good:

      Sample project can be found in attached Test.7z - this is just newly created widget app where 

      precomp.h file was used for as percompiled header for all cpp files ... so only 1 line

      PRECOMPILED_HEADER = precomp.h 

      was added to pro-file.

      Detailed actions : Open main.cpp in editor, put cursor on QString in line "QString s;" and with right click do "Follow Symbol Under Cursor". Qt's qstring.h file will open and during 1-2 secs you will see it is colored ... but after that it became "grayed colored" ... I expect that several seconds is the ammount of time needed to update Clang code model (only my assumption)

      Turning off clang code model remove this strange effect.

      Attachments

        1. Test.7z
          1 kB
        2. Screenshot2.png
          Screenshot2.png
          102 kB
        3. Screenshot1.png
          Screenshot1.png
          131 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kosjar Nikolai Kosjar
            progrev Prav Ogrev
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes