clang 20.0.0git
Enumerations
CXErrorCode.h File Reference
#include "clang-c/ExternC.h"
#include "clang-c/Platform.h"

Go to the source code of this file.

Enumerations

enum  CXErrorCode {
  CXError_Success = 0 , CXError_Failure = 1 , CXError_Crashed = 2 , CXError_InvalidArguments = 3 ,
  CXError_ASTReadError = 4
}
 Error codes returned by libclang routines. More...
 

Enumeration Type Documentation

◆ CXErrorCode

Error codes returned by libclang routines.

Zero (CXError_Success) is the only error code indicating success. Other error codes, including not yet assigned non-zero values, indicate errors.

Enumerator
CXError_Success 

No error.

CXError_Failure 

A generic error code, no further details are available.

Errors of this kind can get their own specific error codes in future libclang versions.

CXError_Crashed 

libclang crashed while performing the requested operation.

CXError_InvalidArguments 

The function detected that the arguments violate the function contract.

CXError_ASTReadError 

An AST deserialization error has occurred.

Definition at line 28 of file CXErrorCode.h.