CXErrorCode.odin (1756B)
1 /*===-- clang-c/CXErrorCode.h - C Index Error Codes --------------*- 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 |* This header provides the CXErrorCode enumerators. *| 11 |* *| 12 \*===----------------------------------------------------------------------===*/ 13 package libclang 14 15 import "core:c" 16 17 _ :: c 18 19 // LLVM_CLANG_C_CXERRORCODE_H :: 20 21 /** 22 * Error codes returned by libclang routines. 23 * 24 * Zero (\c CXError_Success) is the only error code indicating success. Other 25 * error codes, including not yet assigned non-zero values, indicate errors. 26 */ 27 Error_Code :: enum c.int { 28 /** 29 * No error. 30 */ 31 Success, 32 33 /** 34 * A generic error code, no further details are available. 35 * 36 * Errors of this kind can get their own specific error codes in future 37 * libclang versions. 38 */ 39 Failure, 40 41 /** 42 * libclang crashed while performing the requested operation. 43 */ 44 Crashed, 45 46 /** 47 * The function detected that the arguments violate the function 48 * contract. 49 */ 50 InvalidArguments, 51 52 /** 53 * An AST deserialization error has occurred. 54 */ 55 ASTReadError, 56 } 57