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 | d9d5af2d993a8097c4f496f09f1b403396ec6272 (patch) | |
tree | c640020a229be3aba64ceeaf743a43657a8c1b29 /tools/libclang/CIndexCodeCompletion.cpp | |
parent | ac7583ae2b142a8e95a2150ef5f702eea6fee827 (diff) |
[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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@290025 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/libclang/CIndexCodeCompletion.cpp')
-rw-r--r-- | tools/libclang/CIndexCodeCompletion.cpp | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/tools/libclang/CIndexCodeCompletion.cpp b/tools/libclang/CIndexCodeCompletion.cpp index 344ed27021..12895c4a9b 100644 --- a/tools/libclang/CIndexCodeCompletion.cpp +++ b/tools/libclang/CIndexCodeCompletion.cpp @@ -53,8 +53,6 @@ using namespace clang; using namespace clang::cxindex; -extern "C" { - enum CXCompletionChunkKind clang_getCompletionChunkKind(CXCompletionString completion_string, unsigned chunk_number) { @@ -346,8 +344,6 @@ AllocatedCXCodeCompleteResults::~AllocatedCXCodeCompleteResults() { fprintf(stderr, "--- %u completion results\n", --CodeCompletionResultObjects); } - -} // end extern "C" static unsigned long long getContextsForContextKind( enum CodeCompletionContext::Kind kind, @@ -794,7 +790,6 @@ clang_codeCompleteAt_Impl(CXTranslationUnit TU, const char *complete_filename, return Results; } -extern "C" { CXCodeCompleteResults *clang_codeCompleteAt(CXTranslationUnit TU, const char *complete_filename, unsigned complete_line, @@ -916,8 +911,6 @@ CXString clang_codeCompleteGetObjCSelector(CXCodeCompleteResults *ResultsIn) { return cxstring::createDup(Results->Selector); } -} // end extern "C" - /// \brief Simple utility function that appends a \p New string to the given /// \p Old string, using the \p Buffer for storage. /// @@ -990,9 +983,7 @@ namespace { }; } -extern "C" { - void clang_sortCodeCompletionResults(CXCompletionResult *Results, - unsigned NumResults) { - std::stable_sort(Results, Results + NumResults, OrderCompletionResults()); - } +void clang_sortCodeCompletionResults(CXCompletionResult *Results, + unsigned NumResults) { + std::stable_sort(Results, Results + NumResults, OrderCompletionResults()); } |