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 (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 CodeCompletionAllocator & | getAllocator () |
| Retrieve the allocator that will be used to allocate code completion strings. | |
| virtual CodeCompletionTUInfo & | getCodeCompletionTUInfo () |
A simple code-completion consumer that prints the results it receives in a simple format.
Definition at line 956 of file CodeCompleteConsumer.h.
| 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.
| 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] |
Prints the finalized code-completion results.
Reimplemented from clang::CodeCompleteConsumer.
Definition at line 461 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 | ||
| ) | [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 509 of file CodeCompleteConsumer.cpp.