ccls/src/clang_utils.h

21 lines
479 B
C
Raw Normal View History

#pragma once
#include "lsp_diagnostic.h"
#include <clang-c/Index.h>
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);
std::string ToString(CXString cx_string);
std::string ToString(CXCursorKind cursor_kind);
const char* ClangBuiltinTypeName(CXTypeKind);