On Mon, Jul 2, 2012 at 5:47 PM, Jordan Rose <[email protected]> wrote:
>
> On Jul 2, 2012, at 5:40 PM, Chandler Carruth wrote:
>
> > I'd be very happy for the diagnostic text to use more specialized
> terminology when it can -- I think that makes the user experience quite a
> bit better.
> >
> > Not sure its worth having two flags though.
>
> I already made Nico do that :-) and yes, I agree about the flags. I just
> wanted to make sure we didn't end up with something exclusively C++.
> ("field", of course, is just falling back to the common denominator of C.)
"field" doesn't mean anything in C or in C++ (or, as far as I know,
Objective-C). I'm not sure whether that makes it a great choice or a
terrible choice for naming things which are either members in C, non-static
data members in C++, or ivars (and @defs) in Objective-C, but that's how we
currently use it. For instance:
<stdin>:1:28: error: field has incomplete type 'X'
struct X; @interface A { X x; } @end
^
<stdin>:1:8: note: forward declaration of 'X'
struct X; @interface A { X x; } @end
^
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits