clang-tools
9.0.0
|
#include "Format.h"
#include "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"
Go to the source code of this file.
Namespaces | |
clang | |
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===// | |
clang::clangd | |
Functions | |
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... | |
tooling::Replacements Changes |
Definition at line 108 of file Format.cpp.
Referenced by clang::clangd::BackgroundQueue::boost(), clang::clangd::OverlayCDB::OverlayCDB(), and clang::clangd::ClangdServer::rename().
std::string CursorPlaceholder |
Definition at line 115 of file Format.cpp.
std::vector<tooling::Range> FormatRanges |
Definition at line 111 of file Format.cpp.