On Tue, Dec 4, 2012 at 5:39 PM, NAKAMURA Takumi <[email protected]> wrote:
> 2012/12/5 Dmitri Gribenko <[email protected]>:
>> Author: gribozavr
>> Date: Tue Dec  4 09:13:46 2012
>> New Revision: 169276
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=169276&view=rev
>> Log:
>> libclang: Add a function to libclang for retrieving the bit width value
>>
>> Patch by Jyun-Yan You.
>
>> Modified: cfe/trunk/tools/c-index-test/c-index-test.c
>> URL: 
>> http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/c-index-test/c-index-test.c?rev=169276&r1=169275&r2=169276&view=diff
>> ==============================================================================
>> --- cfe/trunk/tools/c-index-test/c-index-test.c (original)
>> +++ cfe/trunk/tools/c-index-test/c-index-test.c Tue Dec  4 09:13:46 2012
>> @@ -1134,6 +1134,23 @@
>>    return CXChildVisit_Recurse;
>>  }
>>
>> +/******************************************************************************/
>> +/* Bitwidth testing.                                                        
>>   */
>> +/******************************************************************************/
>> +
>> +static enum CXChildVisitResult PrintBitWidth(CXCursor cursor, CXCursor p,
>> +                                             CXClientData d) {
>> +  if (clang_getCursorKind(cursor) != CXCursor_FieldDecl)
>> +    return CXChildVisit_Recurse;
>> +
>> +  int Bitwidth = clang_getFieldDeclBitWidth(cursor);
>
> It's not C89-compliant. Fixed in r169277

Thank you for fixing this.  r167561 was done just for this specific
reason but I'm still using Makefile-based build system so it didn't
help...

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]>*/
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to