Home
last modified time | relevance | path

Searched refs:WithContext (Results 1 – 14 of 14) sorted by relevance

/external/llvm-project/clang-tools-extra/clangd/support/
DContext.h189 class LLVM_NODISCARD WithContext {
191 WithContext(Context C) : Restore(Context::swapCurrent(std::move(C))) {} in WithContext() function
192 ~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;
DTrace.h159 WithContext RestoreCtx;
DThreading.h128 WithContext WithCtx(std::move(Ctx)); in runAsync()
/external/llvm-project/clang-tools-extra/clangd/unittests/support/
DCancellationTests.cpp17 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()
/external/tensorflow/tensorflow/core/platform/default/
Dcontext.h29 class WithContext {
31 explicit WithContext(const Context& x) {} in WithContext() function
32 ~WithContext() {} in ~WithContext()
/external/llvm-project/clang-tools-extra/clangd/
DTUScheduler.cpp273 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 …]
DClangdLSPServer.cpp170 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()
/external/tensorflow/tensorflow/core/platform/
Dcontext.h37 class WithContext; variable
Dthreadpool.cc82 WithContext wc(t.f->context); in ExecuteTask()
/external/llvm-project/clang-tools-extra/clangd/index/
DBackground.cpp112 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()
/external/tensorflow/tensorflow/core/kernels/batching_util/
Dbatch_resource_base.cc558 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()
/external/llvm-project/clang-tools-extra/clangd/unittests/
DTUSchedulerTests.cpp287 WithContext C(std::move(T.first)); in TEST_F()
296 WithContext C(std::move(T.first)); in TEST_F()
/external/tensorflow/tensorflow/core/framework/
Drun_handler.cc85 WithContext wc(t.f->context); in ExecuteTask()
/external/tensorflow/tensorflow/core/common_runtime/
Dexecutor.cc680 WithContext wc(context_); in Process()