clang-tools  7.0.0
Classes | Namespaces | Macros | Functions
CodeComplete.cpp File Reference
#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>
Include dependency graph for CodeComplete.cpp:

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)
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "CodeComplete"

Definition at line 49 of file CodeComplete.cpp.

Variable Documentation

◆ AccessibleScopes

std::vector<std::string> AccessibleScopes

Definition at line 435 of file CodeComplete.cpp.

◆ CCContext

CodeCompletionContext CCContext

Definition at line 584 of file CodeComplete.cpp.

◆ CCSema

Sema* CCSema = nullptr

Definition at line 585 of file CodeComplete.cpp.

◆ Command

const tooling::CompileCommand& Command

Definition at line 782 of file CodeComplete.cpp.

Referenced by clang::clangd::signatureHelp().

◆ Contents

StringRef Contents

◆ FileName

PathRef FileName

◆ IndexResult

const Symbol* IndexResult = nullptr

Definition at line 193 of file CodeComplete.cpp.

◆ Name

llvm::StringRef Name

◆ PCHs

std::shared_ptr<PCHContainerOperations> PCHs

Definition at line 787 of file CodeComplete.cpp.

Referenced by clang::clangd::prepareCompilerInstance().

◆ Pos

Position Pos

◆ Preamble

PrecompiledPreamble const* Preamble

Definition at line 783 of file CodeComplete.cpp.

Referenced by clang::clangd::signatureHelp().

◆ Results

std::vector<CodeCompletionResult> Results

◆ ReturnType

std::string ReturnType

◆ SemaResult

const CodeCompletionResult* SemaResult = nullptr

Definition at line 192 of file CodeComplete.cpp.

◆ Signature

std::string Signature

Definition at line 354 of file CodeComplete.cpp.

Referenced by clang::clangd::SymbolCollector::finish().

◆ SnippetSuffix

std::string SnippetSuffix

Definition at line 353 of file CodeComplete.cpp.

Referenced by clang::clangd::SymbolCollector::finish().

◆ UnresolvedQualifier

llvm::Optional<std::string> UnresolvedQualifier

Definition at line 438 of file CodeComplete.cpp.

◆ VFS

IntrusiveRefCntPtr<vfs::FileSystem> VFS

Definition at line 786 of file CodeComplete.cpp.

Referenced by clang::clangd::prepareCompilerInstance().