[PATCH] Frontend action to migrate code using SenTestingKit to XCTest framework

Hi all,

The attached patch introduces new option and frontend action to migrate code that is utilizing the SenTestingKit framework and rewrite it to using the XCTest one, for example:
- "#import <SenTestingKit/SenTestingKit.h>” —> "#import <XCTest/XCTest.h>”
- "STFail(@"fail”);” —> "XCTFail(@"fail”);”
etc..

Please let me know if you have any comments/feedback.

-Argyrios

migrate-xct.patch (43.7 KB)

This seems like a really cool tool, but I’m not sure why it is using frontend actions directly and wired into core of Clang…

We have developer really nice layers for building these types of tools with libTooling and I think this would make a lot more sense as a libtooling-based tool in clang-tools-extra.

Hi Chandler,

This seems like a really cool tool, but I’m not sure why it is using frontend actions directly and wired into core of Clang…

We have developer really nice layers for building these types of tools with libTooling and I think this would make a lot more sense as a libtooling-based tool in clang-tools-extra.

This is a good point and I agree.
We’ll look into making changes towards using an external tool instead of wiring into clang.