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 (bool IncludeMacros, bool IncludeCodePatterns, bool IncludeGlobals, raw_ostream &OS)
 Create a new printing code-completion consumer that prints its results to the given raw output stream.
virtual void ProcessCodeCompleteResults (Sema &S, CodeCompletionContext Context, CodeCompletionResult *Results, unsigned NumResults)
 Prints the finalized code-completion results.
virtual void ProcessOverloadCandidates (Sema &S, unsigned CurrentArg, OverloadCandidate *Candidates, unsigned NumCandidates)
virtual CodeCompletionAllocatorgetAllocator ()
 Retrieve the allocator that will be used to allocate code completion strings.
virtual CodeCompletionTUInfogetCodeCompletionTUInfo ()

Detailed Description

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

Definition at line 956 of file CodeCompleteConsumer.h.


Constructor & Destructor Documentation

clang::PrintingCodeCompleteConsumer::PrintingCodeCompleteConsumer ( bool  IncludeMacros,
bool  IncludeCodePatterns,
bool  IncludeGlobals,
raw_ostream &  OS 
) [inline]

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

Definition at line 965 of file CodeCompleteConsumer.h.


Member Function Documentation

virtual CodeCompletionAllocator& clang::PrintingCodeCompleteConsumer::getAllocator ( ) [inline, virtual]

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

Implements clang::CodeCompleteConsumer.

Definition at line 982 of file CodeCompleteConsumer.h.

References clang::CodeCompletionTUInfo::getAllocator().

virtual CodeCompletionTUInfo& clang::PrintingCodeCompleteConsumer::getCodeCompletionTUInfo ( ) [inline, virtual]

Implements clang::CodeCompleteConsumer.

Definition at line 986 of file CodeCompleteConsumer.h.

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


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