astffi.llvm.0.1.2.source-code.jni_com_alibaba_fastffi_clang_tooling_CommonOptionsParser_cxx_0x42a9ec19.cc Maven / Gradle / Ivy
The newest version!
#include
#include
#include "clang/Tooling/CommonOptionsParser.h"
#include "clang/Tooling/Tooling.h"
#ifdef __cplusplus
extern "C" {
#endif
// Common Stubs
JNIEXPORT
jint JNICALL Java_com_alibaba_fastffi_clang_tooling_CommonOptionsParser_1cxx_10x42a9ec19__1elementSize_00024_00024_00024(JNIEnv*, jclass) {
return (jint)sizeof(clang::tooling::CommonOptionsParser);
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_clang_tooling_CommonOptionsParser_1cxx_10x42a9ec19_nativeCreateClangTool0(JNIEnv*, jclass, jlong ptr, jlong arg0 /* sourcePath0 */) {
return reinterpret_cast(new clang::tooling::ClangTool(reinterpret_cast(ptr)->getCompilations(), *reinterpret_cast*>(arg0)));
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_clang_tooling_CommonOptionsParser_1cxx_10x42a9ec19_nativeCreateClangTool1(JNIEnv*, jclass, jlong ptr) {
return reinterpret_cast(new clang::tooling::ClangTool(reinterpret_cast(ptr)->getCompilations(), reinterpret_cast(ptr)->getSourcePathList()));
}
JNIEXPORT
void JNICALL Java_com_alibaba_fastffi_clang_tooling_CommonOptionsParser_1cxx_10x42a9ec19_nativeDelete(JNIEnv*, jclass, jlong ptr) {
delete reinterpret_cast(ptr);
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_clang_tooling_CommonOptionsParser_1cxx_10x42a9ec19_nativeGetCompilations(JNIEnv*, jclass, jlong ptr) {
return reinterpret_cast(&(reinterpret_cast(ptr)->getCompilations()));
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_clang_tooling_CommonOptionsParser_1cxx_10x42a9ec19_nativeGetSourcePathList(JNIEnv*, jclass, jlong ptr) {
return reinterpret_cast(&(reinterpret_cast(ptr)->getSourcePathList()));
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_clang_tooling_CommonOptionsParser_1cxx_10x42a9ec19_nativeCreateFactory0(JNIEnv*, jclass, jint arg0 /* argc0 */, jlong arg1 /* argv1 */, jlong arg2 /* category2 */) {
return reinterpret_cast(new clang::tooling::CommonOptionsParser(arg0, ((const char**) arg1), *reinterpret_cast(arg2)));
}
#ifdef __cplusplus
}
#endif