clang API Documentation
A simple code-completion consumer that prints the results it receives in a simple format. More...
#include <CodeCompleteConsumer.h>
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 |
CodeCompletionAllocator & | getAllocator () override |
Retrieve the allocator that will be used to allocate code completion strings. | |
CodeCompletionTUInfo & | getCodeCompletionTUInfo () override |
A simple code-completion consumer that prints the results it receives in a simple format.
Definition at line 953 of file CodeCompleteConsumer.h.
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.
CodeCompletionAllocator& clang::PrintingCodeCompleteConsumer::getAllocator | ( | ) | [inline, override, virtual] |
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().
CodeCompletionTUInfo& clang::PrintingCodeCompleteConsumer::getCodeCompletionTUInfo | ( | ) | [inline, override, virtual] |
Implements clang::CodeCompleteConsumer.
Definition at line 980 of file CodeCompleteConsumer.h.
void PrintingCodeCompleteConsumer::ProcessCodeCompleteResults | ( | Sema & | S, |
CodeCompletionContext | Context, | ||
CodeCompletionResult * | Results, | ||
unsigned | NumResults | ||
) | [override, virtual] |
Prints the finalized code-completion results.
Reimplemented from clang::CodeCompleteConsumer.
Definition at line 435 of file CodeCompleteConsumer.cpp.
References clang::CodeCompletionResult::Declaration, clang::CodeCompletionString::getAsString(), clang::IdentifierInfo::getName(), clang::CodeCompletionResult::Keyword, clang::CodeCompletionResult::Macro, clang::CodeCompletionResult::Pattern, clang::CodeCompletionResult::RK_Declaration, clang::CodeCompletionResult::RK_Keyword, clang::CodeCompletionResult::RK_Macro, and clang::CodeCompletionResult::RK_Pattern.
void PrintingCodeCompleteConsumer::ProcessOverloadCandidates | ( | Sema & | S, |
unsigned | CurrentArg, | ||
OverloadCandidate * | Candidates, | ||
unsigned | NumCandidates | ||
) | [override, virtual] |
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 from clang::CodeCompleteConsumer.
Definition at line 487 of file CodeCompleteConsumer.cpp.