astffi.llvm.0.1.2.source-code.jni_com_alibaba_fastffi_clang_SourceManager_cxx_0x2c6c66c1.cc Maven / Gradle / Ivy
The newest version!
#include
#include
#include "clang/Basic/SourceManager.h"
#ifdef __cplusplus
extern "C" {
#endif
// Common Stubs
JNIEXPORT
jint JNICALL Java_com_alibaba_fastffi_clang_SourceManager_1cxx_10x2c6c66c1__1elementSize_00024_00024_00024(JNIEnv*, jclass) {
return (jint)sizeof(clang::SourceManager);
}
JNIEXPORT
jint JNICALL Java_com_alibaba_fastffi_clang_SourceManager_1cxx_10x2c6c66c1_nativeGetExpansionColumnNumber(JNIEnv*, jclass, jlong ptr, jlong arg0 /* Loc0 */) {
return (jint)(reinterpret_cast(ptr)->getExpansionColumnNumber(*reinterpret_cast(arg0)));
}
JNIEXPORT
jint JNICALL Java_com_alibaba_fastffi_clang_SourceManager_1cxx_10x2c6c66c1_nativeGetExpansionLineNumber(JNIEnv*, jclass, jlong ptr, jlong arg0 /* Loc0 */) {
return (jint)(reinterpret_cast(ptr)->getExpansionLineNumber(*reinterpret_cast(arg0)));
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_clang_SourceManager_1cxx_10x2c6c66c1_nativeGetFilename(JNIEnv*, jclass, jlong ptr, jlong rv_base, jlong arg0 /* location0 */) {
return reinterpret_cast(new((void*)rv_base) llvm::StringRef(reinterpret_cast(ptr)->getFilename(*reinterpret_cast(arg0))));
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_clang_SourceManager_1cxx_10x2c6c66c1_nativeGetImmediateSpellingLoc(JNIEnv*, jclass, jlong ptr, jlong rv_base, jlong arg0 /* locationd0 */) {
return reinterpret_cast(new((void*)rv_base) clang::SourceLocation(reinterpret_cast(ptr)->getImmediateSpellingLoc(*reinterpret_cast(arg0))));
}
JNIEXPORT
jint JNICALL Java_com_alibaba_fastffi_clang_SourceManager_1cxx_10x2c6c66c1_nativeGetPresumedColumnNumber(JNIEnv*, jclass, jlong ptr, jlong arg0 /* Loc0 */) {
return (jint)(reinterpret_cast(ptr)->getPresumedColumnNumber(*reinterpret_cast(arg0)));
}
JNIEXPORT
jint JNICALL Java_com_alibaba_fastffi_clang_SourceManager_1cxx_10x2c6c66c1_nativeGetPresumedLineNumber(JNIEnv*, jclass, jlong ptr, jlong arg0 /* Loc0 */) {
return (jint)(reinterpret_cast(ptr)->getPresumedLineNumber(*reinterpret_cast(arg0)));
}
JNIEXPORT
jint JNICALL Java_com_alibaba_fastffi_clang_SourceManager_1cxx_10x2c6c66c1_nativeGetSpellingColumnNumber(JNIEnv*, jclass, jlong ptr, jlong arg0 /* Loc0 */) {
return (jint)(reinterpret_cast(ptr)->getSpellingColumnNumber(*reinterpret_cast(arg0)));
}
JNIEXPORT
jint JNICALL Java_com_alibaba_fastffi_clang_SourceManager_1cxx_10x2c6c66c1_nativeGetSpellingLineNumber(JNIEnv*, jclass, jlong ptr, jlong arg0 /* Loc0 */) {
return (jint)(reinterpret_cast(ptr)->getSpellingLineNumber(*reinterpret_cast(arg0)));
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_clang_SourceManager_1cxx_10x2c6c66c1_nativeGetSpellingLoc(JNIEnv*, jclass, jlong ptr, jlong rv_base, jlong arg0 /* locationd0 */) {
return reinterpret_cast(new((void*)rv_base) clang::SourceLocation(reinterpret_cast(ptr)->getSpellingLoc(*reinterpret_cast(arg0))));
}
JNIEXPORT
jboolean JNICALL Java_com_alibaba_fastffi_clang_SourceManager_1cxx_10x2c6c66c1_nativeIsInMainFile(JNIEnv*, jclass, jlong ptr, jlong arg0 /* sourceLocation0 */) {
return (reinterpret_cast(ptr)->isInMainFile(*reinterpret_cast(arg0))) ? JNI_TRUE : JNI_FALSE;
}
#ifdef __cplusplus
}
#endif