mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-25 00:55:08 +00:00
31 lines
799 B
C++
31 lines
799 B
C++
#pragma once
|
|
|
|
#include "lsp_diagnostic.h"
|
|
|
|
#include <clang-c/Index.h>
|
|
#if USE_CLANG_CXX
|
|
#include <clang/Format/Format.h>
|
|
#endif
|
|
#include <optional.h>
|
|
|
|
#include <vector>
|
|
|
|
optional<lsDiagnostic> BuildAndDisposeDiagnostic(CXDiagnostic diagnostic,
|
|
const std::string& path);
|
|
|
|
// Returns the absolute path to |file|.
|
|
std::string FileName(CXFile file);
|
|
|
|
std::string ToString(CXString cx_string);
|
|
|
|
std::string ToString(CXCursorKind cursor_kind);
|
|
|
|
const char* ClangBuiltinTypeName(CXTypeKind);
|
|
|
|
// Converts Clang formatting replacement operations into LSP text edits.
|
|
#if USE_CLANG_CXX
|
|
std::vector<lsTextEdit> ConvertClangReplacementsIntoTextEdits(
|
|
llvm::StringRef document,
|
|
const std::vector<clang::tooling::Replacement>& clang_replacements);
|
|
#endif
|