ΒΆstd::vector<Range>
calculateRangesAfterReplacements(
    const clang::tooling::Replacements& Replaces,
    const std::vector<Range>& Ranges)

Description

Calculates the new ranges after \p Replaces are applied. These include both the original \p Ranges and the affected ranges of \p Replaces in the new code.

Declared at: clang/include/clang/Tooling/Core/Replacement.h:348

Parameters

const clang::tooling::Replacements& Replaces
const std::vector<Range>& Ranges

Returns

The new ranges after \p Replaces are applied. The new ranges will be sorted and non-overlapping.