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

#include "clang/AST/ASTImportError.h"

Inheritance diagram for clang::ASTImportError:
Inheritance graph
[legend]

Public Types

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

Public Member Functions

 ASTImportError ()
 
 ASTImportError (const ASTImportError &Other)
 
ASTImportErroroperator= (const ASTImportError &Other)
 
 ASTImportError (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.

Enumerator
NameConflict 
UnsupportedConstruct 

Naming ambiguity (likely ODR violation).

Unknown 

Not supported node or case.

Other error.

Definition at line 24 of file ASTImportError.h.

Constructor & Destructor Documentation

◆ ASTImportError() [1/3]

clang::ASTImportError::ASTImportError ( )
inline

Definition at line 34 of file ASTImportError.h.

◆ ASTImportError() [2/3]

clang::ASTImportError::ASTImportError ( const ASTImportError Other)
inline

Definition at line 35 of file ASTImportError.h.

◆ ASTImportError() [3/3]

clang::ASTImportError::ASTImportError ( ErrorKind  Error)
inline

Definition at line 40 of file ASTImportError.h.

Member Function Documentation

◆ convertToErrorCode()

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

Definition at line 102 of file ASTImporter.cpp.

◆ log()

void clang::ASTImportError::log ( llvm::raw_ostream &  OS) const
override

Definition at line 100 of file ASTImporter.cpp.

References toString().

◆ operator=()

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

Definition at line 36 of file ASTImportError.h.

References Error, and clang::Other.

◆ toString()

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

Definition at line 86 of file ASTImporter.cpp.

References Error, NameConflict, Unknown, and UnsupportedConstruct.

Referenced by log().

Member Data Documentation

◆ Error

ErrorKind clang::ASTImportError::Error

Definition at line 30 of file ASTImportError.h.

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

◆ ID

char clang::ASTImportError::ID
static

Definition at line 32 of file ASTImportError.h.


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