ccls/src/platform.h

27 lines
630 B
C
Raw Normal View History

#pragma once
2018-03-31 03:16:33 +00:00
#include <optional>
#include <string_view>
#include <memory>
#include <string>
2017-03-29 06:33:38 +00:00
#include <vector>
2017-03-25 20:27:28 +00:00
void PlatformInit();
std::string GetExecutablePath();
2017-03-28 01:47:12 +00:00
std::string NormalizePath(const std::string& path);
2018-04-08 00:10:54 +00:00
void SetThreadName(const std::string& thread_name);
2017-03-29 06:33:38 +00:00
2018-03-31 03:16:33 +00:00
std::optional<int64_t> GetLastModificationTime(const std::string& absolute_path);
2017-08-17 18:02:47 +00:00
// Free any unused memory and return it to the system.
void FreeUnusedMemory();
// Stop self and wait for SIGCONT.
void TraceMe();
std::string GetExternalCommandOutput(const std::vector<std::string>& command,
std::string_view input);