Lines Matching defs:Fun
192 new (&I.Fun) FunctionTypeInfo;
193 I.Fun.hasPrototype = hasProto;
194 I.Fun.isVariadic = EllipsisLoc.isValid();
195 I.Fun.isAmbiguous = isAmbiguous;
196 I.Fun.LParenLoc = LParenLoc;
197 I.Fun.EllipsisLoc = EllipsisLoc;
198 I.Fun.RParenLoc = RParenLoc;
199 I.Fun.DeleteParams = false;
200 I.Fun.NumParams = NumParams;
201 I.Fun.Params = nullptr;
202 I.Fun.RefQualifierIsLValueRef = RefQualifierIsLvalueRef;
203 I.Fun.RefQualifierLoc = RefQualifierLoc;
204 I.Fun.MutableLoc = MutableLoc;
205 I.Fun.ExceptionSpecType = ESpecType;
206 I.Fun.ExceptionSpecLocBeg = ESpecRange.getBegin();
207 I.Fun.ExceptionSpecLocEnd = ESpecRange.getEnd();
208 I.Fun.NumExceptionsOrDecls = 0;
209 I.Fun.Exceptions = nullptr;
210 I.Fun.NoexceptExpr = nullptr;
211 I.Fun.HasTrailingReturnType = TrailingReturnType.isUsable() ||
213 I.Fun.TrailingReturnType = TrailingReturnType.get();
214 I.Fun.TrailingReturnTypeLoc = TrailingReturnTypeLoc;
215 I.Fun.MethodQualifiers = nullptr;
216 I.Fun.QualAttrFactory = nullptr;
221 I.Fun.MethodQualifiers = new DeclSpec(attrs.getPool().getFactory());
224 I.Fun.MethodQualifiers->SetTypeQual(TypeQual, SL);
226 I.Fun.MethodQualifiers->getAttributes().takeAllFrom(attrs);
227 I.Fun.MethodQualifiers->getAttributePool().takeAllFrom(attrs.getPool());
230 assert(I.Fun.ExceptionSpecType == ESpecType && "bitfield overflow");
240 I.Fun.Params = TheDeclarator.InlineParams;
241 new (I.Fun.Params) ParamInfo[NumParams];
242 I.Fun.DeleteParams = false;
245 I.Fun.Params = new DeclaratorChunk::ParamInfo[NumParams];
246 I.Fun.DeleteParams = true;
249 I.Fun.Params[i] = std::move(Params[i]);
258 I.Fun.NumExceptionsOrDecls = NumExceptions;
259 I.Fun.Exceptions = new DeclaratorChunk::TypeAndRange[NumExceptions];
261 I.Fun.Exceptions[i].Ty = Exceptions[i];
262 I.Fun.Exceptions[i].Range = ExceptionRanges[i];
270 I.Fun.NoexceptExpr = NoexceptExpr;
274 I.Fun.ExceptionSpecTokens = ExceptionSpecTokens;
281 I.Fun.NumExceptionsOrDecls = DeclsInPrototype.size();
283 I.Fun.DeclsInPrototype = new NamedDecl *[DeclsInPrototype.size()];
285 I.Fun.DeclsInPrototype[J] = DeclsInPrototype[J];
427 DeclaratorChunk::FunctionTypeInfo &Fun = getFunctionTypeInfo();
428 if (Fun.NumParams) {
429 auto *P = dyn_cast_or_null<ParmVarDecl>(Fun.Params[0].Param);