Home
last modified time | relevance | path

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

/llvm-project-15.0.7/clang-tools-extra/clangd/support/
H A DContext.h187 class LLVM_NODISCARD WithContext {
189 WithContext(Context C) : Restore(Context::swapCurrent(std::move(C))) {} in WithContext() function
190 ~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;
H A DTrace.h159 WithContext RestoreCtx;
H A DThreading.h130 WithContext WithCtx(std::move(Ctx)); in runAsync()
/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/support/
H A DCancellationTests.cpp16 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()
/llvm-project-15.0.7/clang-tools-extra/clangd/index/
H A DBackground.cpp110 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()
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DTUScheduler.cpp493 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 …]
H A DGlobalCompilationDatabase.cpp412 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()
H A DClangdLSPServer.cpp163 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()
/llvm-project-15.0.7/clang-tools-extra/clangd/tool/
H A DCheck.cpp296 WithContext Ctx(ContextProvider( in check()
/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/
H A DTUSchedulerTests.cpp295 WithContext C(std::move(T.first)); in TEST_F()
304 WithContext C(std::move(T.first)); in TEST_F()