#pragma once #include "lsp_diagnostic.h" #include #if USE_CLANG_CXX #include #endif #include #include std::optional 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 ConvertClangReplacementsIntoTextEdits( llvm::StringRef document, const std::vector& clang_replacements); #endif