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: Use of templates in c code?


On Wed, Feb 13, 2013 at 5:47 AM, Diego Novillo <dnovillo@google.com> wrote:
> On Wed, Feb 13, 2013 at 8:31 AM, Alec Teal <a.teal@warwick.ac.uk> wrote:
>> On 13/02/13 12:39, Richard Biener wrote:
>>>
>>> On Wed, Feb 13, 2013 at 1:31 PM, Alec Teal <a.teal@warwick.ac.uk> wrote:
>>> It's just a filename ... we compile it with a C++ compiler.
>>>
>>> Richard.
>>
>> I feel silly now, why not use .cpp? SVN's move not good enough?
>> (or is it just because no one could be bothered?)
>
> The latter.  Perhaps we should start renaming the files.  It will help
> with this confusion and it will also be useful for tools like editors
> and such.
>
> Richi, should we wait for stage 1 to re-open to do a round of mass renames?

I have no opinion on whether it is better to rename files now or later.

I do think it is better to rename the files at some point.

I would vote for renaming to an extension of ".cc".

Other options are ".C", ".cp", ".cpp", ".cxx", ".c++", ".CPP" (from
gcc/cp/lang-specs.h).

Ian


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