[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

0001-Add-support-for-c-file-extension.patch (795 Bytes)

Hi,

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

Thanks,
Seth Cantrell

0001-Add-support-for-c-file-extension.patch (795 Bytes)

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