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

Dmitri Gribenko gribozavr at gmail.com
Wed Jan 23 07:23:24 PST 2013


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.

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>*/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: getCursorDecl-return-const-Decl-v1.patch
Type: application/octet-stream
Size: 91075 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130123/5aad435d/attachment.obj>


More information about the cfe-commits mailing list