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

Qt Creator 5's code model does not respect QMAKE_EXTRA_COMPILERS [Regression]

    XMLWordPrintable

Details

    • Linux/X11
    • 8c86b9bca17da149bb6668960af2da8f13d88f93 2085e2ad0bab2883b951bd9bceee45d9a8aee529 (qt-creator/qt-creator/5.0)

    Description

      In our project we use custom static code generator, that reads pseudo headers files and produces real header and source files. For that we use QMAKE_EXTRA_COMPILERS. I attached a small example of such project with generator being simple cp command.

      Compilation works fine, but if you open generated source file in qtcreator the syntax highlighting doesn't work. Include paths don't work. And since that the whole code model breaks and sources are unnavigable. 

      Repro:

      1. Open the attached project
      2. Compile it
      3. In qtcreator click open file, navigate to build directory and select extra_foo.cpp

      Expected:

      1. Syntax highlighting works
      2. Code model works
      3. Source file in navigable

      Actual:

      1. Syntax highlighting doesn't work
      2. Code model doesn't work
      3. Source file is unnavigable

       

      This worked fine in qtcreator 4.15.2

      Attachments

        1. qtcreator_compilers_bug.zip
          1 kB
          Kamil Ostaszewski
        2. Screenshot_20211015_125608.png
          189 kB
          Kamil Ostaszewski
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kandeler Christian Kandeler
            kostaszewski Kamil Ostaszewski
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes