Home
last modified time | relevance | path

Searched refs:Subscription (Results 1 – 4 of 4) sorted by relevance

/llvm-project-15.0.7/clang-tools-extra/clangd/support/
H A DFunction.h38 class LLVM_NODISCARD Subscription {
42 Subscription(Event *Parent, unsigned ListenerID) in Subscription() function
47 Subscription() : Parent(nullptr) {} in Subscription() function
48 Subscription(Subscription &&Other) : Parent(nullptr) { in Subscription() function
51 Subscription &operator=(Subscription &&Other) {
66 ~Subscription() { in ~Subscription()
68 *this = Subscription(); // Unsubscribe. in ~Subscription()
75 Subscription observe(Listener L) { in observe()
78 return Subscription(this, ListenerCount); in observe()
/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/support/
H A DFunctionTests.cpp21 Event<int>::Subscription SubA; in TEST()
26 Event<int>::Subscription SubB = E.observe([&](int) { ++N; }); in TEST()
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DGlobalCompilationDatabase.h59 CommandChanged::Subscription watch(CommandChanged::Listener L) const { in watch()
85 CommandChanged::Subscription BaseChanged;
/llvm-project-15.0.7/clang-tools-extra/clangd/index/
H A DBackground.h225 GlobalCompilationDatabase::CommandChanged::Subscription CommandsChanged;