Remove trailing semicolons and silence MSVC warning about C linkage.

warning C4190: 'GetEntity' has C-linkage specified, but returns UDT
'clang::idx::Entity' which is incompatible with C

llvm-svn: 93237
This commit is contained in:
Benjamin Kramer 2010-01-12 11:32:40 +00:00
parent 0067d6bbbe
commit 59617be4a5
1 changed files with 5 additions and 5 deletions

View File

@ -12,11 +12,9 @@
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
#include "CIndexer.h" #include "CIndexer.h"
#include "clang/AST/DeclVisitor.h"
#include "llvm/ADT/SmallString.h" #include "llvm/ADT/SmallString.h"
#include "llvm/Support/raw_ostream.h"; #include "llvm/Support/raw_ostream.h"
#include "clang/AST/DeclVisitor.h";
extern "C" {
// Some notes on CXEntity: // Some notes on CXEntity:
// //
@ -63,7 +61,9 @@ static inline CXEntity MakeEntity(CXIndex CIdx, const Entity &E) {
static inline Program &GetProgram(CXIndex CIdx) { static inline Program &GetProgram(CXIndex CIdx) {
return ((CIndexer*) CIdx)->getProgram(); return ((CIndexer*) CIdx)->getProgram();
} }
extern "C" {
/// clang_getDeclaration() maps from a CXEntity to the matching CXDecl (if any) /// clang_getDeclaration() maps from a CXEntity to the matching CXDecl (if any)
/// in a specified translation unit. /// in a specified translation unit.
CXDecl clang_getDeclaration(CXEntity CE, CXTranslationUnit TU) { CXDecl clang_getDeclaration(CXEntity CE, CXTranslationUnit TU) {