1 /*===-- clang-c/CXErrorCode.h - C Index Error Codes --------------*- C -*-===*\
3 |* Part of the LLVM Project, under the Apache License v2.0 with LLVM *|
5 |* See https://llvm.org/LICENSE.txt for license information. *|
6 |* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception *|
8 |*===----------------------------------------------------------------------===*|
10 |* This header provides the CXErrorCode enumerators. *|
12 \*===----------------------------------------------------------------------===*/
14 #ifndef LLVM_CLANG_C_CXERRORCODE_H
15 #define LLVM_CLANG_C_CXERRORCODE_H
17 #include "clang-c/ExternC.h"
18 #include "clang-c/Platform.h"
20 LLVM_CLANG_C_EXTERN_C_BEGIN
23 * Error codes returned by libclang routines.
25 * Zero (\c CXError_Success) is the only error code indicating success. Other
26 * error codes, including not yet assigned non-zero values, indicate errors.
35 * A generic error code, no further details are available.
37 * Errors of this kind can get their own specific error codes in future
43 * libclang crashed while performing the requested operation.
48 * The function detected that the arguments violate the function
51 CXError_InvalidArguments
= 3,
54 * An AST deserialization error has occurred.
56 CXError_ASTReadError
= 4
59 LLVM_CLANG_C_EXTERN_C_END