clang-tools 20.0.0git
Classes | Namespaces | Functions | Variables
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, Canceler > clang::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< CancelState > clang::clangd::StateKey