clang
8.0.0
|
#include "clang/Sema/CodeCompleteConsumer.h"
Public Types | |
enum | CandidateKind { CK_Function, CK_FunctionTemplate, CK_FunctionType } |
Describes the type of overload candidate. More... | |
Public Member Functions | |
OverloadCandidate (FunctionDecl *Function) | |
OverloadCandidate (FunctionTemplateDecl *FunctionTemplateDecl) | |
OverloadCandidate (const FunctionType *Type) | |
CandidateKind | getKind () const |
Determine the kind of overload candidate. More... | |
FunctionDecl * | getFunction () const |
Retrieve the function overload candidate or the templated function declaration for a function template. More... | |
FunctionTemplateDecl * | getFunctionTemplate () const |
Retrieve the function template overload candidate. More... | |
const FunctionType * | getFunctionType () const |
Retrieve the function type of the entity, regardless of how the function is stored. More... | |
CodeCompletionString * | CreateSignatureString (unsigned CurrentArg, Sema &S, CodeCompletionAllocator &Allocator, CodeCompletionTUInfo &CCTUInfo, bool IncludeBriefComments) const |
Create a new code-completion string that describes the function signature of this overload candidate. More... | |
Definition at line 1008 of file CodeCompleteConsumer.h.
Describes the type of overload candidate.
Definition at line 1011 of file CodeCompleteConsumer.h.
|
inline |
Definition at line 1042 of file CodeCompleteConsumer.h.
|
inline |
Definition at line 1045 of file CodeCompleteConsumer.h.
|
inline |
Definition at line 1048 of file CodeCompleteConsumer.h.
CodeCompletionString * CodeCompleteConsumer::OverloadCandidate::CreateSignatureString | ( | unsigned | CurrentArg, |
Sema & | S, | ||
CodeCompletionAllocator & | Allocator, | ||
CodeCompletionTUInfo & | CCTUInfo, | ||
bool | IncludeBriefComments | ||
) | const |
Create a new code-completion string that describes the function signature of this overload candidate.
Definition at line 3294 of file SemaCodeComplete.cpp.
FunctionDecl * CodeCompleteConsumer::OverloadCandidate::getFunction | ( | ) | const |
Retrieve the function overload candidate or the templated function declaration for a function template.
Definition at line 487 of file CodeCompleteConsumer.cpp.
References getKind().
Referenced by clang::getParameterComment().
|
inline |
Retrieve the function template overload candidate.
Definition at line 1059 of file CodeCompleteConsumer.h.
References clang::CodeCompletionContext::getKind().
const FunctionType * CodeCompleteConsumer::OverloadCandidate::getFunctionType | ( | ) | const |
Retrieve the function type of the entity, regardless of how the function is stored.
Definition at line 497 of file CodeCompleteConsumer.cpp.
References clang::Type::getAs(), and clang::CodeCompleteConsumer::~CodeCompleteConsumer().
|
inline |
Determine the kind of overload candidate.
Definition at line 1052 of file CodeCompleteConsumer.h.
FunctionDecl* clang::CodeCompleteConsumer::OverloadCandidate::Function |
The function overload candidate, available when Kind == CK_Function.
Definition at line 1030 of file CodeCompleteConsumer.h.
FunctionTemplateDecl* clang::CodeCompleteConsumer::OverloadCandidate::FunctionTemplate |
The function template overload candidate, available when Kind == CK_FunctionTemplate.
Definition at line 1034 of file CodeCompleteConsumer.h.
const FunctionType* clang::CodeCompleteConsumer::OverloadCandidate::Type |
The function type that describes the entity being called, when Kind == CK_FunctionType.
Definition at line 1038 of file CodeCompleteConsumer.h.