clang 22.0.0git
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).
bool ignoreChildErrorOnParent (Decl *FromChildD) const
 Determine if import failure of a child does not cause import failure of its parent.

Detailed Description

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

Definition at line 139 of file ASTImporter.cpp.

Constructor & Destructor Documentation

◆ ChildErrorHandlingStrategy() [1/2]

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

Definition at line 151 of file ASTImporter.cpp.

References clang::isa().

◆ ChildErrorHandlingStrategy() [2/2]

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

Definition at line 153 of file ASTImporter.cpp.

References clang::isa().

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 161 of file ASTImporter.cpp.

References clang::Error.

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 170 of file ASTImporter.cpp.


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