[cfe-commits] r173626 - Comment parsing: attach any tag type's documentation to its typedef if latter

jahanian fjahanian at apple.com
Mon Jan 28 09:01:51 PST 2013


On Jan 27, 2013, at 1:22 PM, Dmitri Gribenko <gribozavr at gmail.com> wrote:

> On Sun, Jan 27, 2013 at 11:18 PM, Dmitri Gribenko <gribozavr at gmail.com> wrote:
>> +struct Foo1 {
>> +  int iii;
>> +};
>> +/** About Foo1T */
>> +typedef struct Foo1 Foo1T;
>> +// FIXME: we don't attach this comment to 'struct Foo1'
>> +// CHECK: TypedefDecl=Foo1T:[[@LINE-2]]:21 (Definition) {{.*}} FullCommentAsHTML=[<p class="para-brief"> About Foo1T </p>] FullCommentAsXML=[<Typedef file="{{[^"]+}}annotate-comments-typedef.m" line="[[@LINE-2]]" column="21"><Name>Foo1T</Name><USR>c:annotate-comments-typedef.m@{{[0-9]+}}@T at Foo1T</USR><Declaration>typedef struct Foo1 Foo1T</Declaration><Abstract><Para> About Foo1T </Para></Abstract></Typedef>]
> 
> Fariborz,
> 
> Please note this FIXME.  I don't think it is easily possible to
> support this now.  The issue is that when we are looking at the
> struct, we don't see any documentation, and we can not "fix it up"
This is odd style. I wouldn't be worried about it for now.

- Fariborz

> later.
> 
> Dmitri
> 
> -- 
> main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
> (j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/




More information about the cfe-commits mailing list