clang-tools  16.0.0git
Namespaces | Functions
Format.cpp File Reference
#include "Format.h"
#include "support/Logger.h"
#include "clang/Basic/SourceManager.h"
#include "clang/Format/Format.h"
#include "clang/Lex/Lexer.h"
#include "clang/Tooling/Core/Replacement.h"
#include "llvm/Support/Unicode.h"
Include dependency graph for Format.cpp:

Go to the source code of this file.


 ===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//


std::vector< tooling::Replacement > clang::clangd::formatIncremental (llvm::StringRef Code, unsigned Cursor, llvm::StringRef InsertedText, format::FormatStyle Style)
 Applies limited formatting around new InsertedText. More...
unsigned clang::clangd::transformCursorPosition (unsigned Offset, const std::vector< tooling::Replacement > &Replacements)
 Determine the new cursor position after applying Replacements. More...

Variable Documentation

◆ Changes

tooling::Replacements Changes

◆ CursorPlaceholder

std::string CursorPlaceholder

Definition at line 116 of file Format.cpp.

◆ FormatRanges

std::vector<tooling::Range> FormatRanges

Definition at line 112 of file Format.cpp.