Hello,

The attached patch implements an optimization for finding the comment
that occurs just after a given declaration.  It is based on the
observation that during parsing the comment that should be attached to
the decl is usually among the last two documentation comments parsed.

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 <[email protected]>*/

Attachment: find-comment-fast-path-v1.patch
Description: Binary data

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to