diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2016-12-19 16:50:43 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2016-12-19 16:50:43 +0000 |
commit | a01f4c3476825f29b084c96309c0e753d8b18f4e (patch) | |
tree | b7456353b128463bf9f985404defb1750e1fa94e /clang/tools/libclang/CIndexHigh.cpp | |
parent | 29982b0f6b31dca1aced99d571aaf0f20daa821b (diff) | |
download | bcm5719-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.cpp | 3 |
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" |