[cfe-commits] [PATCH] #import directive in MS compatibility mode
dgregor at apple.com
Wed Mar 14 21:53:54 PDT 2012
Sent from my iPhone
On Mar 14, 2012, at 9:07 PM, Aaron Ballman <aaron at aaronballman.com> wrote:
> On Wed, Mar 14, 2012 at 10:52 PM, J B <jayblanchard.cpp at gmail.com> wrote:
>> MSVC typically throws the generated .tlh (type library header) and .tli
>> (wrapper implementation) into the solution's defined intermediate
>> directory. They aren't part of the source tree unless someone explicitly
>> makes them part of the source tree.
>> It might make sense to error on #import with information to generate the
>> files with MSVC and make them permanent, and switch to #includes.
>> I believe the attributes can be ignored unless you're going to go forward
>> with this auto-determined include plan. If you do that, you'll need to pay
>> attention to the attributes implementation_only and no_implementation, as
>> they control whether there is a .tlh or .tli
> More and more I'm liking the original idea of warning the user that
> #import will not work for them and not including the binary file.
> However, I think I do still need to parse the attribute stuff (to
> ignore) for no other reason than so that the parser doesn't barf on
> the rest of the file.
> We can always revisit at a later date if we decide we want to try to
> be more constructive or creative.
> Any objections?
More information about the cfe-commits