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

Go to the source code of this file.

Classes

struct  clang::clangd::CancelState

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

std::pair< Context, Cancelerclang::clangd::cancelableTask (int Reason=1)
 Defines a new task whose cancellation may be requested.
int clang::clangd::isCancelled (const Context &Ctx=Context::current())
 If the current context is within a cancelled task, returns the reason.

Variables

static Key< CancelStateclang::clangd::StateKey