зеркало из https://github.com/microsoft/clang-1.git
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
This commit is contained in:
Родитель
cbce60633c
Коммит
9895c6ab2a
|
@ -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:
|
||||
//
|
||||
|
@ -64,6 +62,8 @@ 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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче