ccls/src/clang_utils.h

20 lines
469 B
C
Raw Normal View History

#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>
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);
std::string ToString(CXString cx_string);
std::string ToString(CXCursorKind cursor_kind);