Lines Matching refs:Attr
38 bool diagAppertainsToDecl(Sema &S, const ParsedAttr &Attr, in diagAppertainsToDecl()
42 S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type_str) in diagAppertainsToDecl()
43 << Attr << "functions"; in diagAppertainsToDecl()
50 const ParsedAttr &Attr) const override { in handleDeclAttribute()
56 S.Diag(Attr.getLoc(), ID); in handleDeclAttribute()
62 if (Attr.getNumArgs() > 3) { in handleDeclAttribute()
66 S.Diag(Attr.getLoc(), ID); in handleDeclAttribute()
70 if (Attr.getNumArgs() > 0) { in handleDeclAttribute()
71 auto *Arg0 = Attr.getArgAsExpr(0); in handleDeclAttribute()
78 S.Diag(Attr.getLoc(), ID); in handleDeclAttribute()
82 for (unsigned i = 0; i < Attr.getNumArgs(); i++) { in handleDeclAttribute()
83 ArgsBuf.push_back(Attr.getArgAsExpr(i)); in handleDeclAttribute()
86 ArgsBuf.size(), Attr.getRange())); in handleDeclAttribute()
90 Attr.getRange())); in handleDeclAttribute()