This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: File extensions for C++ source?
- From: Nathanael Nerode <neroden at twcny dot rr dot com>
- To: aspiesrule at mcleodusa dot net
- Cc: gcc at gcc dot gnu dot org
- Date: Fri, 28 Nov 2003 22:43:55 -0500
- Subject: Re: File extensions for C++ source?
Do you think that we can change the .C and .cc extensions on C++ source
files to .cpp or .c++?
Lucas
GCC already recognizes all these forms as being C++ source files.
Changing filenames in CVS is a big pain. So why should we do this?
If we do standardize, we should *talk* about it first.
.C: confusion with .c on case-insensitive systems
.cc: possible confusion with 'cc' program.
.cpp: confusion with 'cpp' program and files intended for it
.c++: many systems dislike '+' in file names
.cxx: I know of no problems with this. If we changed en masse to
anything, this and '.cc' are the only ones I'd even consider.