ΒΆclang::transformer::EditGenerator editList(
    llvm::SmallVector<ASTEdit, 1> Edits)

Description

Lifts a list of `ASTEdit`s into an `EditGenerator`. The `EditGenerator` will return an empty vector if any of the edits apply to portions of the source that are ineligible for rewriting (certain interactions with macros, for example) and it will fail if any invariants are violated relating to bound nodes in the match. However, it does not fail in the case of conflicting edits -- conflict handling is left to clients. We recommend use of the \c AtomicChange or \c Replacements classes for assistance in detecting such conflicts.

Declared at: clang/include/clang/Tooling/Transformer/RewriteRule.h:131

Parameters

llvm::SmallVector<ASTEdit, 1> Edits