clang  15.0.0git
Public Types | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
clang::ImportError Class Reference

#include "clang/AST/ASTImportError.h"

Inheritance diagram for clang::ImportError:
Inheritance graph
Collaboration diagram for clang::ImportError:
Collaboration graph

Public Types

enum  ErrorKind { NameConflict, UnsupportedConstruct, Unknown }
 Kind of error when importing an AST component. More...

Public Member Functions

 ImportError ()
 ImportError (const ImportError &Other)
ImportErroroperator= (const ImportError &Other)
 ImportError (ErrorKind Error)
std::string toString () const
void log (llvm::raw_ostream &OS) const override
std::error_code convertToErrorCode () const override

Public Attributes

ErrorKind Error

Static Public Attributes

static char ID

Detailed Description

Definition at line 21 of file ASTImportError.h.

Member Enumeration Documentation

◆ ErrorKind

Kind of error when importing an AST component.


Naming ambiguity (likely ODR violation).


Not supported node or case.

Other error.

Definition at line 24 of file ASTImportError.h.

Constructor & Destructor Documentation

◆ ImportError() [1/3]

clang::ImportError::ImportError ( )

Definition at line 34 of file ASTImportError.h.

◆ ImportError() [2/3]

clang::ImportError::ImportError ( const ImportError Other)

Definition at line 35 of file ASTImportError.h.

◆ ImportError() [3/3]

clang::ImportError::ImportError ( ErrorKind  Error)

Definition at line 40 of file ASTImportError.h.

Member Function Documentation

◆ convertToErrorCode()

std::error_code clang::ImportError::convertToErrorCode ( ) const

Definition at line 105 of file ASTImporter.cpp.

◆ log()

void clang::ImportError::log ( llvm::raw_ostream &  OS) const

Definition at line 101 of file ASTImporter.cpp.

References toString().

◆ operator=()

ImportError& clang::ImportError::operator= ( const ImportError Other)

Definition at line 36 of file ASTImportError.h.

References Error.

◆ toString()

std::string clang::ImportError::toString ( ) const

Definition at line 87 of file ASTImporter.cpp.

References Error, NameConflict, Unknown, and UnsupportedConstruct.

Referenced by log().

Member Data Documentation

◆ Error

ErrorKind clang::ImportError::Error

Definition at line 30 of file ASTImportError.h.

Referenced by operator=(), and toString().

◆ ID

char clang::ImportError::ID

Definition at line 32 of file ASTImportError.h.

The documentation for this class was generated from the following files: