clang API Documentation

Public Member Functions
clang::PrintingCodeCompleteConsumer Class Reference

A simple code-completion consumer that prints the results it receives in a simple format. More...

#include <CodeCompleteConsumer.h>

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

List of all members.

Public Member Functions

 PrintingCodeCompleteConsumer (const CodeCompleteOptions &CodeCompleteOpts, raw_ostream &OS)
 Create a new printing code-completion consumer that prints its results to the given raw output stream.
void ProcessCodeCompleteResults (Sema &S, CodeCompletionContext Context, CodeCompletionResult *Results, unsigned NumResults) override
 Prints the finalized code-completion results.
void ProcessOverloadCandidates (Sema &S, unsigned CurrentArg, OverloadCandidate *Candidates, unsigned NumCandidates) override
CodeCompletionAllocatorgetAllocator () override
 Retrieve the allocator that will be used to allocate code completion strings.
CodeCompletionTUInfogetCodeCompletionTUInfo () override

Detailed Description

A simple code-completion consumer that prints the results it receives in a simple format.

Definition at line 953 of file CodeCompleteConsumer.h.


Constructor & Destructor Documentation

clang::PrintingCodeCompleteConsumer::PrintingCodeCompleteConsumer ( const CodeCompleteOptions CodeCompleteOpts,
raw_ostream &  OS 
) [inline]

Create a new printing code-completion consumer that prints its results to the given raw output stream.

Definition at line 962 of file CodeCompleteConsumer.h.


Member Function Documentation

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

Implements clang::CodeCompleteConsumer.

Definition at line 976 of file CodeCompleteConsumer.h.

References clang::CodeCompletionTUInfo::getAllocator().

Implements clang::CodeCompleteConsumer.

Definition at line 980 of file CodeCompleteConsumer.h.

void PrintingCodeCompleteConsumer::ProcessCodeCompleteResults ( Sema S,
CodeCompletionContext  Context,
CodeCompletionResult Results,
unsigned  NumResults 
) [override, virtual]
void PrintingCodeCompleteConsumer::ProcessOverloadCandidates ( Sema S,
unsigned  CurrentArg,
OverloadCandidate Candidates,
unsigned  NumCandidates 
) [override, virtual]
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 from clang::CodeCompleteConsumer.

Definition at line 487 of file CodeCompleteConsumer.cpp.


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