mirror of https://github.com/tinygo-org/tinygo.git
wasmstm32webassemblymicrocontrollerarmavrspiwasiadafruitarduinocircuitplayground-expressgpioi2cllvmmicrobitnrf51nrf52nrf52840samd21tinygo
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
1.6 KiB
59 lines
1.6 KiB
6 years ago
|
|
||
|
// This file implements some small trampoline functions. The signatures
|
||
|
// are slightly different from the ones defined in libclang.go, but they
|
||
|
// should be ABI compatible.
|
||
|
|
||
|
#include <clang-c/Index.h> // if this fails, install libclang-8-dev
|
||
|
|
||
|
CXCursor tinygo_clang_getTranslationUnitCursor(CXTranslationUnit tu) {
|
||
|
return clang_getTranslationUnitCursor(tu);
|
||
|
}
|
||
|
|
||
|
unsigned tinygo_clang_visitChildren(CXCursor parent, CXCursorVisitor visitor, CXClientData client_data) {
|
||
|
return clang_visitChildren(parent, visitor, client_data);
|
||
|
}
|
||
|
|
||
|
CXString tinygo_clang_getCursorSpelling(CXCursor c) {
|
||
|
return clang_getCursorSpelling(c);
|
||
|
}
|
||
|
|
||
|
enum CXCursorKind tinygo_clang_getCursorKind(CXCursor c) {
|
||
|
return clang_getCursorKind(c);
|
||
|
}
|
||
|
|
||
|
CXType tinygo_clang_getCursorType(CXCursor c) {
|
||
|
return clang_getCursorType(c);
|
||
|
}
|
||
|
|
||
|
CXCursor tinygo_clang_getTypeDeclaration(CXType t) {
|
||
|
return clang_getTypeDeclaration(t);
|
||
|
}
|
||
|
|
||
|
CXType tinygo_clang_getTypedefDeclUnderlyingType(CXCursor c) {
|
||
|
return clang_getTypedefDeclUnderlyingType(c);
|
||
|
}
|
||
|
|
||
|
CXType tinygo_clang_getCursorResultType(CXCursor c) {
|
||
|
return clang_getCursorResultType(c);
|
||
|
}
|
||
|
|
||
|
int tinygo_clang_Cursor_getNumArguments(CXCursor c) {
|
||
|
return clang_Cursor_getNumArguments(c);
|
||
|
}
|
||
|
|
||
|
CXCursor tinygo_clang_Cursor_getArgument(CXCursor c, unsigned i) {
|
||
|
return clang_Cursor_getArgument(c, i);
|
||
|
}
|
||
6 years ago
|
|
||
|
CXSourceLocation tinygo_clang_getCursorLocation(CXCursor c) {
|
||
|
return clang_getCursorLocation(c);
|
||
|
}
|
||
|
|
||
6 years ago
|
CXSourceRange tinygo_clang_getCursorExtent(CXCursor c) {
|
||
|
return clang_getCursorExtent(c);
|
||
|
}
|
||
|
|
||
6 years ago
|
CXTranslationUnit tinygo_clang_Cursor_getTranslationUnit(CXCursor c) {
|
||
|
return clang_Cursor_getTranslationUnit(c);
|
||
|
}
|