[cfe-commits] r140587 - in /cfe/trunk: include/clang-c/Index.h tools/libclang/CXCursor.cpp tools/libclang/libclang.exports

NAKAMURA Takumi geek4civic at gmail.com
Mon Sep 26 19:18:26 PDT 2011


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...

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