Path: blob/main/contrib/llvm-project/clang/include/clang-c/FatalErrorHandler.h
35233 views
/*===-- clang-c/FatalErrorHandler.h - Fatal Error Handling --------*- C -*-===*\1|* *|2|* Part of the LLVM Project, under the Apache License v2.0 with LLVM *|3|* Exceptions. *|4|* See https://llvm.org/LICENSE.txt for license information. *|5|* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception *|6|* *|7\*===----------------------------------------------------------------------===*/89#ifndef LLVM_CLANG_C_FATAL_ERROR_HANDLER_H10#define LLVM_CLANG_C_FATAL_ERROR_HANDLER_H1112#include "clang-c/ExternC.h"1314LLVM_CLANG_C_EXTERN_C_BEGIN1516/**17* Installs error handler that prints error message to stderr and calls abort().18* Replaces currently installed error handler (if any).19*/20void clang_install_aborting_llvm_fatal_error_handler(void);2122/**23* Removes currently installed error handler (if any).24* If no error handler is intalled, the default strategy is to print error25* message to stderr and call exit(1).26*/27void clang_uninstall_llvm_fatal_error_handler(void);2829LLVM_CLANG_C_EXTERN_C_END3031#endif323334