Home
last modified time | relevance | path

Searched refs:DebouncePolicy (Results 1 – 5 of 5) sorted by relevance

/external/llvm-project/clang-tools-extra/clangd/
DTUScheduler.h70 struct DebouncePolicy { struct
84 static DebouncePolicy fixed(clock::duration); argument
191 DebouncePolicy UpdateDebounce;
DTUScheduler.cpp461 const DebouncePolicy UpdateDebounce;
480 llvm::SmallVector<DebouncePolicy::clock::duration, 8>
856 auto RebuildStartTime = DebouncePolicy::clock::now(); in generateDiagnostics()
859 auto RebuildDuration = DebouncePolicy::clock::now() - RebuildStartTime; in generateDiagnostics()
1405 DebouncePolicy::clock::duration
1406 DebouncePolicy::compute(llvm::ArrayRef<clock::duration> History) const { in compute()
1427 DebouncePolicy DebouncePolicy::fixed(clock::duration T) { in fixed()
1428 DebouncePolicy P; in fixed()
DClangdServer.h141 DebouncePolicy UpdateDebounce = DebouncePolicy{
DClangdServer.cpp121 Opts.UpdateDebounce = DebouncePolicy::fixed(/*zero*/ {}); in optsForTest()
/external/llvm-project/clang-tools-extra/clangd/unittests/
DTUSchedulerTests.cpp248 Opts.UpdateDebounce = DebouncePolicy::fixed(std::chrono::seconds(1)); in TEST_F()
433 Opts.UpdateDebounce = DebouncePolicy::fixed(std::chrono::milliseconds(50)); in TEST_F()
1011 TEST(DebouncePolicy, Compute) { in TEST() argument
1013 std::vector<DebouncePolicy::clock::duration> History = { in TEST()
1019 DebouncePolicy Policy; in TEST()
1023 auto Compute = [&](llvm::ArrayRef<DebouncePolicy::clock::duration> History) { in TEST()