class ChildErrorHandlingStrategy

Declaration

class ChildErrorHandlingStrategy { /* full declaration omitted */ };

Description

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

Declared at: clang/lib/AST/ASTImporter.cpp:142

Member Variables

private const clang::DeclContext* const FromDC
This context is imported (in the 'from' domain). It is nullptr if a non-DeclContext is imported.
private const bool IgnoreChildErrors
Ignore import errors of the children. If true, the context can be imported successfully if a child of it failed to import. Otherwise the import errors of the child nodes are accumulated (joined) into the import error object of the parent. (Import of a parent can fail in other ways.)

Method Overview

Methods

ChildErrorHandlingStrategy(
    const clang::DeclContext* FromDC)

Declared at: clang/lib/AST/ASTImporter.cpp:154

Parameters

const clang::DeclContext* FromDC

ChildErrorHandlingStrategy(
    const clang::Decl* FromD)

Declared at: clang/lib/AST/ASTImporter.cpp:156

Parameters

const clang::Decl* FromD

void handleChildImportResult(
    llvm::Error& ResultErr,
    llvm::Error&& ChildErr)

Description

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

Declared at: clang/lib/AST/ASTImporter.cpp:164

Parameters

llvm::Error& ResultErr
The import error that can be used as result of importing the parent. This may be changed by the function.
llvm::Error&& ChildErr
Result of importing a child. Can be success or error.

bool ignoreChildErrorOnParent(
    clang::Decl* FromChildD) const

Description

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

Declared at: clang/lib/AST/ASTImporter.cpp:173

Parameters

clang::Decl* FromChildD