ccls/src/platform.hh
Fangrui Song 6717986541 Adapt llvmorg-11-init-1314-g777180a32b6: StringRef's conversion to std::string is now explicit
For compatibility with LLVM 7, the call sites have to be a bit verbose.
2020-01-29 00:29:06 -08:00

21 lines
412 B
C++

// Copyright 2017-2020 ccls Authors
// SPDX-License-Identifier: Apache-2.0
#pragma once
#include <llvm/ADT/StringRef.h>
#include <string>
namespace ccls {
std::string normalizePath(llvm::StringRef path);
// Free any unused memory and return it to the system.
void freeUnusedMemory();
// Stop self and wait for SIGCONT.
void traceMe();
void spawnThread(void *(*fn)(void *), void *arg);
} // namespace ccls