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

Create code highlighting depends on a selected toolchain && architecture

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Reported
    • Priority: Not Evaluated
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: C/C++/Obj-C++ Support
    • Labels:
      None

      Description

      As the QtC has support for the 'bare-metal' compilers (like IAR, KEIL, SDCC), then it would be cool ho have a right code highliting. For example, the MCU architecture 8051 contains a special pre-defined keywords (at, code, xdata, idata, sfr, sbit and etc), which are used for a concrete purposes. Each 'bare-metal' compiler (KEIL, SDCC, IAR EW) for this architecture has a bit different interpretations for this keywords (e.g.

      at
      

      vs

      _at_
      

      vs

      __at
      

      , and etc). So, currently, if we use the QtC for a 'bare-metal' projects, then this keywords are highlighted as "unknown" or "erroneous".

      So it would be great to have some QtC API to add a support for an 'extra' keywords. At least, it can be done (at beginning), for the 'internal' non-clang engine.

      For example, it can be inside of a QtC toolchain class, which will has an additional methods which return a list of an extra-keywords. In this case, the 'highlighting' engine will be take this extra-keywords from the current toolchain (any suggestion are welcome).

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              kandeler Christian Kandeler
              Reporter:
              kuzulis Denis Shienkov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes