File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -238,16 +238,15 @@ Parser::parseParameterClause(SourceLoc &leftParenLoc,
238
238
// Check if token is @ sign ergo an attribute
239
239
if (Tok.is (tok::at_sign)) {
240
240
Token nextToken = peekToken ();
241
- // Fix for SR215
242
- // Check if attribute is invalid type attribute
241
+ // Check if attribute is invalid type attribute
243
242
// and actually a declaration attribute
244
243
if (TypeAttributes::getAttrKindFromString (nextToken.getText ()) == TAK_Count
245
244
&& DeclAttribute::getAttrKindFromString (nextToken.getText ()) != TAK_Count) {
246
245
SourceLoc AtLoc = consumeToken (tok::at_sign);
247
246
SourceLoc AttrLoc = consumeToken (tok::identifier);
248
247
diagnose (AtLoc, diag::decl_attribute_applied_to_type)
249
248
.fixItRemove (SourceRange (AtLoc, AttrLoc))
250
- .fixItInsert (StartLoc, " @" + nextToken.getText ().str ()+" " );
249
+ .fixItInsert (StartLoc, " @" + nextToken.getText ().str ()+" " );
251
250
}
252
251
}
253
252
You can’t perform that action at this time.
0 commit comments