diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2016-12-17 01:09:40 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2016-12-17 01:09:40 +0000 |
commit | 39ae3d5c4e5552fc1edbdf6cf605a5158932dfd5 (patch) | |
tree | 8087e4446b961c3cd6b12bb2f61f84814aa9b0cf /clang/tools/libclang/CXCursor.cpp | |
parent | 58655bbc607c3eb1fedad52a254753a37351ce89 (diff) | |
download | bcm5719-llvm-39ae3d5c4e5552fc1edbdf6cf605a5158932dfd5.tar.gz bcm5719-llvm-39ae3d5c4e5552fc1edbdf6cf605a5158932dfd5.zip |
[libclang] Remove the 'extern "C"' blocks from the implementation files.
These are unnecessary, the declarations already carry the 'extern C' property, and if there is mismatch
between declaration and definition then we will get linker errors via libclang.exports.
llvm-svn: 290025
Diffstat (limited to 'clang/tools/libclang/CXCursor.cpp')
-rw-r--r-- | clang/tools/libclang/CXCursor.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/clang/tools/libclang/CXCursor.cpp b/clang/tools/libclang/CXCursor.cpp index 7f0a297fdad..06b0aa95a07 100644 --- a/clang/tools/libclang/CXCursor.cpp +++ b/clang/tools/libclang/CXCursor.cpp @@ -1104,8 +1104,6 @@ bool cxcursor::isFirstInDeclGroup(CXCursor C) { // libclang CXCursor APIs //===----------------------------------------------------------------------===// -extern "C" { - int clang_Cursor_isNull(CXCursor cursor) { return clang_equalCursors(cursor, clang_getNullCursor()); } @@ -1295,8 +1293,6 @@ unsigned long long clang_Cursor_getTemplateArgumentUnsignedValue(CXCursor C, return TA.getAsIntegral().getZExtValue(); } -} // end: extern "C" - //===----------------------------------------------------------------------===// // CXCursorSet. //===----------------------------------------------------------------------===// @@ -1330,7 +1326,6 @@ public: }; } -extern "C" { CXCursorSet clang_createCXCursorSet() { return packCXCursorSet(new CXCursorSet_Impl()); } @@ -1393,7 +1388,6 @@ CXCompletionString clang_getCursorCompletionString(CXCursor cursor) { } return nullptr; } -} // end: extern C. namespace { struct OverridenCursorsPool { @@ -1418,7 +1412,6 @@ void cxcursor::disposeOverridenCXCursorsPool(void *pool) { delete static_cast<OverridenCursorsPool*>(pool); } -extern "C" { void clang_getOverriddenCursors(CXCursor cursor, CXCursor **overridden, unsigned *num_overridden) { @@ -1540,5 +1533,3 @@ CXType clang_Cursor_getReceiverType(CXCursor C) { return cxtype::MakeCXType(QualType(), TU); } - -} // end: extern "C" |