[cfe-dev] python bindings
Sam Price
thesamprice at gmail.com
Fri Feb 22 13:18:17 PST 2013
How do I send these patches back your way when I'm done.
I want to add member offset, and expose the comment extractor also.
Sam Price
On Feb 22, 2013, at 15:08, Dmitri Gribenko <gribozavr at gmail.com> wrote:
> On Fri, Feb 22, 2013 at 10:00 PM, Sam Price <thesamprice at gmail.com> wrote:
>> Little lost on how to add the unit tests for this feature.
>> I opened up tools/c-index-test.c
>> and looked for some similar examples
>>
>> clang_getArraySize
>>
>> clang_getArrayElementType
>>
>> However I didn't see these calls in the c-index-test.c file.
>
> Unfortunately, it looks like there are no tests for these :(
>
> Patches welcome!
>
>> Am I looking at the right place? Can you provide me with an comparable unit
>> test to mimic?
>
> Please take a look at the PrintType() function. Just print one more
> chunk of information there.
>
> 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-dev
mailing list