clang
22.0.0git
include
clang-c
FatalErrorHandler.h
Go to the documentation of this file.
1
/*===-- clang-c/FatalErrorHandler.h - Fatal Error Handling --------*- C -*-===*\
2
|* *|
3
|* Part of the LLVM Project, under the Apache License v2.0 with LLVM *|
4
|* Exceptions. *|
5
|* See https://llvm.org/LICENSE.txt for license information. *|
6
|* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception *|
7
|* *|
8
\*===----------------------------------------------------------------------===*/
9
10
#ifndef LLVM_CLANG_C_FATAL_ERROR_HANDLER_H
11
#define LLVM_CLANG_C_FATAL_ERROR_HANDLER_H
12
13
#include "
clang-c/ExternC.h
"
14
#include "
clang-c/Platform.h
"
15
16
LLVM_CLANG_C_EXTERN_C_BEGIN
17
18
/**
19
* Installs error handler that prints error message to stderr and calls abort().
20
* Replaces currently installed error handler (if any).
21
*/
22
CINDEX_LINKAGE
void
clang_install_aborting_llvm_fatal_error_handler
(
void
);
23
24
/**
25
* Removes currently installed error handler (if any).
26
* If no error handler is intalled, the default strategy is to print error
27
* message to stderr and call exit(1).
28
*/
29
CINDEX_LINKAGE
void
clang_uninstall_llvm_fatal_error_handler
(
void
);
30
31
LLVM_CLANG_C_EXTERN_C_END
32
33
#endif
ExternC.h
LLVM_CLANG_C_EXTERN_C_END
#define LLVM_CLANG_C_EXTERN_C_END
Definition
ExternC.h:36
LLVM_CLANG_C_EXTERN_C_BEGIN
#define LLVM_CLANG_C_EXTERN_C_BEGIN
Definition
ExternC.h:35
clang_install_aborting_llvm_fatal_error_handler
LLVM_CLANG_C_EXTERN_C_BEGIN CINDEX_LINKAGE void clang_install_aborting_llvm_fatal_error_handler(void)
Installs error handler that prints error message to stderr and calls abort().
clang_uninstall_llvm_fatal_error_handler
CINDEX_LINKAGE void clang_uninstall_llvm_fatal_error_handler(void)
Removes currently installed error handler (if any).
Platform.h
CINDEX_LINKAGE
#define CINDEX_LINKAGE
Definition
Platform.h:38
Generated on
for clang by
1.14.0