
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.
34 lines
1.3 KiB
C
34 lines
1.3 KiB
C
/*===-- clang-c/FatalErrorHandler.h - Fatal Error Handling --------*- C -*-===*\
|
|
|* *|
|
|
|* Part of the LLVM Project, under the Apache License v2.0 with LLVM *|
|
|
|* Exceptions. *|
|
|
|* See https://llvm.org/LICENSE.txt for license information. *|
|
|
|* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception *|
|
|
|* *|
|
|
\*===----------------------------------------------------------------------===*/
|
|
|
|
#ifndef LLVM_CLANG_C_FATAL_ERROR_HANDLER_H
|
|
#define LLVM_CLANG_C_FATAL_ERROR_HANDLER_H
|
|
|
|
#include "clang-c/ExternC.h"
|
|
#include "clang-c/Platform.h"
|
|
|
|
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).
|
|
*/
|
|
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).
|
|
*/
|
|
CINDEX_LINKAGE void clang_uninstall_llvm_fatal_error_handler(void);
|
|
|
|
LLVM_CLANG_C_EXTERN_C_END
|
|
|
|
#endif
|