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

Dmitri Gribenko gribozavr at gmail.com
Wed Jan 23 09:27:40 PST 2013


On Wed, Jan 23, 2013 at 6:40 PM, Argyrios Kyrtzidis <akyrtzi at gmail.com> wrote:
> 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.

Thank you!  Committed r173272, r173274, r173277, r173278.

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