2017-05-20 06:35:14 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "language_server_api.h"
|
|
|
|
|
|
|
|
#include <clang-c/Index.h>
|
|
|
|
|
|
|
|
#include <optional.h>
|
2017-09-22 01:14:57 +00:00
|
|
|
#include <vector>
|
|
|
|
|
2017-05-20 06:35:14 +00:00
|
|
|
using namespace std::experimental;
|
|
|
|
|
2017-09-22 01:14:57 +00:00
|
|
|
optional<lsDiagnostic> BuildAndDisposeDiagnostic(CXDiagnostic diagnostic,
|
|
|
|
const std::string& path);
|
2017-05-21 03:46:15 +00:00
|
|
|
|
|
|
|
// Returns the absolute path to |file|.
|
|
|
|
std::string FileName(CXFile file);
|
2017-11-04 22:29:03 +00:00
|
|
|
|
|
|
|
std::string ToString(CXString cx_string);
|
|
|
|
|
|
|
|
std::string ToString(CXCursorKind cursor_kind);
|