[cfe-commits] r140597 - in /cfe/trunk: include/clang-c/Index.h tools/libclang/CXCursor.cpp tools/libclang/libclang.exports
Argyrios Kyrtzidis
akyrtzi at gmail.com
Mon Sep 26 21:14:36 PDT 2011
Author: akirtzidis
Date: Mon Sep 26 23:14:36 2011
New Revision: 140597
URL: http://llvm.org/viewvc/llvm-project?rev=140597&view=rev
Log:
MSVC is stuck in the 80s.
Modified:
cfe/trunk/include/clang-c/Index.h
cfe/trunk/tools/libclang/CXCursor.cpp
cfe/trunk/tools/libclang/libclang.exports
Modified: cfe/trunk/include/clang-c/Index.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang-c/Index.h?rev=140597&r1=140596&r2=140597&view=diff
==============================================================================
--- cfe/trunk/include/clang-c/Index.h (original)
+++ cfe/trunk/include/clang-c/Index.h Mon Sep 26 23:14:36 2011
@@ -1557,9 +1557,7 @@
/**
* \brief Returns non-zero if \arg cursor is null.
*/
-static inline int clang_Cursor_isNull(CXCursor cursor) {
- return clang_equalCursors(cursor, clang_getNullCursor());
-}
+int clang_Cursor_isNull(CXCursor);
/**
* \brief Compute a hash value for the given cursor.
Modified: cfe/trunk/tools/libclang/CXCursor.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/libclang/CXCursor.cpp?rev=140597&r1=140596&r2=140597&view=diff
==============================================================================
--- cfe/trunk/tools/libclang/CXCursor.cpp (original)
+++ cfe/trunk/tools/libclang/CXCursor.cpp Mon Sep 26 23:14:36 2011
@@ -522,10 +522,18 @@
// libclang CXCursor APIs
//===----------------------------------------------------------------------===//
+extern "C" {
+
+int clang_Cursor_isNull(CXCursor cursor) {
+ return clang_equalCursors(cursor, clang_getNullCursor());
+}
+
CXTranslationUnit clang_Cursor_getTranslationUnit(CXCursor cursor) {
return getCursorTU(cursor);
}
+} // end: extern "C"
+
//===----------------------------------------------------------------------===//
// CXCursorSet.
//===----------------------------------------------------------------------===//
Modified: cfe/trunk/tools/libclang/libclang.exports
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/libclang/libclang.exports?rev=140597&r1=140596&r2=140597&view=diff
==============================================================================
--- cfe/trunk/tools/libclang/libclang.exports (original)
+++ cfe/trunk/tools/libclang/libclang.exports Mon Sep 26 23:14:36 2011
@@ -21,6 +21,7 @@
clang_createTranslationUnit
clang_createTranslationUnitFromSourceFile
clang_Cursor_getTranslationUnit
+clang_Cursor_isNull
clang_defaultCodeCompleteOptions
clang_defaultDiagnosticDisplayOptions
clang_defaultEditingTranslationUnitOptions
More information about the cfe-commits
mailing list