简体   繁体   中英

some doubts about the style of C code comments

I have some doubts about the style of C code comments. like this:

/* \brief Creates a new shm pcm */

sometimes it like this:

/* \!brief Creates a new shm PCM */

What is the difference between the "\brief" and "\!brief"

Those are comments meant for DoxyGen , a system to generate documentation from the source code.

For the compiler, there is absolutely no difference at all.

DoxyGen expects /*! */ /*! */ and /** */ to flag that the comments are meant for it, see the documentation .

As albert mentioned, it looks like that in src/pcm/pcm.c some years back someone confused /*. \brief... /*. \brief... with /* \!brief

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM