clang 20.0.0git
Functions
FatalErrorHandler.h File Reference
#include "clang-c/ExternC.h"

Go to the source code of this file.

Functions

LLVM_CLANG_C_EXTERN_C_BEGIN void clang_install_aborting_llvm_fatal_error_handler (void)
 Installs error handler that prints error message to stderr and calls abort().
 
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 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).

◆ clang_uninstall_llvm_fatal_error_handler()

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