clang
7.0.0
|
Abstract interface for a consumer of code-completion information. More...
#include "clang/Sema/CodeCompleteConsumer.h"
Classes | |
class | OverloadCandidate |
Public Member Functions | |
CodeCompleteConsumer (const CodeCompleteOptions &CodeCompleteOpts, bool OutputIsBinary) | |
bool | includeMacros () const |
Whether the code-completion consumer wants to see macros. More... | |
bool | includeCodePatterns () const |
Whether the code-completion consumer wants to see code patterns. More... | |
bool | includeGlobals () const |
Whether to include global (top-level) declaration results. More... | |
bool | includeNamespaceLevelDecls () const |
Whether to include declarations in namespace contexts (including the global namespace). More... | |
bool | includeBriefComments () const |
Whether to include brief documentation comments within the set of code completions returned. More... | |
bool | includeFixIts () const |
Whether to include completion items with small fix-its, e.g. More... | |
bool | loadExternal () const |
Hint whether to load data from the external AST in order to provide full results. More... | |
bool | isOutputBinary () const |
Determine whether the output of this consumer is binary. More... | |
virtual | ~CodeCompleteConsumer () |
Deregisters and destroys this code-completion consumer. More... | |
virtual CodeCompletionAllocator & | getAllocator ()=0 |
Retrieve the allocator that will be used to allocate code completion strings. More... | |
virtual CodeCompletionTUInfo & | getCodeCompletionTUInfo ()=0 |
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. More... | |
virtual void | ProcessOverloadCandidates (Sema &S, unsigned CurrentArg, OverloadCandidate *Candidates, unsigned NumCandidates) |
Protected Attributes | |
const CodeCompleteOptions | CodeCompleteOpts |
bool | OutputIsBinary |
Whether the output format for the code-completion consumer is binary. More... | |
Abstract interface for a consumer of code-completion information.
Definition at line 970 of file CodeCompleteConsumer.h.
|
inline |
Definition at line 1048 of file CodeCompleteConsumer.h.
|
virtualdefault |
Deregisters and destroys this code-completion consumer.
Referenced by clang::CodeCompleteConsumer::OverloadCandidate::getFunctionType().
|
pure virtual |
Retrieve the allocator that will be used to allocate code completion strings.
Implemented in clang::PrintingCodeCompleteConsumer.
|
pure virtual |
Implemented in clang::PrintingCodeCompleteConsumer.
|
inline |
Whether to include brief documentation comments within the set of code completions returned.
Definition at line 1074 of file CodeCompleteConsumer.h.
References clang::CodeCompleteOptions::IncludeBriefComments.
|
inline |
Whether the code-completion consumer wants to see code patterns.
Definition at line 1058 of file CodeCompleteConsumer.h.
References clang::CodeCompleteOptions::IncludeCodePatterns.
|
inline |
Whether to include completion items with small fix-its, e.g.
change '.' to '->' on member access, etc.
Definition at line 1080 of file CodeCompleteConsumer.h.
References clang::CodeCompleteOptions::IncludeFixIts.
Referenced by clang::ASTUnit::CodeComplete().
|
inline |
Whether to include global (top-level) declaration results.
Definition at line 1063 of file CodeCompleteConsumer.h.
References clang::CodeCompleteOptions::IncludeGlobals.
Referenced by AddRecordMembersCompletionResults().
|
inline |
Whether the code-completion consumer wants to see macros.
Definition at line 1053 of file CodeCompleteConsumer.h.
References clang::CodeCompleteOptions::IncludeMacros.
|
inline |
Whether to include declarations in namespace contexts (including the global namespace).
If this is false, includeGlobals()
will be ignored.
Definition at line 1068 of file CodeCompleteConsumer.h.
References clang::CodeCompleteOptions::IncludeNamespaceLevelDecls.
|
inline |
Determine whether the output of this consumer is binary.
Definition at line 1089 of file CodeCompleteConsumer.h.
|
inlinevirtual |
Reimplemented in clang::PrintingCodeCompleteConsumer.
Definition at line 1096 of file CodeCompleteConsumer.h.
|
inline |
Hint whether to load data from the external AST in order to provide full results.
If false, declarations from the preamble may be omitted.
Definition at line 1084 of file CodeCompleteConsumer.h.
References clang::CodeCompleteOptions::LoadExternal.
Referenced by AddRecordMembersCompletionResults(), and clang::ASTUnit::CodeComplete().
|
inlinevirtual |
Process the finalized code-completion results.
Reimplemented in clang::PrintingCodeCompleteConsumer.
Definition at line 1104 of file CodeCompleteConsumer.h.
|
inlinevirtual |
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 |
Reimplemented in clang::PrintingCodeCompleteConsumer.
Definition at line 1117 of file CodeCompleteConsumer.h.
Referenced by CodeCompleteOverloadResults().
|
protected |
Definition at line 972 of file CodeCompleteConsumer.h.
|
protected |
Whether the output format for the code-completion consumer is binary.
Definition at line 976 of file CodeCompleteConsumer.h.