Searched refs:WithContext (Results 1 – 10 of 10) sorted by relevance
187 class LLVM_NODISCARD WithContext {189 WithContext(Context C) : Restore(Context::swapCurrent(std::move(C))) {} in WithContext() function190 ~WithContext() { Context::swapCurrent(std::move(Restore)); } in ~WithContext()191 WithContext(const WithContext &) = delete;192 WithContext &operator=(const WithContext &) = delete;193 WithContext(WithContext &&) = delete;194 WithContext &operator=(WithContext &&) = delete;214 WithContext Restore;
159 WithContext RestoreCtx;
130 WithContext WithCtx(std::move(Ctx)); in runAsync()
16 WithContext ContextWithCancellation(std::move(Task.first)); in TEST()23 llvm::Optional<WithContext> ContextWithCancellation; in TEST()37 WithContext ContextWithCancellation(std::move(Task.first)); in TEST()52 WithContext WithOuter(Outer.first.clone()); in NestedTasks()75 WithContext ContextGuard(std::move(Ctx)); in TEST()
110 WithContext BGContext(std::move(Ctx)); in __anonb59968f20302()126 llvm::Optional<WithContext> WithProvidedContext; in changedFilesTask()159 llvm::Optional<WithContext> WithProvidedContext; in indexFileTask()360 WithContext WithProvidedContext(ContextProvider(TU)); in loadProject()
493 WithContext Guard(std::move(CurrentReq->Ctx)); in run()1298 WithContext WithProvidedContext(ContextProvider(FileName)); in runTask()1329 WithContext WC(std::move(Ctx)); in startTask()1339 WithContext WC(Ctx.clone()); in startTask()1382 llvm::Optional<WithContext> Ctx; in run()1427 WithContext Guard(std::move(CurrentRequest->Ctx)); in run()1700 WithContext WithProvidedContext(Opts.ContextProvider(Path)); in runWithSemaphore()1707 WithContext WC(std::move(Ctx)); in runWithSemaphore()1708 WithContext WithProvidedContext(Opts.ContextProvider(Path)); in runWithSemaphore()1746 WithContext WithProvidedContext(Opts.ContextProvider(File)); in runWithPreamble()[all …]
412 WithContext WithProvidedContext(Opts.ContextProvider(Request.FileName)); in lookupCDB()501 WithContext WithCtx(std::move(ActiveTask->Ctx)); in run()680 WithContext WithProvidedContent(Parent.Opts.ContextProvider(AllFiles[I])); in filter()
163 WithContext HandlerContext(handlerContext()); in onNotify()184 WithContext HandlerContext(handlerContext()); in onCall()186 WithContext WithCancel(cancelableRequestContext(ID)); in onCall()207 WithContext HandlerContext(handlerContext()); in onReply()488 WithContext MainContext(BackgroundContext.clone()); in onInitialize()
296 WithContext Ctx(ContextProvider( in check()
295 WithContext C(std::move(T.first)); in TEST_F()304 WithContext C(std::move(T.first)); in TEST_F()