Details
-
Suggestion
-
Resolution: Incomplete
-
Not Evaluated
-
None
-
None
-
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
- relates to
-
QTCREATORBUG-21407 Allow switching between build-in and Clang Code Model per project
- Closed