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

#include "clang/AST/ASTImporter.h"

Inheritance diagram for clang::ImportError:
Inheritance graph
[legend]
Collaboration diagram for clang::ImportError:
Collaboration graph
[legend]

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 (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 52 of file ASTImporter.h.

Member Enumeration Documentation

◆ ErrorKind

Kind of error when importing an AST component.

Enumerator
NameConflict 
UnsupportedConstruct 

Naming ambiguity (likely ODR violation).

Unknown 

Not supported node or case.

Other error.

Definition at line 55 of file ASTImporter.h.

Constructor & Destructor Documentation

◆ ImportError() [1/3]

clang::ImportError::ImportError ( )
inline

Definition at line 65 of file ASTImporter.h.

◆ ImportError() [2/3]

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

Definition at line 66 of file ASTImporter.h.

◆ ImportError() [3/3]

clang::ImportError::ImportError ( ErrorKind  Error)
inline

Definition at line 71 of file ASTImporter.h.

Member Function Documentation

◆ convertToErrorCode()

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

Definition at line 105 of file ASTImporter.cpp.

◆ log()

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

Definition at line 101 of file ASTImporter.cpp.

References toString().

◆ operator=()

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

Definition at line 67 of file ASTImporter.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 61 of file ASTImporter.h.

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

◆ ID

char clang::ImportError::ID
static

Definition at line 63 of file ASTImporter.h.


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