cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeIDE editor little issue

iTTy
Associate III

Hello everyone,

I would like just to report a little issue in syntax coloring and self completion in STM32CubeIDE editor.

The problem happen when I declare a new function pointer using the typedef:

// Request handler function pointer:
typedef b08t (*pfHTTPreqh)(typ_httpsState *pHTTPsState, struct tcp_pcb *pcb, struct pbuf *p);

Basically, b08t is in turn a typedef of an unsigned char used as boolean.

The problem is that, after the function pointer type definition (code above), all b08t variables in files including the header, are recognized as function pointers.

Moreover, when I try to use the editor self completion to get a b08t variable name (ctrl+space), it suggest to me a "function call" instead of a variable:

iTTy_0-1712823000689.png

It seems the editor misunderstand the function pointer typedef, but the code compile and work correctly.

As already told, this is just a little issue in a very particular case, but some time it leads to some "typing mistake" and confusion in code reading.
It could be nice to fix it first or later!😁

Anyway, I'm experiencing this behavior in CubeIDE 1.13.2 and 1.14.1.

I've not tested the newest 1.15.0 version yet.

iTTy

 

 

0 REPLIES 0