Home
last modified time | relevance | path

Searched refs:FTI (Results 1 – 8 of 8) sorted by relevance

/external/clang/include/clang/Sema/
DSemaInternal.h30 FTIHasSingleVoidParameter(const DeclaratorChunk::FunctionTypeInfo &FTI) { in FTIHasSingleVoidParameter() argument
31 return FTI.NumParams == 1 && !FTI.isVariadic && in FTIHasSingleVoidParameter()
32 FTI.Params[0].Ident == nullptr && FTI.Params[0].Param && in FTIHasSingleVoidParameter()
33 cast<ParmVarDecl>(FTI.Params[0].Param)->getType()->isVoidType(); in FTIHasSingleVoidParameter()
37 FTIHasNonVoidParameters(const DeclaratorChunk::FunctionTypeInfo &FTI) { in FTIHasNonVoidParameters() argument
39 return FTI.NumParams && !FTIHasSingleVoidParameter(FTI); in FTIHasNonVoidParameters()
/external/clang/lib/Sema/
DSemaType.cpp2710 const DeclaratorChunk::FunctionTypeInfo &FTI = DeclType.Fun; in GetDeclSpecTypeForDeclarator() local
2711 if (FTI.hasTrailingReturnType()) { in GetDeclSpecTypeForDeclarator()
2812 const DeclaratorChunk::FunctionTypeInfo &FTI = DeclType.Fun; in warnAboutAmbiguousFunction() local
2813 assert(FTI.isAmbiguous && "no direct-initializer / function ambiguity"); in warnAboutAmbiguousFunction()
2820 if (!RT->isRecordType() && FTI.NumParams > 1) in warnAboutAmbiguousFunction()
2824 if (RT->isReferenceType() && FTI.NumParams != 1) in warnAboutAmbiguousFunction()
2844 FTI.NumParams ? diag::warn_parens_disambiguated_as_function_declaration in warnAboutAmbiguousFunction()
2867 if (FTI.NumParams > 0) { in warnAboutAmbiguousFunction()
2871 SourceRange Range = FTI.Params[0].Param->getSourceRange(); in warnAboutAmbiguousFunction()
2911 const DeclaratorChunk::FunctionTypeInfo &FTI, in getCCForDeclaratorChunk() argument
[all …]
DSemaLambda.cpp855 DeclaratorChunk::FunctionTypeInfo &FTI = ParamInfo.getFunctionTypeInfo(); in ActOnStartOfLambdaDefinition() local
861 if (!FTI.hasMutableQualifier()) in ActOnStartOfLambdaDefinition()
862 FTI.TypeQuals |= DeclSpec::TQ_const; in ActOnStartOfLambdaDefinition()
868 ExplicitResultType = FTI.hasTrailingReturnType(); in ActOnStartOfLambdaDefinition()
870 if (FTIHasNonVoidParameters(FTI)) { in ActOnStartOfLambdaDefinition()
871 Params.reserve(FTI.NumParams); in ActOnStartOfLambdaDefinition()
872 for (unsigned i = 0, e = FTI.NumParams; i != e; ++i) in ActOnStartOfLambdaDefinition()
873 Params.push_back(cast<ParmVarDecl>(FTI.Params[i].Param)); in ActOnStartOfLambdaDefinition()
DSemaDeclCXX.cpp6677 DeclaratorChunk::FunctionTypeInfo &FTI = D.getFunctionTypeInfo(); in CheckConstructorDeclarator() local
6678 if (FTI.TypeQuals != 0) { in CheckConstructorDeclarator()
6679 if (FTI.TypeQuals & Qualifiers::Const) in CheckConstructorDeclarator()
6682 if (FTI.TypeQuals & Qualifiers::Volatile) in CheckConstructorDeclarator()
6685 if (FTI.TypeQuals & Qualifiers::Restrict) in CheckConstructorDeclarator()
6693 if (FTI.hasRefQualifier()) { in CheckConstructorDeclarator()
6694 Diag(FTI.getRefQualifierLoc(), diag::err_ref_qualifier_constructor) in CheckConstructorDeclarator()
6695 << FTI.RefQualifierIsLValueRef in CheckConstructorDeclarator()
6696 << FixItHint::CreateRemoval(FTI.getRefQualifierLoc()); in CheckConstructorDeclarator()
6848 DeclaratorChunk::FunctionTypeInfo &FTI = D.getFunctionTypeInfo(); in CheckDestructorDeclarator() local
[all …]
DSemaDecl.cpp7812 DeclaratorChunk::FunctionTypeInfo &FTI = D.getFunctionTypeInfo(); in ActOnFunctionDeclarator() local
7819 if (FTIHasNonVoidParameters(FTI) && FTI.Params[0].Param) { in ActOnFunctionDeclarator()
7820 for (unsigned i = 0, e = FTI.NumParams; i != e; ++i) { in ActOnFunctionDeclarator()
7821 ParmVarDecl *Param = cast<ParmVarDecl>(FTI.Params[i].Param); in ActOnFunctionDeclarator()
10627 DeclaratorChunk::FunctionTypeInfo &FTI = D.getFunctionTypeInfo(); in ActOnFinishKNRParamDeclarations() local
10631 if (!FTI.hasPrototype) { in ActOnFinishKNRParamDeclarations()
10632 for (int i = FTI.NumParams; i != 0; /* decrement in loop */) { in ActOnFinishKNRParamDeclarations()
10634 if (FTI.Params[i].Param == nullptr) { in ActOnFinishKNRParamDeclarations()
10637 << " int " << FTI.Params[i].Ident->getName() << ";\n"; in ActOnFinishKNRParamDeclarations()
10638 Diag(FTI.Params[i].IdentLoc, diag::ext_param_not_declared) in ActOnFinishKNRParamDeclarations()
[all …]
/external/clang/lib/Parse/
DParser.cpp966 const DeclaratorChunk::FunctionTypeInfo &FTI = D.getFunctionTypeInfo(); in ParseFunctionDefinition() local
985 if (FTI.isKNRPrototype()) in ParseFunctionDefinition()
1176 DeclaratorChunk::FunctionTypeInfo &FTI = D.getFunctionTypeInfo(); in ParseKNRParamDeclarations() local
1237 if (i == FTI.NumParams) { in ParseKNRParamDeclarations()
1243 if (FTI.Params[i].Ident == ParmDeclarator.getIdentifier()) { in ParseKNRParamDeclarations()
1245 if (FTI.Params[i].Param) { in ParseKNRParamDeclarations()
1250 FTI.Params[i].Param = Param; in ParseKNRParamDeclarations()
DParseDeclCXX.cpp1950 DeclaratorChunk::FunctionTypeInfo &FTI in HandleMemberFunctionDeclDelays() local
1954 bool NeedLateParse = FTI.getExceptionSpecType() == EST_Unparsed; in HandleMemberFunctionDeclDelays()
1958 for (unsigned ParamIdx = 0; ParamIdx < FTI.NumParams; ++ParamIdx) { in HandleMemberFunctionDeclDelays()
1959 auto Param = cast<ParmVarDecl>(FTI.Params[ParamIdx].Param); in HandleMemberFunctionDeclDelays()
1975 LateMethod->ExceptionSpecTokens = FTI.ExceptionSpecTokens; in HandleMemberFunctionDeclDelays()
1976 FTI.ExceptionSpecTokens = nullptr; in HandleMemberFunctionDeclDelays()
1980 LateMethod->DefaultArgs.reserve(FTI.NumParams); in HandleMemberFunctionDeclDelays()
1981 for (unsigned ParamIdx = 0; ParamIdx < FTI.NumParams; ++ParamIdx) in HandleMemberFunctionDeclDelays()
1983 FTI.Params[ParamIdx].Param, FTI.Params[ParamIdx].DefaultArgTokens)); in HandleMemberFunctionDeclDelays()
DParseDecl.cpp371 DeclaratorChunk::FunctionTypeInfo FTI = D->getFunctionTypeInfo(); in ParseGNUAttributeArgs() local
375 for (unsigned i = 0; i != FTI.NumParams; ++i) { in ParseGNUAttributeArgs()
376 ParmVarDecl *Param = cast<ParmVarDecl>(FTI.Params[i].Param); in ParseGNUAttributeArgs()