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

Predefined macros defined for a custom compiler are not completed and highlighted

    XMLWordPrintable

Details

    • a40d2ea7057ab7e17b252b2779bbf3a3c9d06cec (qt-creator/qt-creator/4.13)

    Description

      Toolchain Defines are not passed to the editor code model. Defines are correctly visible in C++ Code Model Inspector but the editor doesn't highlight nor code complete them.

       
      Steps to reproduce:

      1. Add custom C or C++ compiler from Options -> Kits -> Compilers tab
      2. Add predefined macros for the compiler
      3. Create a new kit or switch any older kit to use the custom compiler
      4. Create a new project that uses the kit with the custom compiler
      5. Try to use the predefined macro in any C or C++ source file

      Expected result:

      1. The predefined macro is correctly highlighted and code completed in the editor.

      Actual result:

      Issue occurs with both CMake and QMake projects.

      I have only tested with 4.12.4, but probably affects more versions.  This feature worked earlier (at least some time last year) so this is regression.

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            latexi95 Lassi Hämäläinen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes