EasyClangComplete icon indicating copy to clipboard operation
EasyClangComplete copied to clipboard

Show more from Doxygen comments in a hover popup

Open ThunderSmotch opened this issue 9 years ago • 5 comments

Is this intended behaviour? If so, can we have an option to have it show all the tags like input parameters and return tags?

ThunderSmotch avatar Apr 10 '17 19:04 ThunderSmotch

Yes, this is the intended behavior as we are just a medium between a user and libclang. Libclang using a flag PARSE_INCLUDE_BRIEF_COMMENTS_IN_CODE_COMPLETION returns the brief documentation of the function. It is probably possible to show more, but it will take a lot of effort as we will need to manually parse Doxygen comments. I would like to avoid that.

I will probably think about it for some time. Maybe I am missing something now.

Also, let me link @simia whose PR originally implemented this.

niosus avatar Apr 10 '17 20:04 niosus

It is possible to get "raw comment" from cursor so we could add option to get more on demand. We are limited to what clang recognizes as comments, though.

simia avatar Apr 10 '17 20:04 simia

Ok... good news is that full comments are available effortlessly. Bad news is that they are not formatted anyhow so this must be done by the plugin (including stripping of comment characters). Maybe there is already a python lib that provides such functionality.

simia avatar Apr 12 '17 10:04 simia

I've noticed that "static" qualifier for methods is wrongly displayed before "Definition:". Additionally I think that "Declaration:" would be more appropriate. Doxygen parsing does not support "\brfief" tag and maybe support for other commands like @param etc. should be added?

simia avatar Apr 19 '17 08:04 simia

I was thinking which one to use and went for the one used by Sublime Text. But "Declaration" makes sense.

I will fix static appearance and will add "\brief" tag. The intention was not to parse full Doxygen comments. The intention was not to duplicate brief description.

niosus avatar Apr 19 '17 09:04 niosus