[cfe-commits] r155842 - /cfe/trunk/tools/libclang/CXCursor.cpp
Ted Kremenek
kremenek at apple.com
Mon Apr 30 12:33:46 PDT 2012
Author: kremenek
Date: Mon Apr 30 14:33:45 2012
New Revision: 155842
URL: http://llvm.org/viewvc/llvm-project?rev=155842&view=rev
Log:
Fix C versus C++ linkage issue.
Modified:
cfe/trunk/tools/libclang/CXCursor.cpp
Modified: cfe/trunk/tools/libclang/CXCursor.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/libclang/CXCursor.cpp?rev=155842&r1=155841&r2=155842&view=diff
==============================================================================
--- cfe/trunk/tools/libclang/CXCursor.cpp (original)
+++ cfe/trunk/tools/libclang/CXCursor.cpp Mon Apr 30 14:33:45 2012
@@ -1152,6 +1152,7 @@
}
return NULL;
}
+} // end: extern C.
namespace {
struct OverridenCursorsPool {
@@ -1175,7 +1176,8 @@
void cxcursor::disposeOverridenCXCursorsPool(void *pool) {
delete static_cast<OverridenCursorsPool*>(pool);
}
-
+
+extern "C" {
void clang_getOverriddenCursors(CXCursor cursor,
CXCursor **overridden,
unsigned *num_overridden) {
More information about the cfe-commits
mailing list