[clang] [libclang] Add missing dllexport annotation (PR #147108)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 4 14:15:52 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Tomohiro Kashiwada (kikairoya)
<details>
<summary>Changes</summary>
All other declarations of clang-c already have CINDEX_LINKAGE.
---
Full diff: https://github.com/llvm/llvm-project/pull/147108.diff
1 Files Affected:
- (modified) clang/include/clang-c/FatalErrorHandler.h (+3-2)
``````````diff
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
``````````
</details>
https://github.com/llvm/llvm-project/pull/147108
More information about the cfe-commits
mailing list