Home | History | Annotate | Download | only in Sema

Lines Matching refs:Function

124     /// \brief If non-NULL, a filter function used to remove any code-completion
143 /// \brief If we're potentially referring to a C++ member function, the set
557 // There is no way to qualify a name declared in a function or method.
656 if (FunctionDecl *Function = dyn_cast<FunctionDecl>(ND))
657 T = Function->getCallResultType();
671 // Dig through references, function pointers, and block pointers to
694 if (const FunctionType *Function = T->getAs<FunctionType>()) {
695 T = Function->getResultType();
1685 // know the function is void or not.
1687 if (FunctionDecl *Function = dyn_cast<FunctionDecl>(SemaRef.CurContext))
1688 isVoid = Function->getResultType()->isVoidType();
1754 // 'this', if we're in a non-static member function.
1966 if (FunctionDecl *Function = dyn_cast<FunctionDecl>(ND))
1967 T = Function->getResultType();
2075 // Try to get the function prototype behind the block pointer type,
2106 // We have the function prototype behind the block pointer type, as it was
2154 /// \brief Add function parameter chunks to the given code completion string.
2157 FunctionDecl *Function,
2164 for (unsigned P = Start, N = Function->getNumParams(); P != N; ++P) {
2165 ParmVarDecl *Param = Function->getParamDecl(P);
2173 AddFunctionParameterChunks(Context, Policy, Function, Opt, P, true);
2189 if (Function->isVariadic() && P == N - 1)
2198 = Function->getType()->getAs<FunctionProtoType>())
2203 MaybeAddSentinel(Context, Function, Result);
2308 FunctionDecl *Function) {
2310 = Function->getType()->getAs<FunctionProtoType>();
2452 // Format a function-like macro with placeholders for the arguments.
2516 if (FunctionDecl *Function = dyn_cast<FunctionDecl>(ND)) {
2521 AddFunctionParameterChunks(S.Context, Policy, Function, Result);
2523 AddFunctionTypeQualsToCompletionString(Result, Function);
2530 FunctionDecl *Function = FunTmpl->getTemplatedDecl();
2531 AddTypedNameChunk(S.Context, Policy, Function, Result);
2564 // Some of the function template arguments cannot be deduced from a
2565 // function call, so we introduce an explicit template argument list
2573 // Add the function parameters
2575 AddFunctionParameterChunks(S.Context, Policy, Function, Result);
2577 AddFunctionTypeQualsToCompletionString(Result, Function);
2697 // Function without a prototype. Just give the return type and a
2786 case Decl::Function:
2951 /// \brief If we're in a C++ virtual member function, add completion results
2953 /// overridden function as well as adding new functionality.
3035 // values (functions, enumerators, function templates, etc.) are
3069 // If we are in a C++ non-static member function, check the qualifiers on
3070 // the member function to filter/prioritize the results list.
3684 // FIXME: What if we're calling something that isn't a function declaration?
3686 // FIXME: What if we're calling a member function?
3721 Results.push_back(ResultCandidate(Cand->Function));
3784 } else if (FunctionDecl *Function = dyn_cast<FunctionDecl>(CurContext))
3785 ResultType = Function->getResultType();
4814 // function.
5186 // If necessary, apply function/array conversion to the receiver.
6956 // do for function calls.