Renaming a class should also rename the comments in the file header
Originator: | me | ||
Number: | rdar://38333416 | Date Originated: | 10-Mar-2018 01:22 PM |
Status: | Open | Resolved: | |
Product: | iOS + SDK | Product Version: | 9.2 |
Classification: | UI/Usability | Reproducible: | Always |
Summary: When using the new feature in Xcode to rename a file, Xcode should also rename the file header name. Steps to Reproduce: For example, when a file has the following header in the class ViewController.h: // // PBBViewController.h // InfiniteScrolling // // Created by Patrick Balestra on 3/10/18. // Copyright © 2018 Patrick Balestra. All rights reserved. // #import <UIKit/UIKit.h> @interface ViewController : UIViewController @end Expected Results: When we right click on `ViewController` and rename it to `PBViewController`, it should become: // // PBBViewController.h // InfiniteScrolling // // Created by Patrick Balestra on 3/10/18. // Copyright © 2018 Patrick Balestra. All rights reserved. // #import <UIKit/UIKit.h> @interface PBBViewController : UIViewController @end Actual Results: // // ViewController.h // InfiniteScrolling // // Created by Patrick Balestra on 3/10/18. // Copyright © 2018 Patrick Balestra. All rights reserved. // #import <UIKit/UIKit.h> @interface PBBViewController : UIViewController @end Version: 9.2 Notes:
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!