https://github.com/kikairoya created https://github.com/llvm/llvm-project/pull/147108
All other declarations of clang-c already have CINDEX_LINKAGE. >From 53359252688692f2b0e25f529335848db94cc166 Mon Sep 17 00:00:00 2001 From: kikairoya <kikair...@gmail.com> Date: Sat, 28 Jun 2025 11:50:14 +0900 Subject: [PATCH] [libclang] Add missing dllexport annotation All other declarations of clang-c already have CINDEX_LINKAGE. --- clang/include/clang-c/FatalErrorHandler.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/clang/include/clang-c/FatalErrorHandler.h b/clang/include/clang-c/FatalErrorHandler.h index 22f34fa815ccf..4f18980dea240 100644 --- a/clang/include/clang-c/FatalErrorHandler.h +++ b/clang/include/clang-c/FatalErrorHandler.h @@ -11,6 +11,7 @@ #define LLVM_CLANG_C_FATAL_ERROR_HANDLER_H #include "clang-c/ExternC.h" +#include "clang-c/Platform.h" LLVM_CLANG_C_EXTERN_C_BEGIN @@ -18,14 +19,14 @@ LLVM_CLANG_C_EXTERN_C_BEGIN * Installs error handler that prints error message to stderr and calls abort(). * Replaces currently installed error handler (if any). */ -void clang_install_aborting_llvm_fatal_error_handler(void); +CINDEX_LINKAGE void clang_install_aborting_llvm_fatal_error_handler(void); /** * Removes currently installed error handler (if any). * If no error handler is intalled, the default strategy is to print error * message to stderr and call exit(1). */ -void clang_uninstall_llvm_fatal_error_handler(void); +CINDEX_LINKAGE void clang_uninstall_llvm_fatal_error_handler(void); LLVM_CLANG_C_EXTERN_C_END _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits