clang  16.0.0git
Public Member Functions | List of all members
clang::ChildErrorHandlingStrategy Class Reference

How to handle import errors that occur when import of a child declaration of a DeclContext fails. More...

Public Member Functions

 ChildErrorHandlingStrategy (const DeclContext *FromDC)
 
 ChildErrorHandlingStrategy (const Decl *FromD)
 
void handleChildImportResult (Error &ResultErr, Error &&ChildErr)
 Process the import result of a child (of the current declaration). More...
 
bool ignoreChildErrorOnParent (Decl *FromChildD) const
 Determine if import failure of a child does not cause import failure of its parent. More...
 

Detailed Description

How to handle import errors that occur when import of a child declaration of a DeclContext fails.

Definition at line 141 of file ASTImporter.cpp.

Constructor & Destructor Documentation

◆ ChildErrorHandlingStrategy() [1/2]

clang::ChildErrorHandlingStrategy::ChildErrorHandlingStrategy ( const DeclContext FromDC)
inline

Definition at line 153 of file ASTImporter.cpp.

◆ ChildErrorHandlingStrategy() [2/2]

clang::ChildErrorHandlingStrategy::ChildErrorHandlingStrategy ( const Decl FromD)
inline

Definition at line 155 of file ASTImporter.cpp.

Member Function Documentation

◆ handleChildImportResult()

void clang::ChildErrorHandlingStrategy::handleChildImportResult ( Error &  ResultErr,
Error &&  ChildErr 
)
inline

Process the import result of a child (of the current declaration).

Parameters
ResultErrThe import error that can be used as result of importing the parent. This may be changed by the function.
ChildErrResult of importing a child. Can be success or error.

Definition at line 163 of file ASTImporter.cpp.

Referenced by clang::ASTNodeImporter::ImportDeclContext().

◆ ignoreChildErrorOnParent()

bool clang::ChildErrorHandlingStrategy::ignoreChildErrorOnParent ( Decl FromChildD) const
inline

Determine if import failure of a child does not cause import failure of its parent.

Definition at line 172 of file ASTImporter.cpp.

References clang::DeclContext::containsDecl().


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