clang-tools 19.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
 

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