clang  6.0.0svn
Classes | Public Member Functions | Protected Attributes | List of all members
clang::CodeCompleteConsumer Class Referenceabstract

Abstract interface for a consumer of code-completion information. More...

#include "clang/Sema/CodeCompleteConsumer.h"

Inheritance diagram for clang::CodeCompleteConsumer:
Inheritance graph
[legend]
Collaboration diagram for clang::CodeCompleteConsumer:
Collaboration graph
[legend]

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 includeBriefComments () const
 Whether to include brief documentation comments within the set of code completions returned. 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 CodeCompletionAllocatorgetAllocator ()=0
 Retrieve the allocator that will be used to allocate code completion strings. More...
 
virtual CodeCompletionTUInfogetCodeCompletionTUInfo ()=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...
 

Detailed Description

Abstract interface for a consumer of code-completion information.

Definition at line 807 of file CodeCompleteConsumer.h.

Constructor & Destructor Documentation

◆ CodeCompleteConsumer()

clang::CodeCompleteConsumer::CodeCompleteConsumer ( const CodeCompleteOptions CodeCompleteOpts,
bool  OutputIsBinary 
)
inline

Definition at line 883 of file CodeCompleteConsumer.h.

◆ ~CodeCompleteConsumer()

CodeCompleteConsumer::~CodeCompleteConsumer ( )
virtual

Deregisters and destroys this code-completion consumer.

Definition at line 430 of file CodeCompleteConsumer.cpp.

Member Function Documentation

◆ getAllocator()

virtual CodeCompletionAllocator& clang::CodeCompleteConsumer::getAllocator ( )
pure virtual

Retrieve the allocator that will be used to allocate code completion strings.

Implemented in clang::PrintingCodeCompleteConsumer.

◆ getCodeCompletionTUInfo()

virtual CodeCompletionTUInfo& clang::CodeCompleteConsumer::getCodeCompletionTUInfo ( )
pure virtual

◆ includeBriefComments()

bool clang::CodeCompleteConsumer::includeBriefComments ( ) const
inline

Whether to include brief documentation comments within the set of code completions returned.

Definition at line 905 of file CodeCompleteConsumer.h.

References clang::CodeCompleteOptions::IncludeBriefComments.

◆ includeCodePatterns()

bool clang::CodeCompleteConsumer::includeCodePatterns ( ) const
inline

Whether the code-completion consumer wants to see code patterns.

Definition at line 894 of file CodeCompleteConsumer.h.

References clang::CodeCompleteOptions::IncludeCodePatterns.

◆ includeGlobals()

bool clang::CodeCompleteConsumer::includeGlobals ( ) const
inline

Whether to include global (top-level) declaration results.

Definition at line 899 of file CodeCompleteConsumer.h.

References clang::CodeCompleteOptions::IncludeGlobals.

Referenced by AddRecordMembersCompletionResults().

◆ includeMacros()

bool clang::CodeCompleteConsumer::includeMacros ( ) const
inline

Whether the code-completion consumer wants to see macros.

Definition at line 889 of file CodeCompleteConsumer.h.

References clang::CodeCompleteOptions::IncludeMacros.

◆ isOutputBinary()

bool clang::CodeCompleteConsumer::isOutputBinary ( ) const
inline

Determine whether the output of this consumer is binary.

Definition at line 910 of file CodeCompleteConsumer.h.

◆ isResultFilteredOut()

virtual bool clang::CodeCompleteConsumer::isResultFilteredOut ( StringRef  Filter,
CodeCompletionResult  Results 
)
inlinevirtual

Reimplemented in clang::PrintingCodeCompleteConsumer.

Definition at line 917 of file CodeCompleteConsumer.h.

◆ ProcessCodeCompleteResults()

virtual void clang::CodeCompleteConsumer::ProcessCodeCompleteResults ( Sema S,
CodeCompletionContext  Context,
CodeCompletionResult Results,
unsigned  NumResults 
)
inlinevirtual

Process the finalized code-completion results.

Reimplemented in clang::PrintingCodeCompleteConsumer.

Definition at line 925 of file CodeCompleteConsumer.h.

◆ ProcessOverloadCandidates()

virtual void clang::CodeCompleteConsumer::ProcessOverloadCandidates ( Sema S,
unsigned  CurrentArg,
OverloadCandidate Candidates,
unsigned  NumCandidates 
)
inlinevirtual
Parameters
Sthe semantic-analyzer object for which code-completion is being done.
CurrentArgthe index of the current argument.
Candidatesan array of overload candidates.
NumCandidatesthe number of overload candidates

Reimplemented in clang::PrintingCodeCompleteConsumer.

Definition at line 938 of file CodeCompleteConsumer.h.

Referenced by CodeCompleteOverloadResults().

Member Data Documentation

◆ CodeCompleteOpts

const CodeCompleteOptions clang::CodeCompleteConsumer::CodeCompleteOpts
protected

Definition at line 809 of file CodeCompleteConsumer.h.

◆ OutputIsBinary

bool clang::CodeCompleteConsumer::OutputIsBinary
protected

Whether the output format for the code-completion consumer is binary.

Definition at line 813 of file CodeCompleteConsumer.h.


The documentation for this class was generated from the following files: