reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

tools/clang/tools/extra/clangd/Context.h
   74   static const Context &current();

References

tools/clang/tools/extra/clangd/Cancellation.cpp
   21       Context::current().derive(FlagKey, Flag),
tools/clang/tools/extra/clangd/Cancellation.h
   81 bool isCancelled(const Context &Ctx = Context::current());
tools/clang/tools/extra/clangd/ClangdLSPServer.cpp
  398     return Context::current().derive(
 1194     : BackgroundContext(Context::current().clone()), Transp(Transp),
tools/clang/tools/extra/clangd/ClangdLSPServer.h
  168         [CB = std::move(CB), Ctx = Context::current().clone()](
tools/clang/tools/extra/clangd/ClangdServer.cpp
  146         Context::current().clone(), FSProvider, CDB,
tools/clang/tools/extra/clangd/Context.h
  208       : Restore(Context::current().derive(K, std::move(V))) {}
  213       : Restore(Context::current().derive(std::forward<T>(V))) {}
tools/clang/tools/extra/clangd/SourceCode.cpp
  125   auto *Enc = Context::current().get(kCurrentOffsetEncoding);
tools/clang/tools/extra/clangd/TUScheduler.cpp
   78   if (auto *File = Context::current().get(kFileBeingProcessed))
  586                           Context::current().clone(),
  644          Context::current().derive(kFileBeingProcessed, FileName), UpdateType});
  923   PreambleTasks->runAsync(Name, [Ctx = Context::current().clone(),
  981                Ctx = Context::current().derive(kFileBeingProcessed, File),
tools/clang/tools/extra/clangd/Threading.h
  131       std::move(Action), Context::current().clone());
tools/clang/tools/extra/clangd/Trace.cpp
   53     return Context::current().derive(
   62     Context::current().getExisting(SpanKey)->markEnded();
   95       auto *Parent = Context::current().get(SpanKey);
  214     return Context::current().clone();
tools/clang/tools/extra/clangd/unittests/ClangdTests.cpp
  272       Got = Context::current().getExisting(Secret);
  280       Got = Context::current().getExisting(Secret);
tools/clang/tools/extra/clangd/unittests/TUSchedulerTests.cpp
   83         auto D = Context::current().get(DiagsCallbackKey);
  410                 EXPECT_THAT(Context::current().get(NonceKey), Pointee(Nonce));
  423                 EXPECT_THAT(Context::current().get(NonceKey), Pointee(Nonce));
  441                 EXPECT_THAT(Context::current().get(NonceKey), Pointee(Nonce));
  696     EXPECT_EQ(Context::current().getExisting(TestKey), 10);