diff options
| author | Tomohiro Kashiwada <kikairoya@gmail.com> | 2025-07-08 04:49:50 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-07 22:49:50 +0300 |
| commit | 968410ffd1bacbf540595e0b6d2628ed559098e9 (patch) | |
| tree | 75f80ff62efc55a7b8e7cd5f0aec1185cd59cf0e /clang/include/clang-c | |
| parent | 3b05edfc5f3c506dc8820d157fd87c7e984840f6 (diff) | |
[libclang] Add missing dllexport annotation (#147108)
All other declarations of clang-c already have CINDEX_LINKAGE.
This missing annotation causes a linker error when building
`tools/clang/unittests/libclang/CrashTests/libclangCrashTests.exe` for
the Cygwin target.
On the regular Win32 target, this issue went unnoticed because the
entire libclang gtest-based testsuite is currently disabled for that
platform.
Diffstat (limited to 'clang/include/clang-c')
| -rw-r--r-- | clang/include/clang-c/FatalErrorHandler.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/include/clang-c/FatalErrorHandler.h b/clang/include/clang-c/FatalErrorHandler.h index 22f34fa815cc..4f18980dea24 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 |
