I'm looking at a doxygen code example and seeing the following.
/**
@file test.h
@brief Define helper functions
$Id: test.h,v 1.10 2012/10/10 10:10:10 author Exp $
*/
Can anyone explain what does $Id: do here?
Thanks
I'm looking at a doxygen code example and seeing the following.
/**
@file test.h
@brief Define helper functions
$Id: test.h,v 1.10 2012/10/10 10:10:10 author Exp $
*/
Can anyone explain what does $Id: do here?
Thanks
That's not a doxygen line at all. That's a source-control command character telling it to substitute in version information so you can see in the source which committed version you're working with. See http://www.badgertronics.com/writings/cvs/keywords.html
$Id: $
syntax is used by RCS, CVS, and (optionally) SVN. Yes, you add $Id: $
, or just $Id$
, to your source file before checking it in; checking it out automatically expands it. –
Octameter © 2022 - 2024 — McMap. All rights reserved.
,v
looks suspiciously like a CVS file identifier. I haven't used CVS for years and years though, so I don't have any repositories left to check! Have a look at the top of this file for a similar example. – Etom