Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / libc / src / __support / StringUtil / tables / stdc_errors.h
blobf0fc78710b18a6b4bd310c4c1563b0192d7b3b07
1 //===-- Map of C standard error numbers to strings --------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_LIBC_SRC___SUPPORT_STRING_UTIL_TABLES_STDC_ERRORS_H
10 #define LLVM_LIBC_SRC___SUPPORT_STRING_UTIL_TABLES_STDC_ERRORS_H
12 #include "src/__support/StringUtil/message_mapper.h"
14 #include <errno.h> // For error macros
16 namespace LIBC_NAMESPACE {
18 LIBC_INLINE_VAR constexpr const MsgTable<4> STDC_ERRORS = {
19 MsgMapping(0, "Success"),
20 MsgMapping(EDOM, "Numerical argument out of domain"),
21 MsgMapping(ERANGE, "Numerical result out of range"),
22 MsgMapping(EILSEQ, "Invalid or incomplete multibyte or wide character"),
25 } // namespace LIBC_NAMESPACE
27 #endif // LLVM_LIBC_SRC___SUPPORT_STRING_UTIL_TABLES_LINUX_ERRORS_H