Automatically updating header comments in C ++

This is one of the headings I found on WxWidgets, and I like it. I wonder if there is a way to insert a header like this into all my source files and keep it automatically updated? It includes two SVN properties that I know of.

/////////////////////////////////////////////////////////////////////////////
// Name:        <filename>.cpp
// Purpose:     
// Author:      <AuthorName>
// Modified by:
// Created:     $Date$
// RCS-ID:      $Id$
// Copyright:   (c) <Year> <AuthorName>
// Licence:     <licensetype>
/////////////////////////////////////////////////////////////////////////////
+3
source share
3 answers

, VCS . SCCS 1999 , RCS, Y2K ( SCCS 2 , ). , . - SO , , , ...

/*
@(#)File:           $RCSfile: stderr.c,v $
@(#)Version:        $Revision: 9.14 $
@(#)Last changed:   $Date: 2009/07/17 19:00:58 $
@(#)Purpose:        Error reporting routines
@(#)Author:         J Leffler
@(#)Copyright:      (C) JLSS 1988-91,1996-99,2001,2003,2005-09
@(#)Product:        :PRODUCT:
*/

- SCCS RCS. VCS ( RCS) $RCSfile $, $Revision $ $Date $. script, Perl script Copyright; , . script, ( - ). "" ; , - ': PRODUCT:' , ( ). , , . ( - SCCS - SCCS $RCSfile $ ..)

, , . - " VCS". - VCS, . - ( ) SCCS Atria Clearcase ( IBM Rational ClearCase). ClearCase . . , , ClearCase , SCCS. ; , , , . - , . , VCS, . , , .

, DVCS, git. , - , , SCCS, RCS ( , SCCS ), git.

, , , . - , - , , ( , , ). , DVCS.

, , - , , , , , . , , , , : PRODUCT: etc, , . , , IIUG ( Informix), SQLCMD , 90- 23- ( 86.00).

, git, , stderr.c stderr.h. , , , . , . - , , .... , , ...

, , . , - , , , , . , ( ) , .

+3

, pre-commit Subversion, , . , , , ; (, ", .." ), Subversion , , - . ?

, . (duh), , , ..: Subversion. , . , , , , , , -.

+2

, :

  • ? , ( , ).

  • .cpp , .h, . , , , , .

  • , ; //, .

  • "", "", "RCS-ID" . RCS- , , - , . , , - , MD5.

, , , :

/* Copyright 2009, Your Company Name. All right reserved. */

.

0

Source: https://habr.com/ru/post/1713407/


All Articles