13#ifndef LLVM_CLANG_TOOLS_EXTRA_CLANGD_FORMAT_H
14#define LLVM_CLANG_TOOLS_EXTRA_CLANGD_FORMAT_H
16#include "clang/Format/Format.h"
17#include "clang/Tooling/Core/Replacement.h"
18#include "llvm/ADT/StringRef.h"
41std::vector<tooling::Replacement>
43 llvm::StringRef InsertedText, format::FormatStyle Style);
49 const std::vector<tooling::Replacement> &Replacements);
unsigned transformCursorPosition(unsigned Offset, const std::vector< tooling::Replacement > &Replacements)
Determine the new cursor position after applying Replacements.
std::vector< tooling::Replacement > formatIncremental(llvm::StringRef OriginalCode, unsigned OriginalCursor, llvm::StringRef InsertedText, format::FormatStyle Style)
Applies limited formatting around new InsertedText.
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//