Renaming .c files to .cc?

Christian Biesinger via gdb
Tue Dec 10 22:19:00 GMT 2019

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/)

- 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.


More information about the Gdb mailing list