Renaming .c files to .cc?

Simon Marchi simark@simark.ca
Wed Dec 11 02:24:00 GMT 2019


On 2019-12-10 5:18 p.m., Christian Biesinger via gdb wrote:
> Hello all,
> 
> I was wondering what people's thoughts are on renaming the .c files to
> .cc, since they are in fact C++ code? (Only for files under gdb/)
> 
> Advantages:
> - Easier for newcomers to see that the code is, in fact, C++
> - Editors will syntax highlight C++ keywords w/o having to be told
> that these files are C++
> 
> On IRC it was mentioned that git may have issues with renames like
> that but I have found that "git log --follow" and such are doing a
> good job with that, at least as long as the same commit doesn't change
> the file too much while it is renamed, which I wouldn't expect to be a
> problem here.
> 
> Thoughts?
> Christian

Given that git makes it possible to browse the history across the file rename,
I would vote for renaming, so that we are not stuck with this oddity for eternity.

Simon



More information about the Gdb mailing list