clang 22.0.0git
FatalErrorHandler.h File Reference
#include "clang-c/ExternC.h"
#include "clang-c/Platform.h"

Go to the source code of this file.

Functions

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().
CINDEX_LINKAGE void clang_uninstall_llvm_fatal_error_handler (void)
 Removes currently installed error handler (if any).

Function Documentation

◆ 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().

Replaces currently installed error handler (if any).

References CINDEX_LINKAGE.

◆ clang_uninstall_llvm_fatal_error_handler()

CINDEX_LINKAGE void clang_uninstall_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).

References CINDEX_LINKAGE, and LLVM_CLANG_C_EXTERN_C_END.