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.
82 lines
2.3 KiB
82 lines
2.3 KiB
|
|
// 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, libclang headers aren't available. Please take a look here: https://tinygo.org/docs/guides/build/
|
|
|
|
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);
|
|
}
|
|
|
|
CXString tinygo_clang_getCursorPrettyPrinted(CXCursor c, CXPrintingPolicy policy) {
|
|
return clang_getCursorPrettyPrinted(c, policy);
|
|
}
|
|
|
|
CXPrintingPolicy tinygo_clang_getCursorPrintingPolicy(CXCursor c) {
|
|
return clang_getCursorPrintingPolicy(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);
|
|
}
|
|
|
|
enum CX_StorageClass tinygo_clang_Cursor_getStorageClass(CXCursor c) {
|
|
return clang_Cursor_getStorageClass(c);
|
|
}
|
|
|
|
CXSourceLocation tinygo_clang_getCursorLocation(CXCursor c) {
|
|
return clang_getCursorLocation(c);
|
|
}
|
|
|
|
CXSourceRange tinygo_clang_getCursorExtent(CXCursor c) {
|
|
return clang_getCursorExtent(c);
|
|
}
|
|
|
|
CXTranslationUnit tinygo_clang_Cursor_getTranslationUnit(CXCursor c) {
|
|
return clang_Cursor_getTranslationUnit(c);
|
|
}
|
|
|
|
long long tinygo_clang_getEnumConstantDeclValue(CXCursor c) {
|
|
return clang_getEnumConstantDeclValue(c);
|
|
}
|
|
|
|
CXType tinygo_clang_getEnumDeclIntegerType(CXCursor c) {
|
|
return clang_getEnumDeclIntegerType(c);
|
|
}
|
|
|
|
unsigned tinygo_clang_Cursor_isBitField(CXCursor c) {
|
|
return clang_Cursor_isBitField(c);
|
|
}
|