clang 19.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).
 
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 140 of file ASTImporter.cpp.

Constructor & Destructor Documentation

◆ ChildErrorHandlingStrategy() [1/2]

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

Definition at line 152 of file ASTImporter.cpp.

References clang::isa().

◆ ChildErrorHandlingStrategy() [2/2]

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

Definition at line 154 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 162 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 171 of file ASTImporter.cpp.

References clang::DeclContext::containsDecl().


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