From 39ae3d5c4e5552fc1edbdf6cf605a5158932dfd5 Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Sat, 17 Dec 2016 01:09:40 +0000 Subject: [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 --- clang/tools/libclang/CXLoadedDiagnostic.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'clang/tools/libclang/CXLoadedDiagnostic.cpp') diff --git a/clang/tools/libclang/CXLoadedDiagnostic.cpp b/clang/tools/libclang/CXLoadedDiagnostic.cpp index c866717cc48..36c3dcabb92 100644 --- a/clang/tools/libclang/CXLoadedDiagnostic.cpp +++ b/clang/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'. -- cgit v1.2.3