Searched refs:FTI (Results 1 - 9 of 9) sorted by relevance

/external/clang/include/clang/Sema/
H A DSemaInternal.h30 FTIHasSingleVoidParameter(const DeclaratorChunk::FunctionTypeInfo &FTI) { argument
31 return FTI.NumParams == 1 && !FTI.isVariadic &&
32 FTI.Params[0].Ident == nullptr && FTI.Params[0].Param &&
33 cast<ParmVarDecl>(FTI.Params[0].Param)->getType()->isVoidType();
37 FTIHasNonVoidParameters(const DeclaratorChunk::FunctionTypeInfo &FTI) { argument
38 // Assume FTI is well-formed.
39 return FTI.NumParams && !FTIHasSingleVoidParameter(FTI);
[all...]
/external/clang/lib/Sema/
H A DSemaType.cpp2267 const DeclaratorChunk::FunctionTypeInfo &FTI = DeclType.Fun; local
2268 if (FTI.hasTrailingReturnType()) {
2364 const DeclaratorChunk::FunctionTypeInfo &FTI = DeclType.Fun; local
2365 assert(FTI.isAmbiguous && "no direct-initializer / function ambiguity");
2372 if (!RT->isRecordType() && FTI.NumParams > 1)
2376 if (RT->isReferenceType() && FTI.NumParams != 1)
2396 FTI.NumParams ? diag::warn_parens_disambiguated_as_function_declaration
2419 if (FTI.NumParams > 0) {
2423 SourceRange Range = FTI.Params[0].Param->getSourceRange();
2463 const DeclaratorChunk::FunctionTypeInfo &FTI,
2462 getCCForDeclaratorChunk(Sema &S, Declarator &D, const DeclaratorChunk::FunctionTypeInfo &FTI, unsigned ChunkIndex) argument
2733 const DeclaratorChunk::FunctionTypeInfo &FTI = DeclType.Fun; local
3800 const DeclaratorChunk::FunctionTypeInfo &FTI = Chunk.Fun; local
[all...]
H A DSemaLambda.cpp892 DeclaratorChunk::FunctionTypeInfo &FTI = ParamInfo.getFunctionTypeInfo(); local
898 if (!FTI.hasMutableQualifier())
899 FTI.TypeQuals |= DeclSpec::TQ_const;
905 ExplicitResultType = FTI.hasTrailingReturnType();
907 if (FTIHasNonVoidParameters(FTI)) {
908 Params.reserve(FTI.NumParams);
909 for (unsigned i = 0, e = FTI.NumParams; i != e; ++i)
910 Params.push_back(cast<ParmVarDecl>(FTI.Params[i].Param));
H A DSemaDeclCXX.cpp6643 DeclaratorChunk::FunctionTypeInfo &FTI = D.getFunctionTypeInfo(); local
6644 if (FTI.TypeQuals != 0) {
6645 if (FTI.TypeQuals & Qualifiers::Const)
6648 if (FTI.TypeQuals & Qualifiers::Volatile)
6651 if (FTI.TypeQuals & Qualifiers::Restrict)
6659 if (FTI.hasRefQualifier()) {
6660 Diag(FTI.getRefQualifierLoc(), diag::err_ref_qualifier_constructor)
6661 << FTI.RefQualifierIsLValueRef
6662 << FixItHint::CreateRemoval(FTI.getRefQualifierLoc());
6814 DeclaratorChunk::FunctionTypeInfo &FTI local
[all...]
H A DSemaDecl.cpp7409 DeclaratorChunk::FunctionTypeInfo &FTI = D.getFunctionTypeInfo(); local
7416 if (FTIHasNonVoidParameters(FTI) && FTI.Params[0].Param) {
7417 for (unsigned i = 0, e = FTI.NumParams; i != e; ++i) {
7418 ParmVarDecl *Param = cast<ParmVarDecl>(FTI.Params[i].Param);
10156 DeclaratorChunk::FunctionTypeInfo &FTI = D.getFunctionTypeInfo(); local
10160 if (!FTI.hasPrototype) {
10161 for (int i = FTI.NumParams; i != 0; /* decrement in loop */) {
10163 if (FTI.Params[i].Param == nullptr) {
10166 << " int " << FTI
[all...]
H A DSemaTemplate.cpp6453 DeclaratorChunk::FunctionTypeInfo &FTI = D.getFunctionTypeInfo(); local
6455 if (FTI.hasPrototype) {
/external/clang/lib/Parse/
H A DParser.cpp932 const DeclaratorChunk::FunctionTypeInfo &FTI = D.getFunctionTypeInfo(); local
951 if (FTI.isKNRPrototype())
1111 DeclaratorChunk::FunctionTypeInfo &FTI = D.getFunctionTypeInfo(); local
1172 if (i == FTI.NumParams) {
1178 if (FTI.Params[i].Ident == ParmDeclarator.getIdentifier()) {
1180 if (FTI.Params[i].Param) {
1185 FTI.Params[i].Param = Param;
H A DParseDeclCXX.cpp1904 DeclaratorChunk::FunctionTypeInfo &FTI local
1908 bool NeedLateParse = FTI.getExceptionSpecType() == EST_Unparsed;
1912 for (unsigned ParamIdx = 0; ParamIdx < FTI.NumParams; ++ParamIdx) {
1913 auto Param = cast<ParmVarDecl>(FTI.Params[ParamIdx].Param);
1929 LateMethod->ExceptionSpecTokens = FTI.ExceptionSpecTokens;
1930 FTI.ExceptionSpecTokens = 0;
1934 LateMethod->DefaultArgs.reserve(FTI.NumParams);
1935 for (unsigned ParamIdx = 0; ParamIdx < FTI.NumParams; ++ParamIdx)
1937 FTI.Params[ParamIdx].Param, FTI
[all...]
H A DParseDecl.cpp369 DeclaratorChunk::FunctionTypeInfo FTI = D->getFunctionTypeInfo(); local
373 for (unsigned i = 0; i != FTI.NumParams; ++i) {
374 ParmVarDecl *Param = cast<ParmVarDecl>(FTI.Params[i].Param);

Completed in 585 milliseconds