Use of templates in c code?

Diego Novillo dnovillo@google.com
Wed Feb 13 15:06:00 GMT 2013


On Wed, Feb 13, 2013 at 9:59 AM, Ian Lance Taylor <iant@google.com> wrote:

> I have no opinion on whether it is better to rename files now or later.
>
> I do think it is better to rename the files at some point.
>
> I would vote for renaming to an extension of ".cc".

Likewise.

One problem I've noticed is that renames seem to confuse svn diff.  For example:

$ cd gcc/cp
$ svn log -r81829 cp-gimplify.c
------------------------------------------------------------------------
r81829 | dnovillo | 2004-05-13 22:29:32 -0400 (Thu, 13 May 2004) | 29 lines
[ ...]
        * cp-gimplify.c: Rename from cp-simplify.c.
[...]

$ svn diff -c81829 cp-gimplify.c
svn: Unable to find repository location for 'cp-gimplify.c' in revision 81828

Annoyingly, SVN is perfectly capable of tracking file movement in the
directory structure.

This may be a problem for archeology.  Perhaps the best approach is to
decide for an extension for new files and leave existing files with
the current extensions.


Diego.



More information about the Gcc mailing list