[Parse] Add fix-its for empty Swift 2 operator decl braces. (#4309)

And improve the error message for non-empty braces; if we're going to
ignore the contents, we should at least point you in the right
direction for Swift 3.

rdar://problem/27576922
This commit is contained in:
Jordan Rose
2016-08-15 14:43:09 -07:00
committed by GitHub
parent 83f2eb0a42
commit 3d005f3ad9
6 changed files with 48 additions and 13 deletions

View File

@@ -647,7 +647,8 @@ private:
Info.ID == diag::any_as_anyobject_fixit.ID ||
Info.ID == diag::deprecated_protocol_composition.ID ||
Info.ID == diag::deprecated_protocol_composition_single.ID ||
Info.ID == diag::deprecated_any_composition.ID)
Info.ID == diag::deprecated_any_composition.ID ||
Info.ID == diag::deprecated_operator_body.ID)
return true;
return false;