clang: clang::CodeCompleteConsumer Class Reference (original) (raw)
Abstract interface for a consumer of code-completion information. More...
#include "[clang/Sema/CodeCompleteConsumer.h](CodeCompleteConsumer%5F8h%5Fsource.html)"
Public Member Functions |
|
|
CodeCompleteConsumer (const CodeCompleteOptions &CodeCompleteOpts) |
|
|
bool |
includeMacros () const |
|
Whether the code-completion consumer wants to see macros. |
|
|
bool |
includeCodePatterns () const |
|
Whether the code-completion consumer wants to see code patterns. |
|
|
bool |
includeGlobals () const |
|
Whether to include global (top-level) declaration results. |
|
|
bool |
includeNamespaceLevelDecls () const |
|
Whether to include declarations in namespace contexts (including the global namespace). |
|
|
bool |
includeBriefComments () const |
|
Whether to include brief documentation comments within the set of code completions returned. |
|
|
bool |
includeFixIts () const |
|
Whether to include completion items with small fix-its, e.g. |
|
|
bool |
loadExternal () const |
|
Hint whether to load data from the external AST in order to provide full results. |
|
|
virtual |
~CodeCompleteConsumer () |
|
Deregisters and destroys this code-completion consumer. |
|
|
Code-completion filtering |
|
Check if the result should be filtered out. |
|
virtual bool |
isResultFilteredOut (StringRef Filter, CodeCompletionResult Results) |
|
|
Code-completion callbacks |
|
virtual void |
ProcessCodeCompleteResults (Sema &S, CodeCompletionContext Context, CodeCompletionResult *Results, unsigned NumResults) |
|
Process the finalized code-completion results. |
|
|
virtual void |
ProcessOverloadCandidates (Sema &S, unsigned CurrentArg, OverloadCandidate *Candidates, unsigned NumCandidates, SourceLocation OpenParLoc, bool Braced) |
|
|
virtual CodeCompletionAllocator & |
getAllocator ()=0 |
|
Retrieve the allocator that will be used to allocate code completion strings. |
|
|
virtual CodeCompletionTUInfo & |
getCodeCompletionTUInfo ()=0 |
|
|
Abstract interface for a consumer of code-completion information.
Definition at line 1018 of file CodeCompleteConsumer.h.
clang::CodeCompleteConsumer::CodeCompleteConsumer ( const CodeCompleteOptions & CodeCompleteOpts) |
inline |
◆ ~CodeCompleteConsumer()
CodeCompleteConsumer::~CodeCompleteConsumer ( ) |
virtualdefault |
Deregisters and destroys this code-completion consumer.
◆ getAllocator()
◆ getCodeCompletionTUInfo()
virtual CodeCompletionTUInfo & clang::CodeCompleteConsumer::getCodeCompletionTUInfo ( ) |
pure virtual |
bool clang::CodeCompleteConsumer::includeBriefComments ( ) const |
inline |
◆ includeCodePatterns()
bool clang::CodeCompleteConsumer::includeCodePatterns ( ) const |
inline |
◆ includeFixIts()
bool clang::CodeCompleteConsumer::includeFixIts ( ) const |
inline |
◆ includeGlobals()
bool clang::CodeCompleteConsumer::includeGlobals ( ) const |
inline |
◆ includeMacros()
bool clang::CodeCompleteConsumer::includeMacros ( ) const |
inline |
◆ includeNamespaceLevelDecls()
bool clang::CodeCompleteConsumer::includeNamespaceLevelDecls ( ) const |
inline |
◆ isResultFilteredOut()
virtual bool clang::CodeCompleteConsumer::isResultFilteredOut ( StringRef Filter, CodeCompletionResult Results ) |
inlinevirtual |
◆ loadExternal()
bool clang::CodeCompleteConsumer::loadExternal ( ) const |
inline |
◆ ProcessCodeCompleteResults()
◆ ProcessOverloadCandidates()
Parameters
S |
the semantic-analyzer object for which code-completion is being done. |
CurrentArg |
the index of the current argument. |
Candidates |
an array of overload candidates. |
NumCandidates |
the number of overload candidates |
OpenParLoc |
location of the opening parenthesis of the argument list. |
Reimplemented in clang::PrintingCodeCompleteConsumer.
Definition at line 1228 of file CodeCompleteConsumer.h.
Referenced by ProduceSignatureHelp().
◆ CodeCompleteOpts
The documentation for this class was generated from the following files: