PDA

View Full Version : Use of //!



ShamusVW
30th March 2016, 09:37
Can someone tell me the use of
//! [0] in the examples supplied with Qt Creator/Qt?
If I remove the apostrophe, it becomes a standard comment, so I am thinking it is a tag of some kind.
I have searched using Google for characters like this, and cannot find a reference to them.

Thanks.

anda_skoa
30th March 2016, 10:46
That is most likely the marker for the documentation tool qdoc, i.e. to extract that as part of the API documentation.

Doxygen uses similar markers.

Cheers,
_

ShamusVW
30th March 2016, 10:58
Cool, thanks.

Radek
30th March 2016, 15:28
see https://www.stack.nl/~dimitri/doxygen/manual/docblocks.html