2024-08-30 2:11 AM
Hello,
STM32CubeIDE.
Is it possible to show hints (description of the function, description of the parameters of the function, description of the return value) when calling function?
I made this function (see Figure 1) and made documenting comment. When I calling this function or I hover the cursor over the function name a tooltip with the function code pops up, but I want to see description of the function (@brief parameter from documenting comment, see Figure 1).
Figure 1
Solved! Go to Solution.
2026-04-17 10:35 AM
Doxygen is the C equivalent. Try with Doxygen - styled comments. This functionality comes from Eclipse CDT. If it doesn't work, check documentation & references on the Eclipse CDT.
2026-04-17 3:35 PM
@Pavel A. wrote:Doxygen is the C equivalent. Try with Doxygen - styled comments. This functionality comes from Eclipse CDT. If it doesn't work, check documentation & references on the Eclipse CDT.
I'm not quite sure what you had in mind. Still, Doxygen is an external tool intended to generate standalone documentation (such as HTML or RTF files) from the Javadoc or Markstyle-style documentation comments in the source files. It has nothing to do with the Eclipse CDT except for the front-end plugin Eclox for easier configuration of the process of generation.
But hey, I don't know everything, so maybe you can share and point out particular parts of the Eclipse CDT documentation?
2026-04-20 2:09 PM
@Artur Laskowski I am not an expert in Eclipse but it seems like the editor can recognize comments in certain style, and use these comments for functions and other definitions pop-ups. This works similarly for Java and C/C++. It doesn't render documentation like the doxygen itself does. It's sufficient to detect the docu-comments /// or /** immediately before the function definition.
2026-04-20 11:12 PM
2026-04-21 8:21 AM - edited 2026-04-21 8:56 AM
@Artur Laskowski do you see in CubeIDE unformatted function comment like below?
This is behavior of Eclipse. CubeIDE just inherits it from the Eclipse CDT code base. It can be improved, anyone is welcome to contribute.
The source seems to be in org.eclipse.cdt.internal.ui.text.hover.CDeclarationHover; getHoverInfo():
2026-04-22 4:42 AM
Oh, I know that is inherited from Eclipse CDT. And I know that ST may resolve it on its own, similarly to some other issues inherited from the base Eclipse.
The ST is the publisher of this particular software, and I think they could do it by themselves.