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

Dmitri Gribenko gribozavr at gmail.com
Sun Jan 27 13:22:55 PST 2013


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"
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