clang 20.0.0git
|
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 | 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 |
Protected Attributes | |
const CodeCompleteOptions | CodeCompleteOpts |
Abstract interface for a consumer of code-completion information.
Definition at line 1019 of file CodeCompleteConsumer.h.
|
inline |
Definition at line 1161 of file CodeCompleteConsumer.h.
|
virtualdefault |
Deregisters and destroys this code-completion consumer.
|
pure virtual |
Retrieve the allocator that will be used to allocate code completion strings.
Implemented in clang::PrintingCodeCompleteConsumer, and clang::ReplCompletionConsumer.
|
pure virtual |
Implemented in clang::PrintingCodeCompleteConsumer, and clang::ReplCompletionConsumer.
|
inline |
Whether to include brief documentation comments within the set of code completions returned.
Definition at line 1186 of file CodeCompleteConsumer.h.
References CodeCompleteOpts, and clang::CodeCompleteOptions::IncludeBriefComments.
|
inline |
Whether the code-completion consumer wants to see code patterns.
Definition at line 1170 of file CodeCompleteConsumer.h.
References CodeCompleteOpts, and clang::CodeCompleteOptions::IncludeCodePatterns.
|
inline |
Whether to include completion items with small fix-its, e.g.
change '.' to '->' on member access, etc.
Definition at line 1192 of file CodeCompleteConsumer.h.
References CodeCompleteOpts, and clang::CodeCompleteOptions::IncludeFixIts.
Referenced by clang::ASTUnit::CodeComplete().
|
inline |
Whether to include global (top-level) declaration results.
Definition at line 1175 of file CodeCompleteConsumer.h.
References CodeCompleteOpts, and clang::CodeCompleteOptions::IncludeGlobals.
Referenced by AddRecordMembersCompletionResults().
|
inline |
Whether the code-completion consumer wants to see macros.
Definition at line 1165 of file CodeCompleteConsumer.h.
References CodeCompleteOpts, and 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 1180 of file CodeCompleteConsumer.h.
References CodeCompleteOpts, and clang::CodeCompleteOptions::IncludeNamespaceLevelDecls.
|
inlinevirtual |
Reimplemented in clang::PrintingCodeCompleteConsumer.
Definition at line 1205 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 1196 of file CodeCompleteConsumer.h.
References CodeCompleteOpts, and clang::CodeCompleteOptions::LoadExternal.
Referenced by AddRecordMembersCompletionResults(), and clang::ASTUnit::CodeComplete().
|
inlinevirtual |
Process the finalized code-completion results.
Reimplemented in clang::ReplCompletionConsumer, and clang::PrintingCodeCompleteConsumer.
Definition at line 1213 of file CodeCompleteConsumer.h.
Referenced by HandleCodeCompleteResults().
|
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 |
OpenParLoc | location of the opening parenthesis of the argument list. |
Reimplemented in clang::PrintingCodeCompleteConsumer.
Definition at line 1229 of file CodeCompleteConsumer.h.
Referenced by ProduceSignatureHelp().
|
protected |
Definition at line 1021 of file CodeCompleteConsumer.h.
Referenced by includeBriefComments(), includeCodePatterns(), includeFixIts(), includeGlobals(), includeMacros(), includeNamespaceLevelDecls(), and loadExternal().