[cfe-commits] Patch for review: add a fixit to remove an unused label.

Anna Zaks ganna at apple.com
Tue Jul 26 15:34:14 PDT 2011


Hi,

Attached are two patches, which add a fixit to remove an unused label.

1) Add a utility function to the Lexer, which makes it easier to find the ':' after the label as well as the new line and trailing spaces (It is a generalized version of trans::findLocationAfterSemi from ArcMigrate, which will be changed to use the Lexer utility).


2) Generate the fixit.


Thanks,
Anna.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110726/cdb244b9/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: unusedLabel_LexSupport.diff
Type: application/octet-stream
Size: 4308 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110726/cdb244b9/attachment.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110726/cdb244b9/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: unusedLabel_fixit.diff
Type: application/octet-stream
Size: 2386 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110726/cdb244b9/attachment-0001.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110726/cdb244b9/attachment-0002.html>


More information about the cfe-commits mailing list