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/CXLoadedDiagnostic.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/CXLoadedDiagnostic.cpp')
-rw-r--r-- | tools/libclang/CXLoadedDiagnostic.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/tools/libclang/CXLoadedDiagnostic.cpp b/tools/libclang/CXLoadedDiagnostic.cpp index c866717cc4..36c3dcabb9 100644 --- a/tools/libclang/CXLoadedDiagnostic.cpp +++ b/tools/libclang/CXLoadedDiagnostic.cpp @@ -387,11 +387,9 @@ std::error_code DiagLoader::visitDiagnosticRecord( return std::error_code(); } -extern "C" { CXDiagnosticSet clang_loadDiagnostics(const char *file, enum CXLoadDiag_Error *error, CXString *errorString) { DiagLoader L(error, errorString); return L.load(file); } -} // end extern 'C'. |