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

/external/clang/include/clang/Sema/
H A DSemaInternal.h29 FTIHasSingleVoidParameter(const DeclaratorChunk::FunctionTypeInfo &FTI) { argument
30 return FTI.NumParams == 1 && !FTI.isVariadic &&
31 FTI.Params[0].Ident == nullptr && FTI.Params[0].Param &&
32 cast<ParmVarDecl>(FTI.Params[0].Param)->getType()->isVoidType();
36 FTIHasNonVoidParameters(const DeclaratorChunk::FunctionTypeInfo &FTI) { argument
37 // Assume FTI is well-formed.
38 return FTI.NumParams && !FTIHasSingleVoidParameter(FTI);
[all...]
/external/clang/lib/Parse/
H A DParser.cpp927 const DeclaratorChunk::FunctionTypeInfo &FTI = D.getFunctionTypeInfo(); local
946 if (FTI.isKNRPrototype())
1105 DeclaratorChunk::FunctionTypeInfo &FTI = D.getFunctionTypeInfo(); local
1166 if (i == FTI.NumParams) {
1172 if (FTI.Params[i].Ident == ParmDeclarator.getIdentifier()) {
1174 if (FTI.Params[i].Param) {
1179 FTI.Params[i].Param = Param;
H A DParseDeclCXX.cpp1815 DeclaratorChunk::FunctionTypeInfo &FTI local
1818 for (unsigned ParamIdx = 0; ParamIdx < FTI.NumParams; ++ParamIdx) {
1819 if (LateMethod || FTI.Params[ParamIdx].DefaultArgTokens) {
1829 LateMethod->DefaultArgs.reserve(FTI.NumParams);
1832 LateParsedDefaultArgument(FTI.Params[I].Param));
1838 FTI.Params[ParamIdx].Param, FTI.Params[ParamIdx].DefaultArgTokens));
H A DParseDecl.cpp370 DeclaratorChunk::FunctionTypeInfo FTI = D->getFunctionTypeInfo(); local
374 for (unsigned i = 0; i != FTI.NumParams; ++i) {
375 ParmVarDecl *Param = cast<ParmVarDecl>(FTI.Params[i].Param);
/external/clang/lib/Sema/
H A DSemaLambda.cpp887 DeclaratorChunk::FunctionTypeInfo &FTI = ParamInfo.getFunctionTypeInfo(); local
893 if (!FTI.hasMutableQualifier())
894 FTI.TypeQuals |= DeclSpec::TQ_const;
900 ExplicitResultType = FTI.hasTrailingReturnType();
902 if (FTIHasNonVoidParameters(FTI)) {
903 Params.reserve(FTI.NumParams);
904 for (unsigned i = 0, e = FTI.NumParams; i != e; ++i)
905 Params.push_back(cast<ParmVarDecl>(FTI.Params[i].Param));
H A DSemaType.cpp2246 const DeclaratorChunk::FunctionTypeInfo &FTI = DeclType.Fun; local
2247 if (FTI.hasTrailingReturnType()) {
2342 const DeclaratorChunk::FunctionTypeInfo &FTI = DeclType.Fun; local
2343 assert(FTI.isAmbiguous && "no direct-initializer / function ambiguity");
2350 if (!RT->isRecordType() && FTI.NumParams > 1)
2354 if (RT->isReferenceType() && FTI.NumParams != 1)
2374 FTI.NumParams ? diag::warn_parens_disambiguated_as_function_declaration
2397 if (FTI.NumParams > 0) {
2401 SourceRange Range = FTI.Params[0].Param->getSourceRange();
2441 const DeclaratorChunk::FunctionTypeInfo &FTI,
2440 getCCForDeclaratorChunk(Sema &S, Declarator &D, const DeclaratorChunk::FunctionTypeInfo &FTI, unsigned ChunkIndex) argument
2690 const DeclaratorChunk::FunctionTypeInfo &FTI = DeclType.Fun; local
3749 const DeclaratorChunk::FunctionTypeInfo &FTI = Chunk.Fun; local
[all...]
H A DSemaTemplate.cpp6329 DeclaratorChunk::FunctionTypeInfo &FTI = D.getFunctionTypeInfo(); local
6331 if (FTI.hasPrototype) {
H A DSemaDecl.cpp7145 DeclaratorChunk::FunctionTypeInfo &FTI = D.getFunctionTypeInfo(); local
7152 if (FTIHasNonVoidParameters(FTI) && FTI.Params[0].Param) {
7153 for (unsigned i = 0, e = FTI.NumParams; i != e; ++i) {
7154 ParmVarDecl *Param = cast<ParmVarDecl>(FTI.Params[i].Param);
9682 DeclaratorChunk::FunctionTypeInfo &FTI = D.getFunctionTypeInfo(); local
9686 if (!FTI.hasPrototype) {
9687 for (int i = FTI.NumParams; i != 0; /* decrement in loop */) {
9689 if (FTI.Params[i].Param == nullptr) {
9692 << " int " << FTI
[all...]
H A DSemaDeclCXX.cpp6291 DeclaratorChunk::FunctionTypeInfo &FTI = D.getFunctionTypeInfo(); local
6292 if (FTI.TypeQuals != 0) {
6293 if (FTI.TypeQuals & Qualifiers::Const)
6296 if (FTI.TypeQuals & Qualifiers::Volatile)
6299 if (FTI.TypeQuals & Qualifiers::Restrict)
6307 if (FTI.hasRefQualifier()) {
6308 Diag(FTI.getRefQualifierLoc(), diag::err_ref_qualifier_constructor)
6309 << FTI.RefQualifierIsLValueRef
6310 << FixItHint::CreateRemoval(FTI.getRefQualifierLoc());
6462 DeclaratorChunk::FunctionTypeInfo &FTI local
[all...]

Completed in 206 milliseconds