Searched refs:WithContext (Results 1 – 14 of 14) sorted by relevance
189 class LLVM_NODISCARD WithContext {191 WithContext(Context C) : Restore(Context::swapCurrent(std::move(C))) {} in WithContext() function192 ~WithContext() { Context::swapCurrent(std::move(Restore)); } in ~WithContext()193 WithContext(const WithContext &) = delete;194 WithContext &operator=(const WithContext &) = delete;195 WithContext(WithContext &&) = delete;196 WithContext &operator=(WithContext &&) = delete;216 WithContext Restore;
159 WithContext RestoreCtx;
128 WithContext WithCtx(std::move(Ctx)); in runAsync()
17 WithContext ContextWithCancellation(std::move(Task.first)); in TEST()24 llvm::Optional<WithContext> ContextWithCancellation; in TEST()38 WithContext ContextWithCancellation(std::move(Task.first)); in TEST()53 WithContext WithOuter(Outer.first.clone()); in NestedTasks()76 WithContext ContextGuard(std::move(Ctx)); in TEST()
29 class WithContext {31 explicit WithContext(const Context& x) {} in WithContext() function32 ~WithContext() {} in ~WithContext()
273 WithContext Guard(std::move(CurrentReq->Ctx)); in run()968 WithContext WithProvidedContext(ContextProvider(FileName)); in startTask()990 WithContext WC(std::move(Ctx)); in startTask()1018 llvm::Optional<WithContext> Ctx; in run()1060 WithContext Guard(std::move(CurrentRequest->Ctx)); in run()1066 WithContext WithProvidedContext(ContextProvider(FileName)); in run()1309 WithContext WithProvidedContext(Opts.ContextProvider(Path)); in run()1316 WithContext WC(std::move(Ctx)); in run()1317 WithContext WithProvidedContext(Opts.ContextProvider(Path)); in run()1352 WithContext WithProvidedContext(Opts.ContextProvider(File)); in runWithPreamble()[all …]
170 WithContext HandlerContext(handlerContext()); in onNotify()189 WithContext HandlerContext(handlerContext()); in onCall()191 WithContext WithCancel(cancelableRequestContext(ID)); in onCall()210 WithContext HandlerContext(handlerContext()); in onReply()513 WithContext MainContext(BackgroundContext.clone()); in onInitialize()
37 class WithContext; variable
82 WithContext wc(t.f->context); in ExecuteTask()
112 WithContext BGContext(std::move(Ctx)); in __anon15313cb20302()128 llvm::Optional<WithContext> WithProvidedContext; in changedFilesTask()160 llvm::Optional<WithContext> WithProvidedContext; in indexFileTask()359 WithContext WithProvidedContext(ContextProvider(TU)); in loadProject()
558 WithContext wc(batch->task(batch->num_tasks() - 1).propagated_context); in ProcessFuncBatch()641 WithContext wc(batch->task(batch->num_tasks() - 1).propagated_context); in ProcessBatch()
287 WithContext C(std::move(T.first)); in TEST_F()296 WithContext C(std::move(T.first)); in TEST_F()
85 WithContext wc(t.f->context); in ExecuteTask()
680 WithContext wc(context_); in Process()