2026-01-13 12:09 AM
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:
The PAR_SET macro is defined as follows:
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