clang-tools 20.0.0git
|
#include "TUScheduler.h"
#include "CompileCommands.h"
#include "Compiler.h"
#include "Config.h"
#include "Diagnostics.h"
#include "GlobalCompilationDatabase.h"
#include "ParsedAST.h"
#include "Preamble.h"
#include "clang-include-cleaner/Record.h"
#include "support/Cancellation.h"
#include "support/Context.h"
#include "support/Logger.h"
#include "support/MemoryTree.h"
#include "support/Path.h"
#include "support/ThreadCrashReporter.h"
#include "support/Threading.h"
#include "support/Trace.h"
#include "clang/Basic/Stack.h"
#include "clang/Frontend/CompilerInvocation.h"
#include "clang/Tooling/CompilationDatabase.h"
#include "llvm/ADT/FunctionExtras.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/ScopeExit.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Allocator.h"
#include "llvm/Support/Errc.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/FormatVariadic.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/Threading.h"
#include "llvm/Support/raw_ostream.h"
#include <algorithm>
#include <atomic>
#include <chrono>
#include <condition_variable>
#include <functional>
#include <memory>
#include <mutex>
#include <optional>
#include <queue>
#include <string>
#include <thread>
#include <type_traits>
#include <utility>
#include <vector>
Go to the source code of this file.
Classes | |
class | clang::clangd::TUScheduler::ASTCache |
An LRU cache of idle ASTs. More... | |
class | clang::clangd::TUScheduler::HeaderIncluderCache |
A map from header files to an opened "proxy" file that includes them. More... | |
struct | clang::clangd::TUScheduler::FileData |
Namespaces | |
namespace | clang |
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===// | |
namespace | clang::clangd |
FIXME: Skip testing on windows temporarily due to the different escaping code mode. | |
Functions | |
unsigned | clang::clangd::getDefaultAsyncThreadsCount () |
Returns a number of a default async threads to use for TUScheduler. | |
Variables | |
static clang::clangd::Key< std::string > | clang::clangd::FileBeingProcessed |
llvm::unique_function<void()> Action |
Definition at line 699 of file TUScheduler.cpp.
steady_clock::time_point AddTime |
Definition at line 701 of file TUScheduler.cpp.
std::unique_ptr<CompilerInvocation> CI |
Definition at line 554 of file TUScheduler.cpp.
Referenced by clang::clangd::PreamblePatch::apply(), clang::clangd::TestTU::build(), clang::clangd::ParsedAST::build(), clang::clangd::buildCompilerInvocation(), clang::clangd::buildPreamble(), clang::clangd::IncludeStructure::collect(), clang::include_fixer::ClangIncludeFixerPluginAction::CreateASTConsumer(), CoverageCheckerAction::CreateASTConsumer(), CollectEntitiesAction::CreateASTConsumer(), clang::clangd::disableUnsupportedOptions(), clang::doc::ClangDocBitcodeWriter::emitBlock(), clang::clangd::indexStandardLibrary(), clang::clangd::initializeModuleCache(), clang::clangd::isPreambleCompatible(), main(), clang::include_fixer::ClangIncludeFixerPluginAction::ParseArgs(), clang::doc::serialize::parseFullComment(), clang::clangd::TestTU::preamble(), clang::clangd::prepareCompilerInstance(), clang::include_fixer::IncludeFixerSemaSource::setCompilerInstance(), and clang::clangd::toJSON().
std::vector<Diag> CIDiags |
Definition at line 556 of file TUScheduler.cpp.
bool ContentChanged |
Definition at line 665 of file TUScheduler.cpp.
Referenced by clang::clangd::TUScheduler::update().
Context Ctx |
Definition at line 558 of file TUScheduler.cpp.
WantDiagnostics Diagnostics |
Definition at line 662 of file TUScheduler.cpp.
Referenced by clang::replace::applyChanges(), clang::replace::collectReplacementsFromDirectory(), clang::clangd::fromJSON(), and main().
ParseInputs Inputs |
Definition at line 555 of file TUScheduler.cpp.
Canceler Invalidate |
Definition at line 706 of file TUScheduler.cpp.
TUScheduler::ASTActionInvalidation InvalidationPolicy |
Definition at line 705 of file TUScheduler.cpp.
std::string Name |
Definition at line 700 of file TUScheduler.cpp.
std::optional<Context> QueueCtx |
Definition at line 703 of file TUScheduler.cpp.
std::optional<UpdateType> Update |
Definition at line 704 of file TUScheduler.cpp.
WantDiagnostics WantDiags |
Definition at line 557 of file TUScheduler.cpp.
Referenced by clang::clangd::ClangdServer::addDocument(), clang::clangd::runAddDocument(), and clang::clangd::TUScheduler::update().