clang  10.0.0svn
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)
 
 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 50 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 53 of file ASTImporter.h.

Constructor & Destructor Documentation

◆ ImportError() [1/3]

clang::ImportError::ImportError ( )
inline

Definition at line 63 of file ASTImporter.h.

◆ ImportError() [2/3]

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

Definition at line 64 of file ASTImporter.h.

◆ ImportError() [3/3]

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

Member Function Documentation

◆ convertToErrorCode()

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

Definition at line 103 of file ASTImporter.cpp.

References ID.

Referenced by ImportError().

◆ log()

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

Definition at line 99 of file ASTImporter.cpp.

References toString().

Referenced by ImportError().

◆ toString()

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

Definition at line 85 of file ASTImporter.cpp.

References Error, NameConflict, Unknown, and UnsupportedConstruct.

Referenced by ImportError(), and log().

Member Data Documentation

◆ Error

ErrorKind clang::ImportError::Error

Definition at line 59 of file ASTImporter.h.

Referenced by clang::ASTNodeImporter::ASTNodeImporter(), clang::ASTImporter::GetOriginalDecl(), clang::ASTNodeImporter::import(), clang::ASTNodeImporter::ImportArrayChecked(), clang::ASTNodeImporter::ImportDeclarationNameLoc(), clang::ASTNodeImporter::ImportDeclContext(), clang::ASTNodeImporter::ImportDefinition(), clang::ASTNodeImporter::ImportDefinitionIfNeeded(), clang::ASTNodeImporter::ImportFunctionTemplateWithTemplateArgsFromSpecialization(), clang::ASTNodeImporter::ImportOverriddenMethods(), clang::ASTNodeImporter::ImportTemplateArgumentListInfo(), clang::ASTNodeImporter::ImportTemplateInformation(), clang::ASTImporter::setImportDeclError(), clang::ASTNodeImporter::shouldForceImportDeclContext(), toString(), clang::ASTNodeImporter::VisitAtomicExpr(), clang::ASTNodeImporter::VisitCallExpr(), clang::ASTNodeImporter::VisitClassTemplateSpecializationDecl(), clang::ASTNodeImporter::VisitCXXConstructExpr(), clang::ASTNodeImporter::VisitCXXDefaultArgExpr(), clang::ASTNodeImporter::VisitCXXDependentScopeMemberExpr(), clang::ASTNodeImporter::VisitCXXMemberCallExpr(), clang::ASTNodeImporter::VisitCXXNewExpr(), clang::ASTNodeImporter::VisitCXXTemporaryObjectExpr(), clang::ASTNodeImporter::VisitCXXUnresolvedConstructExpr(), clang::ASTNodeImporter::VisitDeclRefExpr(), clang::ASTNodeImporter::VisitDependentScopeDeclRefExpr(), clang::ASTNodeImporter::VisitDependentTemplateSpecializationType(), clang::ASTNodeImporter::VisitDesignatedInitExpr(), clang::ASTNodeImporter::VisitEmptyDecl(), clang::ASTNodeImporter::VisitExprWithCleanups(), clang::ASTNodeImporter::VisitFriendDecl(), clang::ASTNodeImporter::VisitInitListExpr(), clang::ASTNodeImporter::VisitLambdaExpr(), clang::ASTNodeImporter::VisitLinkageSpecDecl(), clang::ASTNodeImporter::VisitMemberExpr(), clang::ASTNodeImporter::VisitObjCCategoryImplDecl(), clang::ASTNodeImporter::VisitObjCImplementationDecl(), clang::ASTNodeImporter::VisitObjCPropertyImplDecl(), clang::ASTNodeImporter::VisitParenListExpr(), clang::ASTNodeImporter::VisitParmVarDecl(), clang::ASTNodeImporter::VisitSizeOfPackExpr(), clang::ASTNodeImporter::VisitStringLiteral(), clang::ASTNodeImporter::VisitTemplateSpecializationType(), clang::ASTNodeImporter::VisitTypeTraitExpr(), clang::ASTNodeImporter::VisitUnresolvedLookupExpr(), clang::ASTNodeImporter::VisitUnresolvedMemberExpr(), and clang::ASTNodeImporter::VisitVarTemplateSpecializationDecl().

◆ ID

char clang::ImportError::ID
static

Definition at line 61 of file ASTImporter.h.

Referenced by convertToErrorCode().


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