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