[cfe-commits] [PATCH] Change return type of getCursorDecl() to 'const Decl *'

Argyrios Kyrtzidis akyrtzi at gmail.com
Wed Jan 23 08:40:15 PST 2013


On Jan 23, 2013, at 7:23 AM, Dmitri Gribenko <gribozavr at gmail.com> wrote:

> Hello,
> 
> 'libclang' only examines decls, it does not change them, so it makes
> sense to change return type of getCursorDecl() to 'const Decl*'.  This
> requires quite a lot mechanical changes, so I decided to ask if we
> want such a cleanup.  If we do want this -- I will split the patch
> before committing into 2 or 3 logical chunks.

LGTM! Also I don't really see much need for the extra work to split it.

Thanks!

> 
> 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>*/
> <getCursorDecl-return-const-Decl-v1.patch>




More information about the cfe-commits mailing list