All Downloads are FREE. Search and download functionalities are using the official Maven repository.

astffi.llvm.0.1.2.source-code.jni_com_alibaba_fastffi_clang_DiagnosticsEngine_cxx_0xf7e98b3d.cc Maven / Gradle / Ivy

The newest version!
#include 
#include 
#include "clang/Basic/Diagnostic.h"

#ifdef __cplusplus
extern "C" {
#endif

// Common Stubs

JNIEXPORT
jint JNICALL Java_com_alibaba_fastffi_clang_DiagnosticsEngine_1cxx_10xf7e98b3d__1elementSize_00024_00024_00024(JNIEnv*, jclass) {
    return (jint)sizeof(clang::DiagnosticsEngine);
}

JNIEXPORT
jint JNICALL Java_com_alibaba_fastffi_clang_DiagnosticsEngine_1cxx_10xf7e98b3d_nativeGetNumWarnings(JNIEnv*, jclass, jlong ptr) {
	return (jint)(reinterpret_cast(ptr)->getNumWarnings());
}

JNIEXPORT
jboolean JNICALL Java_com_alibaba_fastffi_clang_DiagnosticsEngine_1cxx_10xf7e98b3d_nativeHasErrorOccurred(JNIEnv*, jclass, jlong ptr) {
	return (reinterpret_cast(ptr)->hasErrorOccurred()) ? JNI_TRUE : JNI_FALSE;
}

JNIEXPORT
jboolean JNICALL Java_com_alibaba_fastffi_clang_DiagnosticsEngine_1cxx_10xf7e98b3d_nativeHasFatalErrorOccurred(JNIEnv*, jclass, jlong ptr) {
	return (reinterpret_cast(ptr)->hasFatalErrorOccurred()) ? JNI_TRUE : JNI_FALSE;
}

JNIEXPORT
jboolean JNICALL Java_com_alibaba_fastffi_clang_DiagnosticsEngine_1cxx_10xf7e98b3d_nativeHasUncompilableErrorOccurred(JNIEnv*, jclass, jlong ptr) {
	return (reinterpret_cast(ptr)->hasUncompilableErrorOccurred()) ? JNI_TRUE : JNI_FALSE;
}

JNIEXPORT
jboolean JNICALL Java_com_alibaba_fastffi_clang_DiagnosticsEngine_1cxx_10xf7e98b3d_nativeHasUnrecoverableErrorOccurred(JNIEnv*, jclass, jlong ptr) {
	return (reinterpret_cast(ptr)->hasUnrecoverableErrorOccurred()) ? JNI_TRUE : JNI_FALSE;
}

#ifdef __cplusplus
}
#endif




© 2015 - 2024 Weber Informatics LLC | Privacy Policy