class ASTImportError
Declaration
class ASTImportError : public ErrorInfo { /* full declaration omitted */ };
Description
Base class for user error types. Users should declare their error types like: class MyError : public ErrorInfo <MyError > { .... }; This class provides an implementation of the ErrorInfoBase::kind method, which is used by the Error RTTI system.
Declared at: clang/include/clang/AST/ASTImportError.h:21
Inherits from: ErrorInfo
Member Variables
- public clang::ASTImportError::ErrorKind Error
- public static char ID
Method Overview
- public ASTImportError()
- public ASTImportError(const clang::ASTImportError & Other)
- public ASTImportError(clang::ASTImportError::ErrorKind Error)
- public std::error_code convertToErrorCode() const
- public void log(llvm::raw_ostream & OS) const
- public std::string toString() const
Methods
¶ASTImportError()
ASTImportError()
Declared at: clang/include/clang/AST/ASTImportError.h:34
¶ASTImportError(const clang::ASTImportError& Other)
ASTImportError(const clang::ASTImportError& Other)
Declared at: clang/include/clang/AST/ASTImportError.h:35
Parameters
- const clang::ASTImportError& Other
¶ASTImportError(
clang::ASTImportError::ErrorKind Error)
ASTImportError(
clang::ASTImportError::ErrorKind Error)
Declared at: clang/include/clang/AST/ASTImportError.h:40
Parameters
- clang::ASTImportError::ErrorKind Error
¶std::error_code convertToErrorCode() const
std::error_code convertToErrorCode() const
Description
Convert this error to a std::error_code. This is a temporary crutch to enable interaction with code still using std::error_code. It will be removed in the future.
Declared at: clang/include/clang/AST/ASTImportError.h:45
¶void log(llvm::raw_ostream& OS) const
void log(llvm::raw_ostream& OS) const
Description
Print an error message to an output stream.
Declared at: clang/include/clang/AST/ASTImportError.h:44
Parameters
¶std::string toString() const
std::string toString() const
Declared at: clang/include/clang/AST/ASTImportError.h:42