astffi.llvm.0.1.2.source-code.jni_com_alibaba_fastffi_clang_tooling_ClangTool_cxx_0xfbd78ab0.cc Maven / Gradle / Ivy
The newest version!
#include
#include
#include "clang/Tooling/Tooling.h"
#ifdef __cplusplus
extern "C" {
#endif
// Common Stubs
JNIEXPORT
jint JNICALL Java_com_alibaba_fastffi_clang_tooling_ClangTool_1cxx_10xfbd78ab0__1elementSize_00024_00024_00024(JNIEnv*, jclass) {
return (jint)sizeof(clang::tooling::ClangTool);
}
JNIEXPORT
jint JNICALL Java_com_alibaba_fastffi_clang_tooling_ClangTool_1cxx_10xfbd78ab0_nativeBuildASTs(JNIEnv*, jclass, jlong ptr, jlong arg0 /* ASTs0 */) {
return (jint)(reinterpret_cast(ptr)->buildASTs(*reinterpret_cast>*>(arg0)));
}
JNIEXPORT
void JNICALL Java_com_alibaba_fastffi_clang_tooling_ClangTool_1cxx_10xfbd78ab0_nativeDelete(JNIEnv*, jclass, jlong ptr) {
delete reinterpret_cast(ptr);
}
#ifdef __cplusplus
}
#endif