[cfe-commits] r140587 - in /cfe/trunk: include/clang-c/Index.h tools/libclang/CXCursor.cpp tools/libclang/libclang.exports
Argyrios Kyrtzidis
kyrtzidis at apple.com
Mon Sep 26 21:17:25 PDT 2011
On Sep 26, 2011, at 7:18 PM, NAKAMURA Takumi wrote:
> 2011/9/27 Argyrios Kyrtzidis <akyrtzi at gmail.com>:
>> Author: akirtzidis
>> Date: Mon Sep 26 19:30:30 2011
>> New Revision: 140587
> (snip)
>> --- cfe/trunk/include/clang-c/Index.h (original)
>> +++ cfe/trunk/include/clang-c/Index.h Mon Sep 26 19:30:30 2011
>> @@ -1555,6 +1555,13 @@
>> CINDEX_LINKAGE unsigned clang_equalCursors(CXCursor, CXCursor);
>>
>> /**
>> + * \brief Returns non-zero if \arg cursor is null.
>> + */
>> +static inline int clang_Cursor_isNull(CXCursor cursor) {
>> + return clang_equalCursors(cursor, clang_getNullCursor());
>> +}
>> +
>> +/**
>> * \brief Compute a hash value for the given cursor.
>> */
>> CINDEX_LINKAGE unsigned clang_hashCursor(CXCursor);
>
> Argyrios, it seems msvc does not like "inline" in C...
Fixed in r140597.
>
> tools/clang/include\clang-c/Index.h(1560): error C2054:
> tools/clang/include\clang-c/Index.h(1560): error C2085:
> tools/clang/include\clang-c/Index.h(1560): error C2143:
> tools/clang/include\clang-c/Index.h(1560): error C2085:
> tools/clang/include\clang-c/Index.h(1560): error C2143:
> (excuse me, I dropped out messages in Japanese)
>
> ...Takumi
More information about the cfe-commits
mailing list