diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2010-01-12 11:32:40 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2010-01-12 11:32:40 +0000 |
commit | 9895c6ab2a5903603f366ad133ff68541a52178f (patch) | |
tree | 1765d8c16de04b0d84b4280151bf3af4ff476262 | |
parent | cbce60633c9864261105b289473e5a3ed7b4a729 (diff) |
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
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93237 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | tools/CIndex/CIndexUSRs.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/CIndex/CIndexUSRs.cpp b/tools/CIndex/CIndexUSRs.cpp index edf3406356..5766b21d86 100644 --- a/tools/CIndex/CIndexUSRs.cpp +++ b/tools/CIndex/CIndexUSRs.cpp @@ -12,11 +12,9 @@ //===----------------------------------------------------------------------===// #include "CIndexer.h" +#include "clang/AST/DeclVisitor.h" #include "llvm/ADT/SmallString.h" -#include "llvm/Support/raw_ostream.h"; -#include "clang/AST/DeclVisitor.h"; - -extern "C" { +#include "llvm/Support/raw_ostream.h" // Some notes on CXEntity: // @@ -63,7 +61,9 @@ static inline CXEntity MakeEntity(CXIndex CIdx, const Entity &E) { static inline Program &GetProgram(CXIndex CIdx) { return ((CIndexer*) CIdx)->getProgram(); } - + +extern "C" { + /// clang_getDeclaration() maps from a CXEntity to the matching CXDecl (if any) /// in a specified translation unit. CXDecl clang_getDeclaration(CXEntity CE, CXTranslationUnit TU) { |