Path: blob/main/contrib/llvm-project/clang/include/clang-c/CXErrorCode.h
35233 views
/*===-- clang-c/CXErrorCode.h - C Index Error Codes --------------*- 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|*===----------------------------------------------------------------------===*|8|* *|9|* This header provides the CXErrorCode enumerators. *|10|* *|11\*===----------------------------------------------------------------------===*/1213#ifndef LLVM_CLANG_C_CXERRORCODE_H14#define LLVM_CLANG_C_CXERRORCODE_H1516#include "clang-c/ExternC.h"17#include "clang-c/Platform.h"1819LLVM_CLANG_C_EXTERN_C_BEGIN2021/**22* Error codes returned by libclang routines.23*24* Zero (\c CXError_Success) is the only error code indicating success. Other25* error codes, including not yet assigned non-zero values, indicate errors.26*/27enum CXErrorCode {28/**29* No error.30*/31CXError_Success = 0,3233/**34* A generic error code, no further details are available.35*36* Errors of this kind can get their own specific error codes in future37* libclang versions.38*/39CXError_Failure = 1,4041/**42* libclang crashed while performing the requested operation.43*/44CXError_Crashed = 2,4546/**47* The function detected that the arguments violate the function48* contract.49*/50CXError_InvalidArguments = 3,5152/**53* An AST deserialization error has occurred.54*/55CXError_ASTReadError = 456};5758LLVM_CLANG_C_EXTERN_C_END5960#endif61626364