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

Syntax highlighting broken when using PCH (precompiled header)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • Qt Creator 4.12.2
    • None
    • g++ and clang, clang code model
    • Linux/X11

    Description

      Syntax highlighting is broken when using precompiled headers. Changing C++→Code Model→Ignore precompiled headers doesn't seem to change anything.

      I've made and attached Minimal Working Example – simple CMake project – to reproduce the bug. To reproduce:

      • open the project with QtCreator
      • select a toolchain with gcc or clang
        <Syntax highlighting works good at this point>
      • build a project
        <Syntax highlighting partially work, for some files is OK, for some is not>
      • close QtCreator and run again with the same project
        <Syntax highlighting is broken at this stage>

      This bug could not be reproduced with PCH disabled (CMake's variable SAMPLE_USED_PRECOMPILED_HEADER set to OFF).

      Attachments

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

        Activity

          People

            cadam Cristian Adam
            jaskmar Mariusz Jaskółka
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes