Re: srecode can't work well in c/cpp
"Eric M. Ludlam" <[email protected]>
| Newsgroups | gmane.emacs.cedet |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I typed in your code from the example, and on Linux, I got the following
output:
-----------------
/**
* @name NeedReload - Status of loads in of type BOOL
* @param sSpeed - s Speed
* @param pstUfoPos - pst Ufo Pos
* @return BOOL
*/
BOOL CRMPmmMatching::NeedReload(SHORT sSpeed,
GeoLocation_t* pstUfoPos)
{
}
-------------------
which is what I think you were asking for.
Of course, that is also the only thing in my C++ file.
I suspect you inserted the template "doxygen-function" directly. The
best way to insert comments is to use the "Generate > Comment" menu
item, which is bound to C-c / C (a capital C). That will look at the
current context (ie - if the mouse is in a function or variable) and
insert the correct type of comment.
I have not personally tried out the doxygen comments in production code,
so if you have tweaks to the templates, or the "programmer to english"
translator, let me know and we could patch them to be better. In
particular, I see the typical Windows notation of "sSpeed" where "s"
means short was completely missed. I'm sure the translator could be
patched up for those rules if someone were to take a whack at it. (All
the code for translations are in srecode/document.el)
Enjoy
Eric
On 09/14/2014 12:50 PM, zijianyue wrote:
> hi:
> as the pic below shows , when i insert a doxygen-function ,it can't work
> well,
> the param doesn't appear and it generate some warning .please confirm it.
> p.s : in cedet-1.1 ,the result is the same.
> in c files ,the result is the same
>
>
> *the code in my init file to load cedet as below:*
> ;; Load CEDET.
> ;; (load-file "d:/emacs/site-lisp/cedet-1.1/common/cedet.el")
>
> (load-file "D:/cedet-master/cedet-devel-load.el")
> (load-file "D:/cedet-master/contrib/cedet-contrib-load.el")
>
> ;; cedet inside
> (semantic-mode 1)
> (global-ede-mode 1)
> (global-srecode-minor-mode 1)
> (global-cedet-m3-minor-mode 1)
> (global-semantic-decoration-mode 1)
> ;; (global-semantic-idle-summary-mode 1)
> (global-semantic-stickyfunc-mode 1)
> ;; (global-semantic-tag-folding-mode 1)
>
> *my cedet version and emacs version as below:*
>
> GNU Emacs 24.3.1 (i386-mingw-nt6.1.7601) of 2013-03-18 on MARVIN
>
> CEDET Version: 2.0
> Requested File Loaded
> Package Version Version Version
> ----------------------------------------------------------
> cedet: 2.0 ok ok
> eieio: 1.4 ok ok
> semantic: 2.2 ok ok
> srecode: 1.2 ok ok
> ede: 1.2 2.0 2.0
> cogre: 1.2 ok Not Loaded
> cedet-contrib: 1.2 ok Not Loaded
>
>
> C-h f cedet-version RET
> for details on output format.
> ------------------------------------------------------------------------
> zijianyue
>
>
>
> ------------------------------------------------------------------------------
> Want excitement?
> Manually upgrade your production database.
> When you want reliability, choose Perforce
> Perforce version control. Predictably reliable.
> http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
>
>
>
> _______________________________________________
> Cedet-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/cedet-devel
------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce.
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
Cedet-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cedet-devel