clang-tools 22.0.0git
Shutdown.cpp File Reference
#include "support/Shutdown.h"
#include <atomic>
#include <cstdlib>
#include <thread>

Go to the source code of this file.

Namespaces

namespace  clang
 ===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
namespace  clang::clangd
 FIXME: Skip testing on windows temporarily due to the different escaping code mode.

Functions

void clang::clangd::abortAfterTimeout (std::chrono::seconds Timeout)
 Causes this process to crash if still running after Timeout.
void clang::clangd::requestShutdown ()
 Sets a flag to indicate that clangd was sent a shutdown signal, and the transport loop should exit at the next opportunity.
bool clang::clangd::shutdownRequested ()
 Checks whether requestShutdown() was called.

Variables

static std::atomic< bool > clang::clangd::ShutdownRequested = {false}