mingw32-ld complains missing symbols in exports,
Cannot export clang_findIncludesInFileWithBlock: symbol not defined
Cannot export clang_findReferencesInFileWithBlock: symbol not defined
Cannot export clang_visitChildrenWithBlock: symbol not defined
They are excluded conditionally in header along has_blocks.
We should do either;
1. Exclude also function bodies conditionally, and introduce "optional" exporter.
2. Give dummy function bodies for them.
3. Implement functions w/o blocks.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@290113
91177308-0d34-0410-b5e6-
96231b3b80d8
return E->getLocStart();
}
+extern "C" {
+
unsigned clang_visitChildren(CXCursor parent,
CXCursorVisitor visitor,
CXClientData client_data) {
return cxloc::translateSourceLocation(getCursorContext(C), Loc);
}
+} // end extern "C"
+
CXCursor cxcursor::getCursor(CXTranslationUnit TU, SourceLocation SLoc) {
assert(TU);
// libclang public APIs.
//===----------------------------------------------------------------------===//
+extern "C" {
+
CXResult clang_findReferencesInFile(CXCursor cursor, CXFile file,
CXCursorAndRangeVisitor visitor) {
LogRef Log = Logger::make(__func__);
return clang_findIncludesInFile(TU, file, visitor);
}
+} // end: extern "C"