[PATCH] Add support for "c++" file extension

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] Add support for "c++" file extension

Seth Cantrell
Hello,

Here's a small patch to add support for the file extension 'c++'.

I'm wondering if there would be any support for the idea of using platform specific APIs in the Driver to identify input files' types. For example, on Mac OS X a function 'types::ID HostInfo::lookupTypeForFile(const char *Filename)' might call into Mac OS X's APIs for identifying the file's type.

Thanks,
Seth Cantrell



_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev

0001-Add-support-for-c-file-extension.patch (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Fwd: [PATCH] Add support for "c++" file extension

Seth Cantrell
Hi,

Is there any interest in these changes? Is the patch in an acceptable format?

Thanks,
Seth Cantrell

Begin forwarded message:

> From: Seth Cantrell <[hidden email]>
> Date: June 19, 2010 4:39:12 AM EDT
> To: [hidden email]
> Subject: [PATCH] Add support for "c++" file extension
>
> Hello,
>
> Here's a small patch to add support for the file extension 'c++'.
>
> I'm wondering if there would be any support for the idea of using platform specific APIs in the Driver to identify input files' types. For example, on Mac OS X a function 'types::ID HostInfo::lookupTypeForFile(const char *Filename)' might call into Mac OS X's APIs for identifying the file's type.
>
> Thanks,
> Seth Cantrell
>
>

>


_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev

0001-Add-support-for-c-file-extension.patch (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] Add support for "c++" file extension

Douglas Gregor
In reply to this post by Seth Cantrell

On Jun 19, 2010, at 1:39 AM, Seth Cantrell wrote:

> Hello,
>
> Here's a small patch to add support for the file extension 'c++'.

Thanks, committed as r106602.

> I'm wondering if there would be any support for the idea of using platform specific APIs in the Driver to identify input files' types. For example, on Mac OS X a function 'types::ID HostInfo::lookupTypeForFile(const char *Filename)' might call into Mac OS X's APIs for identifying the file's type.


Personally, I don't see much benefit to this, since a compiler isn't a user-level application.

        - Doug
_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev