cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeIDE Indexer: False Positive Syntax Error with C11 _Generic

zmiga
Associate II

Hello everyone,

I am facing an issue with the STM32CubeIDE V1.17.0 indexer, where it highlights a syntax error when using the C11 _Generic primitive. Due to company project policies, I cannot upgrade to a newer version of the IDE at this time, so I need to find a solution or workaround for V1.17.0.

The indexer flags the code as a "Syntax error" as shown in the attached image:

zmiga_0-1768291216552.png

The PAR_SET macro is defined as follows:

zmiga_1-1768291243496.png

 

Key details:

  • There are no missing includes or path issues.

  • The code compiles successfully without any errors or warnings (GCC is happy).

  • Runtime performance is intact, and the macro functions exactly as expected.

The problem seems to be strictly with the indexer being unable to parse the C11 _Generic keyword correctly. Has anyone encountered this or found a way to "hint" the correct syntax to the indexer?

Any suggestions are greatly appreciated!

Best regards, Žiga

0 REPLIES 0