summaryrefslogtreecommitdiff
path: root/test/FixIt/fixit-objc-message.m
Commit message (Collapse)AuthorAgeFilesLines
* Handle bracket insertion for Objective-C class messages in a veryDouglas Gregor2010-09-151-0/+1
| | | | | | | | | | | | | narrow, almost useless case where we're inside a parenthesized expression, e.g., (NSArray alloc]) The solution to the general case still eludes me. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@114039 91177308-0d34-0410-b5e6-96231b3b80d8
* Extend bracket insertion to message sends to "super", e.g.,Douglas Gregor2010-09-151-0/+14
| | | | | | | | | | super method:arg] will now recover nicely and insert the '[' before 'super'. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113971 91177308-0d34-0410-b5e6-96231b3b80d8
* Extend bracket insertion to handle nullary selectors, e.g.Douglas Gregor2010-09-151-0/+2
| | | | | | | | | a getFoo] git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113969 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement bracket insertion for Objective-C instance message sends asDouglas Gregor2010-09-151-0/+19
part of parser recovery. For example, given: a method1:arg]; we detect after parsing the expression "a" that we have the start of a message send expression. We pretend we've seen a '[' prior to the a, then parse the remainder as a message send. We'll then give a diagnostic+fix-it such as: fixit-objc-message.m:17:3: error: missing '[' at start of message send expression a method1:arg]; ^ [ The algorithm here is very simple, and always assumes that the open bracket goes at the beginning of the message send. It also only works for non-super instance message sends at this time. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113968 91177308-0d34-0410-b5e6-96231b3b80d8