clang-tools  7.0.0
Namespaces | Functions
SourceCode.cpp File Reference
#include "SourceCode.h"
#include "Logger.h"
#include "clang/AST/ASTContext.h"
#include "clang/Basic/SourceManager.h"
#include "clang/Lex/Lexer.h"
#include "llvm/Support/Errc.h"
#include "llvm/Support/Error.h"
#include "llvm/Support/Path.h"
Include dependency graph for SourceCode.cpp:

Go to the source code of this file.

Namespaces

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

Functions

template<typename Callback >
static bool clang::clangd::iterateCodepoints (StringRef U8, const Callback &CB)
 
static size_t clang::clangd::measureUTF16 (StringRef U8, int U16Units, bool &Valid)
 
static size_t clang::clangd::utf16Len (StringRef U8)
 
llvm::Expected< size_t > clang::clangd::positionToOffset (StringRef Code, Position P, bool AllowColumnsBeyondLineLength)
 
Position clang::clangd::offsetToPosition (StringRef Code, size_t Offset)
 
Position clang::clangd::sourceLocToPosition (const SourceManager &SM, SourceLocation Loc)
 Turn a SourceLocation into a [line, column] pair. More...
 
Range clang::clangd::halfOpenToRange (const SourceManager &SM, CharSourceRange R)
 
std::pair< size_t, size_t > clang::clangd::offsetToClangLineColumn (StringRef Code, size_t Offset)
 
std::pair< llvm::StringRef, llvm::StringRef > clang::clangd::splitQualifiedName (llvm::StringRef QName)
 From "a::b::c", return {"a::b::", "c"}. More...
 
TextEdit clang::clangd::replacementToEdit (StringRef Code, const tooling::Replacement &R)
 
std::vector< TextEdit > clang::clangd::replacementsToEdits (StringRef Code, const tooling::Replacements &Repls)
 
llvm::Optional< std::string > clang::clangd::getAbsoluteFilePath (const FileEntry *F, const SourceManager &SourceMgr)
 Get the absolute file path of a given file entry. More...