cancel
Showing results for 
Search instead for 
Did you mean: 

C23 syntax highlighting in STM32CubeIDE (e.g. constexpr)

A.D.
Senior

The STM32 toolchain based on gcc 13.3 already supports a lot of C23 features, e.g. constexpr. This is really awesome.

But the current version of CubeIDE seems not to be able yet to parse these new features, so syntax checking / highlighting / code linking breaks.

Is there any simple workaround for this? Or is there information available, whether the next version of CubeIDE will update this?

2 REPLIES 2
Andrew Neil
Super User

@A.D. wrote:

But the current version of CubeIDE seems not to be able yet to parse these new features, so syntax checking / highlighting / code linking breaks.


Indeed, the syntax highlighting in the editor is performed by CubeIDE (ie, Eclipse) - not the toolchain - so doesn't (yet) support C23:

See this recent thread: Defining enum type compiles ok, but STM32CubeIDE flags syntax error.

But that shouldn't affect linking.

Please give more details of the link issues you're seeing?

 


@A.D. wrote:

Is there any simple workaround for this? 


Does this help ?

 


@A.D. wrote:

Or is there information available, whether the next version of CubeIDE will update this?


As noted in that other thread, it's an Eclipse issue rather than specifically CubeIDE - so I guess Eclipse fora would be the place to find such info?

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.

@Andrew Neil wrote:
But that shouldn't affect linking.
Please give more details of the link issues you're seeing?

Yes you are right, it was a wrong formulation used by me: Not actual code linking is breaking but the feature of the IDE to link a variable or constant to the place of definition by ctrl + mouse click.

The other thread you linked (no pun intended) describes exactly the same situation. As CubeIDE is based on Eclipse, I figured some ST member might already know if the next CubeIDE version will use a newer Eclipse build with C23 support in the language server.