Home
last modified time | relevance | path

Searched refs:FTI (Results 1 – 9 of 9) 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.cpp2267 const DeclaratorChunk::FunctionTypeInfo &FTI = DeclType.Fun; in GetDeclSpecTypeForDeclarator() local
2268 if (FTI.hasTrailingReturnType()) { in GetDeclSpecTypeForDeclarator()
2364 const DeclaratorChunk::FunctionTypeInfo &FTI = DeclType.Fun; in warnAboutAmbiguousFunction() local
2365 assert(FTI.isAmbiguous && "no direct-initializer / function ambiguity"); in warnAboutAmbiguousFunction()
2372 if (!RT->isRecordType() && FTI.NumParams > 1) in warnAboutAmbiguousFunction()
2376 if (RT->isReferenceType() && FTI.NumParams != 1) in warnAboutAmbiguousFunction()
2396 FTI.NumParams ? diag::warn_parens_disambiguated_as_function_declaration in warnAboutAmbiguousFunction()
2419 if (FTI.NumParams > 0) { in warnAboutAmbiguousFunction()
2423 SourceRange Range = FTI.Params[0].Param->getSourceRange(); in warnAboutAmbiguousFunction()
2463 const DeclaratorChunk::FunctionTypeInfo &FTI, in getCCForDeclaratorChunk() argument
[all …]
DSemaLambda.cpp892 DeclaratorChunk::FunctionTypeInfo &FTI = ParamInfo.getFunctionTypeInfo(); in ActOnStartOfLambdaDefinition() local
898 if (!FTI.hasMutableQualifier()) in ActOnStartOfLambdaDefinition()
899 FTI.TypeQuals |= DeclSpec::TQ_const; in ActOnStartOfLambdaDefinition()
905 ExplicitResultType = FTI.hasTrailingReturnType(); in ActOnStartOfLambdaDefinition()
907 if (FTIHasNonVoidParameters(FTI)) { in ActOnStartOfLambdaDefinition()
908 Params.reserve(FTI.NumParams); in ActOnStartOfLambdaDefinition()
909 for (unsigned i = 0, e = FTI.NumParams; i != e; ++i) in ActOnStartOfLambdaDefinition()
910 Params.push_back(cast<ParmVarDecl>(FTI.Params[i].Param)); in ActOnStartOfLambdaDefinition()
DSemaDeclCXX.cpp6643 DeclaratorChunk::FunctionTypeInfo &FTI = D.getFunctionTypeInfo(); in CheckConstructorDeclarator() local
6644 if (FTI.TypeQuals != 0) { in CheckConstructorDeclarator()
6645 if (FTI.TypeQuals & Qualifiers::Const) in CheckConstructorDeclarator()
6648 if (FTI.TypeQuals & Qualifiers::Volatile) in CheckConstructorDeclarator()
6651 if (FTI.TypeQuals & Qualifiers::Restrict) in CheckConstructorDeclarator()
6659 if (FTI.hasRefQualifier()) { in CheckConstructorDeclarator()
6660 Diag(FTI.getRefQualifierLoc(), diag::err_ref_qualifier_constructor) in CheckConstructorDeclarator()
6661 << FTI.RefQualifierIsLValueRef in CheckConstructorDeclarator()
6662 << FixItHint::CreateRemoval(FTI.getRefQualifierLoc()); in CheckConstructorDeclarator()
6814 DeclaratorChunk::FunctionTypeInfo &FTI = D.getFunctionTypeInfo(); in CheckDestructorDeclarator() local
[all …]
DSemaDecl.cpp7409 DeclaratorChunk::FunctionTypeInfo &FTI = D.getFunctionTypeInfo(); in ActOnFunctionDeclarator() local
7416 if (FTIHasNonVoidParameters(FTI) && FTI.Params[0].Param) { in ActOnFunctionDeclarator()
7417 for (unsigned i = 0, e = FTI.NumParams; i != e; ++i) { in ActOnFunctionDeclarator()
7418 ParmVarDecl *Param = cast<ParmVarDecl>(FTI.Params[i].Param); in ActOnFunctionDeclarator()
10156 DeclaratorChunk::FunctionTypeInfo &FTI = D.getFunctionTypeInfo(); in ActOnFinishKNRParamDeclarations() local
10160 if (!FTI.hasPrototype) { in ActOnFinishKNRParamDeclarations()
10161 for (int i = FTI.NumParams; i != 0; /* decrement in loop */) { in ActOnFinishKNRParamDeclarations()
10163 if (FTI.Params[i].Param == nullptr) { in ActOnFinishKNRParamDeclarations()
10166 << " int " << FTI.Params[i].Ident->getName() << ";\n"; in ActOnFinishKNRParamDeclarations()
10167 Diag(FTI.Params[i].IdentLoc, diag::ext_param_not_declared) in ActOnFinishKNRParamDeclarations()
[all …]
DSemaTemplate.cpp6453 DeclaratorChunk::FunctionTypeInfo &FTI = D.getFunctionTypeInfo(); in ActOnStartOfFunctionTemplateDef() local
6455 if (FTI.hasPrototype) { in ActOnStartOfFunctionTemplateDef()
/external/clang/lib/Parse/
DParser.cpp932 const DeclaratorChunk::FunctionTypeInfo &FTI = D.getFunctionTypeInfo(); in ParseFunctionDefinition() local
951 if (FTI.isKNRPrototype()) in ParseFunctionDefinition()
1111 DeclaratorChunk::FunctionTypeInfo &FTI = D.getFunctionTypeInfo(); in ParseKNRParamDeclarations() local
1172 if (i == FTI.NumParams) { in ParseKNRParamDeclarations()
1178 if (FTI.Params[i].Ident == ParmDeclarator.getIdentifier()) { in ParseKNRParamDeclarations()
1180 if (FTI.Params[i].Param) { in ParseKNRParamDeclarations()
1185 FTI.Params[i].Param = Param; in ParseKNRParamDeclarations()
DParseDeclCXX.cpp1904 DeclaratorChunk::FunctionTypeInfo &FTI in HandleMemberFunctionDeclDelays() local
1908 bool NeedLateParse = FTI.getExceptionSpecType() == EST_Unparsed; in HandleMemberFunctionDeclDelays()
1912 for (unsigned ParamIdx = 0; ParamIdx < FTI.NumParams; ++ParamIdx) { in HandleMemberFunctionDeclDelays()
1913 auto Param = cast<ParmVarDecl>(FTI.Params[ParamIdx].Param); in HandleMemberFunctionDeclDelays()
1929 LateMethod->ExceptionSpecTokens = FTI.ExceptionSpecTokens; in HandleMemberFunctionDeclDelays()
1930 FTI.ExceptionSpecTokens = 0; in HandleMemberFunctionDeclDelays()
1934 LateMethod->DefaultArgs.reserve(FTI.NumParams); in HandleMemberFunctionDeclDelays()
1935 for (unsigned ParamIdx = 0; ParamIdx < FTI.NumParams; ++ParamIdx) in HandleMemberFunctionDeclDelays()
1937 FTI.Params[ParamIdx].Param, FTI.Params[ParamIdx].DefaultArgTokens)); in HandleMemberFunctionDeclDelays()
DParseDecl.cpp369 DeclaratorChunk::FunctionTypeInfo FTI = D->getFunctionTypeInfo(); in ParseGNUAttributeArgs() local
373 for (unsigned i = 0; i != FTI.NumParams; ++i) { in ParseGNUAttributeArgs()
374 ParmVarDecl *Param = cast<ParmVarDecl>(FTI.Params[i].Param); in ParseGNUAttributeArgs()