summaryrefslogtreecommitdiffstats
path: root/clang/tools/libclang/CXSourceLocation.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2016-12-17 01:09:40 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2016-12-17 01:09:40 +0000
commit39ae3d5c4e5552fc1edbdf6cf605a5158932dfd5 (patch)
tree8087e4446b961c3cd6b12bb2f61f84814aa9b0cf /clang/tools/libclang/CXSourceLocation.cpp
parent58655bbc607c3eb1fedad52a254753a37351ce89 (diff)
downloadbcm5719-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/CXSourceLocation.cpp')
-rw-r--r--clang/tools/libclang/CXSourceLocation.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/clang/tools/libclang/CXSourceLocation.cpp b/clang/tools/libclang/CXSourceLocation.cpp
index 68ecf388bd7..2e0ea4e4409 100644
--- a/clang/tools/libclang/CXSourceLocation.cpp
+++ b/clang/tools/libclang/CXSourceLocation.cpp
@@ -38,8 +38,6 @@ static bool isASTUnitSourceLocation(const CXSourceLocation &L) {
// Basic construction and comparison of CXSourceLocations and CXSourceRanges.
//===----------------------------------------------------------------------===//
-extern "C" {
-
CXSourceLocation clang_getNullLocation() {
CXSourceLocation Result = { { nullptr, nullptr }, 0 };
return Result;
@@ -110,14 +108,10 @@ CXSourceLocation clang_getRangeEnd(CXSourceRange range) {
return Result;
}
-} // end extern "C"
-
//===----------------------------------------------------------------------===//
// Getting CXSourceLocations and CXSourceRanges from a translation unit.
//===----------------------------------------------------------------------===//
-extern "C" {
-
CXSourceLocation clang_getLocation(CXTranslationUnit TU,
CXFile file,
unsigned line,
@@ -174,8 +168,6 @@ CXSourceLocation clang_getLocationForOffset(CXTranslationUnit TU,
return cxloc::translateSourceLocation(CXXUnit->getASTContext(), SLoc);
}
-} // end extern "C"
-
//===----------------------------------------------------------------------===//
// Routines for expanding and manipulating CXSourceLocations, regardless
// of their origin.
@@ -205,8 +197,6 @@ static void createNullLocation(CXString *filename, unsigned *line,
*offset = 0;
}
-extern "C" {
-
int clang_Location_isInSystemHeader(CXSourceLocation location) {
const SourceLocation Loc =
SourceLocation::getFromRawEncoding(location.int_data);
@@ -382,5 +372,3 @@ void clang_getFileLocation(CXSourceLocation location,
if (offset)
*offset = FileOffset;
}
-
-} // end extern "C"
OpenPOWER on IntegriCloud