cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with autocomplete

symeon
Associate II

Hello everyone,

I use CubeIDE. I have a question about this IDE on the example of STM32F103xx.

File "stm32f1xx.h" contains macros: SET_BIT, CLEAR_BIT, READ_BIT, MODIFY_REG and others.

Why doesn't the CubeIDE provide hints when using macros?

For example: GPIOC-> (dropdown list will open BRR, BSRR, CRL, CRH and others).

But if you use the macros, for example: SET_BIT(GPIOC-> hints and suggestions not working).

Tell me, please, how to fix this?

Best Regards.

Symeon Zapsis

1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Guru

That's just how Eclipse works. Macros are messy.

See

https://stackoverflow.com/questions/34243496/eclipse-doesnt-show-parameter-names-for-macro-expansion

https://www.eclipse.org/forums/index.php/t/75693/

If you feel a post has answered your question, please click "Accept as Solution".

View solution in original post

5 REPLIES 5
TDK
Guru

That's just how Eclipse works. Macros are messy.

See

https://stackoverflow.com/questions/34243496/eclipse-doesnt-show-parameter-names-for-macro-expansion

https://www.eclipse.org/forums/index.php/t/75693/

If you feel a post has answered your question, please click "Accept as Solution".
symeon
Associate II

Thank you for your answer.

So there is no solution for this problem?

TDK
Guru

Given that it was reported 14 years ago and hasn't changed, I do not see it changing in the future.

You can report it to the Eclipse team again, but unlikely ST is going to rewrite that part of the underlying Eclipse framework.

If you feel a post has answered your question, please click "Accept as Solution".
Piranha
Chief II

Preprocessor definitions are problematic for all IDEs. The only IDE I know, where it actually works, is Visual Studio.

symeon
Associate II

Thank you for your answers!