This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: New file extension


On Tue, Jul 30, 2013 at 4:04 AM, Marek Polacek <polacek@redhat.com> wrote:
> On Mon, Jul 29, 2013 at 10:08:26PM +0200, Martin Jambor wrote:
>> I do not care very much but I disagree.  Having some files with .c
>> suffix and some with .cc suffix would imply some sort of difference
>> where there is going to be none.
>
> Yeah -- this sort of discrepancy I don't like either.  In gcc/, we
> have 362 .c files and 0 .cc files, so every new .cc file will step out
> of line...

Any thing *new* steps out of line for someone.
Putting C++ programs in .c file is out of line for most people,
including the newcomers that people worry about.

For many tools, including editors, .c is a C file, not a C++ file,
so you don't get the benefit of working with a C++ program.

> That might be pain for people who are used to do
> 'grep foo gcc/*.c' and suchlike.
>
>         Marek


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]