Re: Renaming .c files to .cc?
Luis Machado <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <[email protected]> |
On 12/10/19 7:18 PM, 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/) I don't have strong objections to this other than it may make things slightly more tedious to 'git blame' some files, as Tromey pointed out. But i think that is excusable compared to better organization of source files, for what they really are (C++ files). > > 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++ The above items sound like reasonable pluses. > > 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 >