clang-tools
7.0.0
|
#include "CodeComplete.h"
#include "AST.h"
#include "CodeCompletionStrings.h"
#include "Compiler.h"
#include "FileDistance.h"
#include "FuzzyMatch.h"
#include "Headers.h"
#include "Logger.h"
#include "Quality.h"
#include "SourceCode.h"
#include "Trace.h"
#include "URI.h"
#include "index/Index.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/Basic/LangOptions.h"
#include "clang/Format/Format.h"
#include "clang/Frontend/CompilerInstance.h"
#include "clang/Frontend/FrontendActions.h"
#include "clang/Index/USRGeneration.h"
#include "clang/Sema/CodeCompleteConsumer.h"
#include "clang/Sema/Sema.h"
#include "clang/Tooling/Core/Replacement.h"
#include "llvm/Support/Format.h"
#include "llvm/Support/FormatVariadic.h"
#include "llvm/Support/ScopedPrinter.h"
#include <queue>
Go to the source code of this file.
Classes | |
class | clang::clangd::CodeCompleteFlow |
Namespaces | |
clang | |
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===// | |
clang::clangd | |
Macros | |
#define | DEBUG_TYPE "CodeComplete" |
Functions | |
CodeCompleteResult | clang::clangd::codeComplete (PathRef FileName, const tooling::CompileCommand &Command, PrecompiledPreamble const *Preamble, const IncludeStructure &PreambleInclusions, StringRef Contents, Position Pos, IntrusiveRefCntPtr< vfs::FileSystem > VFS, std::shared_ptr< PCHContainerOperations > PCHs, CodeCompleteOptions Opts) |
Get code completions at a specified Pos in FileName . More... | |
SignatureHelp | clang::clangd::signatureHelp (PathRef FileName, const tooling::CompileCommand &Command, PrecompiledPreamble const *Preamble, StringRef Contents, Position Pos, IntrusiveRefCntPtr< vfs::FileSystem > VFS, std::shared_ptr< PCHContainerOperations > PCHs) |
Get signature help at a specified Pos in FileName . More... | |
bool | clang::clangd::isIndexedForCodeCompletion (const NamedDecl &ND, ASTContext &ASTCtx) |
raw_ostream & | clang::clangd::operator<< (raw_ostream &OS, const CodeCompletion &C) |
raw_ostream & | clang::clangd::operator<< (raw_ostream &OS, const CodeCompleteResult &R) |
#define DEBUG_TYPE "CodeComplete" |
Definition at line 49 of file CodeComplete.cpp.
std::vector<std::string> AccessibleScopes |
Definition at line 435 of file CodeComplete.cpp.
CodeCompletionContext CCContext |
Definition at line 584 of file CodeComplete.cpp.
Sema* CCSema = nullptr |
Definition at line 585 of file CodeComplete.cpp.
const tooling::CompileCommand& Command |
Definition at line 782 of file CodeComplete.cpp.
Referenced by clang::clangd::signatureHelp().
StringRef Contents |
Definition at line 784 of file CodeComplete.cpp.
Referenced by clang::clangd::DraftStore::addDraft(), clang::clangd::signatureHelp(), and clang::clangd::DraftStore::updateDraft().
PathRef FileName |
Definition at line 781 of file CodeComplete.cpp.
Referenced by clang::clangd::IncludeInserter::addExisting(), clang::tidy::utils::IncludeSorter::AddInclude(), clang::include_fixer::SymbolIndexManager::addSymbolIndex(), Modularize::PreprocessorTracker::create(), clang::tidy::utils::IncludeInserter::CreateIncludeInsertion(), clang::tidy::utils::IncludeSorter::current_FileID(), clang::tidy::utils::defaultHeaderFileExtensions(), clang::tidy::DefaultOptionsProvider::getGlobalOptions(), clang::include_fixer::IncludeFixerSemaSource::getIncludeFixerContext(), clang::tidy::llvm::getPriority(), clang::tidy::ClangTidyDiagnosticConsumer::HandleDiagnostic(), clang::find_all_symbols::YamlReporter::reportSymbols(), clang::tidy::fuchsia::RestrictedIncludesPPCallbacks::RestrictedIncludesPPCallbacks(), clang::clangd::signatureHelp(), and clang::clangd::TUScheduler::ASTCache::take().
const Symbol* IndexResult = nullptr |
Definition at line 193 of file CodeComplete.cpp.
llvm::StringRef Name |
Definition at line 190 of file CodeComplete.cpp.
Referenced by EntityMap::add(), clang::tidy::zircon::AST_MATCHER_P(), clang::tidy::readability::IdentifierNamingCheck::check(), clang::tidy::readability::IdentifierNamingCheck::expandMacro(), clang::tidy::readability::fixupWithCase(), clang::tidy::modernize::getContainerFromBeginEndCall(), clang::tidy::bugprone::isStandardSmartPointer(), clang::find_all_symbols::FindAllMacros::MacroDefined(), clang::doc::Reference::operator==(), clang::doc::FieldTypeInfo::operator==(), clang::doc::MemberTypeInfo::operator==(), clang::tidy::utils::options::parseStringList(), clang::clangd::IncludeStructure::recordInclude(), clang::tidy::ClangTidyCheckFactories::registerCheckFactory(), clang::query::LetQuery::run(), clang::clangd::SymbolCollector::setPreprocessor(), clang::clangd::sortText(), clang::find_all_symbols::SymbolInfo::SymbolInfo(), CollectEntitiesVisitor::VisitNamedDecl(), and clang::clangd::AsyncTaskRunner::wait().
std::shared_ptr<PCHContainerOperations> PCHs |
Definition at line 787 of file CodeComplete.cpp.
Referenced by clang::clangd::prepareCompilerInstance().
Position Pos |
Definition at line 785 of file CodeComplete.cpp.
Referenced by clang::query::QueryParser::complete(), clang::clangd::ClangdServer::findDefinitions(), clang::clangd::ClangdServer::findDocumentHighlights(), clang::clangd::ClangdServer::findHover(), llvm::format_provider< clang::clangd::Position >::format(), main(), clang::clangd::offsetToPosition(), clang::clangd::URI::parse(), clang::clangd::ClangdServer::rename(), clang::clangd::ClangdServer::signatureHelp(), clang::clangd::signatureHelp(), and clang::clangd::splitQualifiedName().
PrecompiledPreamble const* Preamble |
Definition at line 783 of file CodeComplete.cpp.
Referenced by clang::clangd::signatureHelp().
std::vector<CodeCompletionResult> Results |
Definition at line 583 of file CodeComplete.cpp.
Referenced by clang::tidy::modernize::collectParamDecls(), clang::tidy::utils::ExprMutationAnalyzer::findMutation(), clang::include_fixer::YamlSymbolIndex::search(), and clang::throwsException().
std::string ReturnType |
Definition at line 355 of file CodeComplete.cpp.
Referenced by clang::tidy::cert::PostfixOperatorCheck::check(), clang::tidy::modernize::ReturnBracedInitListCheck::check(), clang::clangd::SymbolCollector::finish(), and clang::doc::FunctionInfo::merge().
const CodeCompletionResult* SemaResult = nullptr |
Definition at line 192 of file CodeComplete.cpp.
std::string Signature |
Definition at line 354 of file CodeComplete.cpp.
Referenced by clang::clangd::SymbolCollector::finish().
std::string SnippetSuffix |
Definition at line 353 of file CodeComplete.cpp.
Referenced by clang::clangd::SymbolCollector::finish().
llvm::Optional<std::string> UnresolvedQualifier |
Definition at line 438 of file CodeComplete.cpp.
IntrusiveRefCntPtr<vfs::FileSystem> VFS |
Definition at line 786 of file CodeComplete.cpp.
Referenced by clang::clangd::prepareCompilerInstance().