summaryrefslogtreecommitdiffstats
path: root/clang/tools/libclang/CIndexHigh.cpp
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2016-12-19 16:50:43 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2016-12-19 16:50:43 +0000
commita01f4c3476825f29b084c96309c0e753d8b18f4e (patch)
treeb7456353b128463bf9f985404defb1750e1fa94e /clang/tools/libclang/CIndexHigh.cpp
parent29982b0f6b31dca1aced99d571aaf0f20daa821b (diff)
downloadbcm5719-llvm-a01f4c3476825f29b084c96309c0e753d8b18f4e.tar.gz
bcm5719-llvm-a01f4c3476825f29b084c96309c0e753d8b18f4e.zip
[libclang] Revert part of r290025, "Remove the 'extern "C"' blocks from the implementation files."
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. llvm-svn: 290113
Diffstat (limited to 'clang/tools/libclang/CIndexHigh.cpp')
-rw-r--r--clang/tools/libclang/CIndexHigh.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/tools/libclang/CIndexHigh.cpp b/clang/tools/libclang/CIndexHigh.cpp
index b659348a90c..d4666c2288c 100644
--- a/clang/tools/libclang/CIndexHigh.cpp
+++ b/clang/tools/libclang/CIndexHigh.cpp
@@ -407,6 +407,8 @@ static bool findIncludesInFile(CXTranslationUnit TU, const FileEntry *File,
// libclang public APIs.
//===----------------------------------------------------------------------===//
+extern "C" {
+
CXResult clang_findReferencesInFile(CXCursor cursor, CXFile file,
CXCursorAndRangeVisitor visitor) {
LogRef Log = Logger::make(__func__);
@@ -532,3 +534,4 @@ CXResult clang_findIncludesInFileWithBlock(CXTranslationUnit TU,
return clang_findIncludesInFile(TU, file, visitor);
}
+} // end: extern "C"
OpenPOWER on IntegriCloud