2017-05-20 06:35:14 +00:00
|
|
|
#pragma once
|
|
|
|
|
2018-02-24 00:12:39 +00:00
|
|
|
#include "lsp_diagnostic.h"
|
2017-05-20 06:35:14 +00:00
|
|
|
|
|
|
|
#include <clang-c/Index.h>
|
2017-12-29 16:29:10 +00:00
|
|
|
|
2018-03-31 05:05:21 +00:00
|
|
|
#include <optional>
|
2017-09-22 01:14:57 +00:00
|
|
|
#include <vector>
|
|
|
|
|
2018-03-31 03:16:33 +00:00
|
|
|
std::optional<lsDiagnostic> BuildAndDisposeDiagnostic(CXDiagnostic diagnostic,
|
2017-09-22 01:14:57 +00:00
|
|
|
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);
|
|
|
|
|
2017-12-25 17:04:10 +00:00
|
|
|
std::string ToString(CXCursorKind cursor_kind);
|
|
|
|
|
2018-02-27 01:23:45 +00:00
|
|
|
const char* ClangBuiltinTypeName(CXTypeKind);
|