[libclang] Revert part of r290025, "Remove the 'extern "C"' blocks from the implement...
authorNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 19 Dec 2016 16:50:43 +0000 (16:50 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 19 Dec 2016 16:50:43 +0000 (16:50 +0000)
commita01f4c3476825f29b084c96309c0e753d8b18f4e
treeb7456353b128463bf9f985404defb1750e1fa94e
parent29982b0f6b31dca1aced99d571aaf0f20daa821b
[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
clang/tools/libclang/CIndex.cpp
clang/tools/libclang/CIndexHigh.cpp