ΒΆtooling::Replacements cleanup(
    const clang::format::FormatStyle& Style,
    llvm::StringRef Code,
    ArrayRef<tooling::Range> Ranges,
    llvm::StringRef FileName = "<stdin>")

Description

Clean up any erroneous/redundant code in the given \p Ranges in \p Code. Returns the ``Replacements`` that clean up all \p Ranges in \p Code.

Declared at: clang/include/clang/Format/Format.h:4180

Parameters

const clang::format::FormatStyle& Style
llvm::StringRef Code
ArrayRef<tooling::Range> Ranges
llvm::StringRef FileName = "<stdin>"