ΒΆtooling::Replacements sortIncludes(
    const clang::format::FormatStyle& Style,
    llvm::StringRef Code,
    ArrayRef<tooling::Range> Ranges,
    llvm::StringRef FileName,
    unsigned int* Cursor = nullptr)

Description

Returns the replacements necessary to sort all ``#include`` blocks that are affected by ``Ranges``.

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

Parameters

const clang::format::FormatStyle& Style
llvm::StringRef Code
ArrayRef<tooling::Range> Ranges
llvm::StringRef FileName
unsigned int* Cursor = nullptr